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

Message ID 1423939927-37376-1-git-send-email-keith.wiles@intel.com (mailing list archive)
State Rejected, archived
Headers

Commit Message

Wiles, Keith Feb. 14, 2015, 6:52 p.m. UTC
  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@intel.com>
---
 mk/rte.extvars.mk | 7 +++++++
 1 file changed, 7 insertions(+)
  

Comments

Olivier Matz Feb. 16, 2015, 2:18 p.m. UTC | #1
Hi Keith,

On 02/14/2015 07:52 PM, Keith Wiles wrote:
> 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@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
> +
> 

Same comment than for the other patch.
The external apps should include "rte.vars.mk" as in examples.
  

Patch

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
+