diff mbox

[2/6] dpdk: make DPDK repo configurable

Message ID 1431362411-8686-3-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss May 11, 2015, 4:40 p.m. UTC
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 helper/platform/dpdk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/helper/platform/dpdk b/helper/platform/dpdk
index 8b3ed45..7d27628 100644
--- a/helper/platform/dpdk
+++ b/helper/platform/dpdk
@@ -2,11 +2,13 @@ 
 
 source ${ROOT_DIR}/helper/vercomp
 
-export ROOT_DIR_DPDK=$ROOT_DIR/DPDK
+export ROOT_DIR_DPDK="${ROOT_DIR_DPDK:-${ROOT_DIR}/DPDK}"
+
 GIT_DPDK=${GIT_DPDK:-http://92.243.14.124/git/dpdk}
 
 dpdk_usage(){
     echo -e "\tGIT_DPDK:\t which DPDK git repo to use"
+    echo -e "\tROOT_DIR_DPDK:\t where the repo should be, default is $ROOT_DIR/DPDK"
 }
 
 dpdk_prepare(){