X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=.ci%2Flinux-build.sh;h=d079801d78a2466ccdc4cb0c3fcbb9db5dd4343e;hb=c6048730ea7cc16b087ec428fe33e014278013ab;hp=c7c3840fc2fef5bf2ff1494769f8ac6ff7453314;hpb=777014e56d0796861c11126cf0b4836d4d42f2d4;p=dpdk.git diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index c7c3840fc2..d079801d78 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -14,6 +14,20 @@ on_error() { } trap on_error EXIT +install_libabigail() { + version=$1 + instdir=$2 + + wget -q "http://mirrors.kernel.org/sourceware/libabigail/${version}.tar.gz" + tar -xf ${version}.tar.gz + cd $version && autoreconf -vfi && cd - + mkdir $version/build + cd $version/build && ../configure --prefix=$instdir && cd - + make -C $version/build all install + rm -rf $version + rm ${version}.tar.gz +} + if [ "$AARCH64" = "1" ]; then # convert the arch specifier OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc" @@ -28,9 +42,15 @@ if [ "$BUILD_32BIT" = "1" ]; then export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig" fi +if [ "$DEF_LIB" = "static" ]; then + OPTS="$OPTS -Dexamples=l2fwd,l3fwd" +else + OPTS="$OPTS -Dexamples=all" +fi + OPTS="$OPTS --default-library=$DEF_LIB" OPTS="$OPTS --buildtype=debugoptimized" -meson build --werror -Dexamples=all $OPTS +meson build --werror $OPTS ninja -C build if [ "$AARCH64" != "1" ]; then @@ -38,6 +58,21 @@ if [ "$AARCH64" != "1" ]; then fi if [ "$ABI_CHECKS" = "1" ]; then + LIBABIGAIL_VERSION=${LIBABIGAIL_VERSION:-libabigail-1.6} + + if [ "$(cat libabigail/VERSION 2>/dev/null)" != "$LIBABIGAIL_VERSION" ]; then + rm -rf libabigail + # if we change libabigail, invalidate existing abi cache + rm -rf reference + fi + + if [ ! -d libabigail ]; then + install_libabigail $LIBABIGAIL_VERSION $(pwd)/libabigail + echo $LIBABIGAIL_VERSION > libabigail/VERSION + fi + + export PATH=$(pwd)/libabigail/bin:$PATH + REF_GIT_REPO=${REF_GIT_REPO:-https://dpdk.org/git/dpdk} REF_GIT_TAG=${REF_GIT_TAG:-v19.11}