diff mbox series

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

Message ID 1516327210-19457-5-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v3,1/6] travis: stop early when installation of cross-packages has failed | expand

Commit Message

Github ODP bot Jan. 19, 2018, 2 a.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.

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

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

---
/** Email created from pull request 402 (lumag:travis-upd)
 ** https://github.com/Linaro/odp/pull/402
 ** Patch: https://github.com/Linaro/odp/pull/402.patch
 ** Base sha: 5a4502fc6bc53e6503169da3028f456b64811a0b
 ** Merge commit sha: bec38d48297ebf78da7d67c986b91604e4597080
 **/
 .travis.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index cd571f4f3..3f6f70795 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -193,7 +193,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
@@ -217,7 +218,8 @@  install:
             make install T=${TARGET} EXTRA_CFLAGS="-fPIC $DPDK_CFLAGS" CROSS="$DPDK_CROSS" -j $(nproc)
             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