[dpdk-dev,v1,1/2] mk: allow use of environment var for make config
Checks
Commit Message
Users can now set RTE_TARGET in their environment and use
'make config' without T=template.
If RTE_TARGET is set in the user's environment, and if T=
is not used, 'make config' will use $RTE_TARGET.
Signed-off-by: David Hunt <david.hunt@intel.com>
---
mk/rte.sdkroot.mk | 2 ++
1 file changed, 2 insertions(+)
@@ -63,6 +63,8 @@ ifdef T
ifeq ("$(origin T)", "command line")
RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(T)
endif
+else ifdef RTE_TARGET
+RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(RTE_TARGET)
endif
export RTE_CONFIG_TEMPLATE