[3/3] scripts/build-pktio-dpdk: do not download full dpdk git

Message ID 1482521000-17301-3-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov Dec. 23, 2016, 7:23 p.m.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
 scripts/build-pktio-dpdk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.7.1.250.gff4ea60

Patch

diff --git a/scripts/build-pktio-dpdk b/scripts/build-pktio-dpdk
index 280f518..36727dd 100755
--- a/scripts/build-pktio-dpdk
+++ b/scripts/build-pktio-dpdk
@@ -10,9 +10,9 @@  if [ "$?" != "0" ]; then
 	echo "Error: pcap is not installed. You may need to install libpcap-dev"
 fi
 
-git clone http://dpdk.org/git/dpdk dpdk
+git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v16.07 http://dpdk.org/git/dpdk dpdk
 pushd dpdk
-git checkout -b bv16.07 v16.07
+git log --oneline --decorate
 
 #Make and edit DPDK configuration
 make config T=${TARGET} O=${TARGET}