Skip to contentSkip to conversation

Add support to read target/generic/rte.vars.mk file for external builds

PATCH In review Keith Wiles 2 participants 2 messages Feb 14, 2015 – Feb 16, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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.

---
 mk/rte.extvars.mk | 7 +++++++
 1 file changed, 7 insertions(+)
mk/rte.extvars.mk +7 -0
index 49fc9f2..2811ff9 100644
@@ -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

#2 lore raw

Hi Keith,

Quoted 14 lines · Keith Wiles

The external build of applications does not import the target/generic/rte.vars.mk file, which is needed for locating DPDK headers and libraries.

---
 mk/rte.extvars.mk | 7 +++++++
 1 file changed, 7 insertions(+)
mk/rte.extvars.mk +0 -0
index 49fc9f2..2811ff9 100644

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.