Skip to contentSkip to conversation

kvargs: fix building with meson outside source tree

PATCH Applied Bruce Richardson 3 participants 3 messages Jul 19, 2018 – Jul 26, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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.

Fixes 092ee516496d ("kvargs: build before EAL")
---
 lib/librte_kvargs/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_kvargs/meson.build +1 -1
index a1c724961..acd3e5432 100644
@@ -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
Tested-by on v1 1/1
#1 lore raw
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")
---
  lib/librte_kvargs/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_kvargs/meson.build +0 -0
index a1c724961..acd3e5432 100644

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
#2 lore raw

19/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")

Applied, thanks