[PATCH v2 1/2] app/test: load drivers using build directory
David Marchand
david.marchand at redhat.com
Fri Jul 29 14:42:55 CEST 2022
Since commit 49b536fc3060 ("eal: load only shared libs from driver ...),
we can specify a build directory to the -d option.
Suggested-by: Bruce Richardson <bruce.richardson at intel.com>
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
app/test/meson.build | 4 +---
drivers/meson.build | 2 ++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/test/meson.build b/app/test/meson.build
index 431c5bd318..861dd92ebd 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -492,9 +492,7 @@ foreach arg : fast_tests
if (get_option('default_library') == 'shared' and
arg[0] == 'event_eth_tx_adapter_autotest')
- foreach drv:dpdk_drivers
- test_args += ['-d', drv.full_path().split('.a')[0] + '.so']
- endforeach
+ test_args += ['-d', dpdk_drivers_build_dir]
endif
if is_linux
test_args += ['--file-prefix=@0@'.format(arg[0])]
diff --git a/drivers/meson.build b/drivers/meson.build
index b22c2adda7..376a64f4da 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -52,6 +52,8 @@ if cc.has_argument('-Wno-format-truncation')
default_cflags += '-Wno-format-truncation'
endif
+dpdk_drivers_build_dir = meson.current_build_dir()
+
foreach subpath:subdirs
drivers = []
std_deps = []
--
2.36.1
More information about the dev
mailing list