summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-10-16 13:57:10 -0700
committerBen Pfaff <blp@ovn.org>2018-10-16 15:12:16 -0700
commitf7158faf655266e4ab2ac20c158a826df56d5011 (patch)
treed511ba47c1e9c33ee21c480a1b34c87d02e10e21
parenta598e6ae93f5a850d57c50d036db204dee9c6811 (diff)
downloadopenvswitch-f7158faf655266e4ab2ac20c158a826df56d5011.tar.gz
travis: Remove sparse support.
"sparse" failed to build with this old branch, see e.g. https://travis-ci.org/openvswitch/ovs/jobs/436851158 Signed-off-by: Ben Pfaff <blp@ovn.org>
-rwxr-xr-x.travis/build.sh9
-rwxr-xr-x.travis/prepare.sh3
2 files changed, 2 insertions, 10 deletions
diff --git a/.travis/build.sh b/.travis/build.sh
index 4df618ba0..62281dbba 100755
--- a/.travis/build.sh
+++ b/.travis/build.sh
@@ -4,7 +4,6 @@ set -o errexit
KERNELSRC=""
CFLAGS="-Werror"
-SPARSE_FLAGS=""
EXTRA_OPTS=""
function install_kernel()
@@ -77,9 +76,6 @@ if [ "$DPDK" ]; then
CFLAGS="$CFLAGS -Wno-cast-align"
fi
EXTRA_OPTS="$EXTRA_OPTS --with-dpdk=./dpdk-$DPDK_VER/build"
-elif [ "$CC" != "clang" ]; then
- # DPDK headers currently trigger sparse errors
- SPARSE_FLAGS="$SPARSE_FLAGS -Wsparse-error"
fi
configure_ovs $EXTRA_OPTS $*
@@ -91,11 +87,8 @@ fi
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 $BUILD_ENV $SPARSE_FLAGS" C=1
+ make CFLAGS="$CFLAGS $BUILD_ENV"
fi
if [ "$TESTSUITE" ] && [ "$CC" != "clang" ]; then
diff --git a/.travis/prepare.sh b/.travis/prepare.sh
index cfc1b174f..7a693aac0 100755
--- a/.travis/prepare.sh
+++ b/.travis/prepare.sh
@@ -1,4 +1,3 @@
#!/bin/bash
-git clone git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git
-cd sparse && make && make install && cd ..
+