]> git.proxmox.com Git - mirror_ovs.git/commitdiff
travis: Do not patch dpdk sources.
authorDavid Marchand <david.marchand@redhat.com>
Wed, 19 Jun 2019 07:26:28 +0000 (09:26 +0200)
committerIlya Maximets <i.maximets@samsung.com>
Wed, 19 Jun 2019 07:43:53 +0000 (10:43 +0300)
Rather than patch the dpdk makefile and a template config file, we can
pass the -fPIC flag via EXTRA_CFLAGS.
This is more reliable than expecting the dpdk file names to be kept
unchanged.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
.travis/linux-build.sh

index 3d11b63d00911a255235650ed08bfc2a213344fc..3a5c4a2e7407ff9b1e298947f5d29b6adceece5e 100755 (executable)
@@ -76,8 +76,6 @@ function install_dpdk()
         if [ $DIR_NAME != "dpdk-$1"  ]; then mv $DIR_NAME dpdk-$1; fi
         cd dpdk-$1
     fi
-    echo 'CONFIG_RTE_BUILD_FPIC=y' >>config/common_linuxapp
-    sed -ri '/EXECENV_CFLAGS  = -pthread -fPIC/{s/$/\nelse ifeq ($(CONFIG_RTE_BUILD_FPIC),y)/;s/$/\nEXECENV_CFLAGS  = -pthread -fPIC/}' mk/exec-env/linuxapp/rte.vars.mk
 
     make config CC=gcc T=$TARGET
 
@@ -90,7 +88,7 @@ function install_dpdk()
     sed -i '/CONFIG_RTE_EAL_IGB_UIO=y/s/=y/=n/' build/.config
     sed -i '/CONFIG_RTE_KNI_KMOD=y/s/=y/=n/' build/.config
 
-    make -j4 CC=gcc
+    make -j4 CC=gcc EXTRA_CFLAGS='-fPIC'
     echo "Installed DPDK source in $(pwd)"
     cd ..
 }