kvargs: fix building with meson outside source tree
PATCH 1/1 kvargs: fix building with meson outside source tree
When building DPDK with meson with the <builddir> being outside the source directory, an error was generated as the path to the EAL headers was not found. The path specified for the includes backed out unnecessarily far and so broke when the build directory was not in the expected location of just inside the source dir. Changing the path to be shorter, just going down one level and then into EAL builds for both cases - where builddir is in source directory, and also when it's outside it.
--- lib/librte_kvargs/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_kvargs/meson.build +1 -1
@@ -2,7 +2,7 @@ # Copyright(c) 2017 Intel Corporation includes = [global_inc] -includes += include_directories('../../../lib/librte_eal/common/include') +includes += include_directories('../librte_eal/common/include') version = 1 sources = files('rte_kvargs.c')
Signature · 1 line
2.17.1
Quoted 22 lines · Bruce Richardson
When building DPDK with meson with the <builddir> being outside the source directory, an error was generated as the path to the EAL headers was not found. The path specified for the includes backed out unnecessarily far and so broke when the build directory was not in the expected location of just inside the source dir. Changing the path to be shorter, just going down one level and then into EAL builds for both cases - where builddir is in source directory, and also when it's outside it.
Fixes 092ee516496d ("kvargs: build before EAL")Reported-by Anatoly Burakov <[email protected]>Signed-off-by Bruce Richardson <[email protected]>--- lib/librte_kvargs/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_kvargs/meson.build +0
-0
lib/librte_kvargs/meson.build line 8
Quoted 8 lines
lib/librte_kvargs/meson.build +1
-1@@ -2,7 +2,7 @@ # Copyright(c) 2017 Intel Corporation includes = [global_inc] -includes += include_directories('../../../lib/librte_eal/common/include') +includes += include_directories('../librte_eal/common/include') version = 1 sources = files('rte_kvargs.c')
Signature · 2 lines
Thanks, Anatoly
Thomas Monjalon
Applied19/07/2018 16:45, Burakov, Anatoly:
Quoted 9 lines · Bruce Richardson
Quoted 8 lines
When building DPDK with meson with the <builddir> being outside the source directory, an error was generated as the path to the EAL headers was not found. The path specified for the includes backed out unnecessarily far and so broke when the build directory was not in the expected location of just inside the source dir. Changing the path to be shorter, just going down one level and then into EAL builds for both cases - where builddir is in source directory, and also when it's outside it.
Quoted 6 lines
Quoted 4 lines
Fixes 092ee516496d ("kvargs: build before EAL")Reported-by Anatoly Burakov <[email protected]>Signed-off-by Bruce Richardson <[email protected]>Tested-by Anatoly Burakov <[email protected]>
Applied, thanks