Add support to read target/generic/rte.vars.mk file for external builds
PATCH 1/1 Add support to read target/generic/rte.vars.mk file for external builds
The external build of applications does not import the target/generic/rte.vars.mk file, which is needed for locating DPDK headers and libraries.
Signed-off-by Keith Wiles <[email protected]>
--- mk/rte.extvars.mk | 7 +++++++ 1 file changed, 7 insertions(+)
mk/rte.extvars.mk +7 -0
@@ -82,3 +82,10 @@ RTE_MACHINE := $(CONFIG_RTE_MACHINE:"%"=%) RTE_EXEC_ENV := $(CONFIG_RTE_EXEC_ENV:"%"=%) RTE_TOOLCHAIN := $(CONFIG_RTE_TOOLCHAIN:"%"=%) RTE_MK_EXT := $(CONFIG_RTE_MK_EXT:"%"=%) + +ifneq ($(wildcard $(RTE_SDK)/mk/target/$(RTE_TARGET)/rte.vars.mk),) +include $(RTE_SDK)/mk/target/$(RTE_TARGET)/rte.vars.mk +else +include $(RTE_SDK)/mk/target/generic/rte.vars.mk +endif +
Signature · 1 line
2.3.0
A message that is not in the archive (sent off-list or not yet received): 1423939927-37376-1-git-send-email-keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Hi Keith,
Quoted 14 lines · Keith Wiles
The external build of applications does not import the
target/generic/rte.vars.mkfile, which is needed for locating DPDK headers and libraries.Signed-off-by Keith Wiles <[email protected]>--- mk/rte.extvars.mk | 7 +++++++ 1 file changed, 7 insertions(+)mk/rte.extvars.mk +0
-0
mk/rte.extvars.mk RTE_MACHINE := $(CONFIG_RTE_MACHINE:"%"=%) · line 91
Quoted 10 lines
mk/rte.extvars.mk +7
-0@@ -82,3 +82,10 @@ RTE_MACHINE := $(CONFIG_RTE_MACHINE:"%"=%) RTE_EXEC_ENV := $(CONFIG_RTE_EXEC_ENV:"%"=%) RTE_TOOLCHAIN := $(CONFIG_RTE_TOOLCHAIN:"%"=%) RTE_MK_EXT := $(CONFIG_RTE_MK_EXT:"%"=%) + +ifneq ($(wildcard $(RTE_SDK)/mk/target/$(RTE_TARGET)/rte.vars.mk),) +include $(RTE_SDK)/mk/target/$(RTE_TARGET)/rte.vars.mk +else +include $(RTE_SDK)/mk/target/generic/rte.vars.mk +endif +
Same comment than for the other patch.
The external apps should include "rte.vars.mk" as in examples.