Skip to content

Commit

Permalink
travis: Do not patch dpdk sources.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
david-marchand authored and igsilya committed Jun 19, 2019
1 parent 9588c37 commit 7639e06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .travis/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ..
}
Expand Down

0 comments on commit 7639e06

Please sign in to comment.