diff mbox series

[v1,1/4] travis: move --with-dpdk-path out of DPDK build if

Message ID 1516636822-25091-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/4] travis: move --with-dpdk-path out of DPDK build if | expand

Commit Message

Github ODP bot Jan. 22, 2018, 4 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


1b285bbd (travis: also use DPDK when doing cross-compile tests) moved
adding --with-dpdk-path to EXTRA_CONF to be executed under DPDK-building
if. Move it outside of that if, so that DPDK is enabled even if it's
prebuilt.

Fixes: 1b285bbdd1abbec9853e1bc51bdb6ee02643b1a7
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 416 (lumag:trav-dpdk-shared)
 ** https://github.com/Linaro/odp/pull/416
 ** Patch: https://github.com/Linaro/odp/pull/416.patch
 ** Base sha: 3ce9d6ab16d064b0f83508e2f0b2e476d64b15e1
 ** Merge commit sha: 03435fd2ad14f3faf8bb7e41c71ef9fc054b8662
 **/
 .travis.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 14bc1b143..f3babf359 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -206,7 +206,8 @@  install:
               ;;
           esac
         - |
-          if [ -n "$TARGET" -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" ]; then
+          if [ -n "$TARGET" ] ; then
+           if [ ! -f "dpdk/${TARGET}/lib/libdpdk.a" ] ; then
             git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v${DPDK_VERS} http://dpdk.org/git/dpdk dpdk
             pushd dpdk
             git log --oneline --decorate
@@ -230,7 +231,8 @@  install:
             make install T=${TARGET} EXTRA_CFLAGS="-fPIC $DPDK_CFLAGS" CROSS="$DPDK_CROSS"
             rm -r ./doc ./${TARGET}/app ./${TARGET}/build
             popd
-            EXTRA_CONF="$EXTRA_CONF --with-dpdk-path=`pwd`/dpdk/${TARGET}"
+           fi
+           EXTRA_CONF="$EXTRA_CONF --with-dpdk-path=`pwd`/dpdk/${TARGET}"
           fi
 
 #	Netmap pktio