KERNELSRC=""
CFLAGS="-Werror"
+SPARSE_FLAGS=""
EXTRA_OPTS=""
function install_kernel()
if [ "$DPDK" ]; then
if [ -z "$DPDK_VER" ]; then
- DPDK_VER="1.7.1"
+ DPDK_VER="1.8.0"
fi
install_dpdk $DPDK_VER
- # Disregard bad function cassts until DPDK is fixed
+ # Disregard bad function casts until DPDK is fixed
CFLAGS="$CFLAGS -Wno-error=bad-function-cast -Wno-error=cast-align"
EXTRA_OPTS+="--with-dpdk=./dpdk-$DPDK_VER/build"
elif [ $CC != "clang" ]; then
# DPDK headers currently trigger sparse errors
- CFLAGS="$CFLAGS -Wsparse-error"
+ SPARSE_FLAGS="$SPARSE_FLAGS -Wsparse-error"
fi
configure_ovs $EXTRA_OPTS $*
if [ $CC = "clang" ]; then
make CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
+elif [[ $BUILD_ENV =~ "-m32" ]]; then
+ # Disable sparse for 32bit builds on 64bit machine
+ make CFLAGS="$CFLAGS $BUILD_ENV"
else
- make CFLAGS="$CFLAGS" C=1
+ make CFLAGS="$CFLAGS $BUILD_ENV $SPARSE_FLAGS" C=1
fi
if [ $TESTSUITE ] && [ $CC != "clang" ]; then