aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMohammad Abdul Awal <mohammad.abdul.awal@intel.com>2016-09-06 16:58:57 +0100
committerMohammad Abdul Awal <mohammad.abdul.awal@intel.com>2016-09-09 16:42:15 +0100
commit55aba2fc5df4dbff80c3eb5c38b0b965cd826936 (patch)
treec73492caacc957f21b5cf5f01ee7687e1e8a9949 /Makefile
parent8ae38dfb285ab9843312964b3081b2c52ba857dc (diff)
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 <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
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
-