[dpdk-dev] [PATCH] Add support to read target/generic/rte.vars.mk file for external builds

Keith Wiles keith.wiles at intel.com
Sat Feb 14 19:52:07 CET 2015


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 <keith.wiles at intel.com>
---
 mk/rte.extvars.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/mk/rte.extvars.mk b/mk/rte.extvars.mk
index 49fc9f2..2811ff9 100644
--- a/mk/rte.extvars.mk
+++ b/mk/rte.extvars.mk
@@ -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
+
-- 
2.3.0



More information about the dev mailing list