8 function install_kernel()
10 wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.2.tar.gz
11 tar xzvf linux-3.16.2.tar.gz > /dev/null
16 echo "Installed kernel source in $(pwd)"
20 function install_dpdk()
22 wget http://www.dpdk.org/browse/dpdk/snapshot/dpdk-1.7.0.tar.gz
23 tar xzvf dpdk-1.7.0.tar.gz > /dev/null
25 find ./ -type f | xargs sed -i 's/max-inline-insns-single=100/max-inline-insns-single=400/'
26 sed -ri 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' config/common_linuxapp
27 make config CC=gcc T=x86_64-native-linuxapp-gcc
28 make CC=gcc RTE_KERNELDIR=$KERNELSRC
29 echo "Installed DPDK source in $(pwd)"
33 function configure_ovs()
35 ./boot.sh && ./configure $*
38 if [ "$KERNEL" ] || [ "$DPDK" ]; then
44 # Disregard bad function cassts until DPDK is fixed
45 CFLAGS="$CFLAGS -Wno-error=bad-function-cast -Wno-error=cast-align"
51 if [ $CC = "clang" ]; then
52 make CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
54 make CFLAGS="$CFLAGS" C=1
57 if [ $TESTSUITE ]; then
58 if ! make distcheck; then
59 # testsuite.log is necessary for debugging.
60 cat */_build/tests/testsuite.log