From 55aba2fc5df4dbff80c3eb5c38b0b965cd826936 Mon Sep 17 00:00:00 2001 From: Mohammad Abdul Awal Date: Tue, 6 Sep 2016 16:58:57 +0100 Subject: makefile: allow using DPDK from git and OS distributions User can use DPDK_VERSION to download a specific DPDK version from git. If no DPDK_VERSION is given, the master branch will be downloaded. User can also provide RTE_SDK path for DPDK from OS disctibution or any other location. Change-Id: I7bbc30984cfc48c70d13b51d8fb6c1928d94a821 Signed-off-by: Mohammad Abdul Awal --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 072b466..474ada6 100644 --- a/Makefile +++ b/Makefile @@ -14,14 +14,12 @@ TLDK_ROOT := $(CURDIR) export TLDK_ROOT -DPDK_VERSION=16.04 -LOCAL_RTE_SDK=$(TLDK_ROOT)/dpdk/_build/dpdk-$(DPDK_VERSION)/ +LOCAL_RTE_SDK=$(TLDK_ROOT)/dpdk/_build/dpdk ifeq ($(RTE_SDK),) export RTE_SDK=$(LOCAL_RTE_SDK) endif -# Default target, can be overriden by command line or environment RTE_TARGET ?= x86_64-native-linuxapp-gcc DIRS-y += lib @@ -53,7 +51,6 @@ $(DIRS-y): $(RTE_SDK)/mk/rte.vars.mk $(filter-out $(DIRS-y),$(MAKECMDGOALS)) $(RTE_SDK)/mk/rte.vars.mk: -ifeq ($(RTE_SDK),$(LOCAL_RTE_SDK)) +ifeq ($(RTE_SDK),$(LOCAL_RTE_SDK)) @make RTE_TARGET=$(RTE_TARGET) config all -C $(TLDK_ROOT)/dpdk/ endif - -- cgit 1.2.3-korg