aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/build.sh')
-rwxr-xr-xscripts/ci/build.sh38
1 files changed, 3 insertions, 35 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index ce132faeb..2f333bccb 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -14,42 +14,10 @@ make -j $(nproc)
make install
-pushd ${HOME}
-
-# Fix build on CentOS
-PKG_CONFIG="${TARGET_ARCH}-pkg-config"
-if ! [ -x "$(command -v ${PKG_CONFIG})" ]; then
- PKG_CONFIG="pkg-config"
-fi
-
-# Default ODP library name
-if [ -z "$ODP_LIB_NAME" ] ; then
-ODP_LIB_NAME=libodp-dpdk
-fi
-
-# Additional warning checks
-EXTRA_CHECKS="-Werror -Wall -Wextra -Wfloat-equal -Wpacked"
-# Ignore clang warning about large atomic operations causing significant performance penalty
-if [ "${CC#clang}" != "${CC}" ] ; then
- EXTRA_CHECKS="${EXTRA_CHECKS} -Wno-unknown-warning-option -Wno-atomic-alignment"
-fi
-# Ignore warnings from aarch64 DPDK internals
-if [ "${TARGET_ARCH}" == "aarch64-linux-gnu" ] ; then
- EXTRA_CHECKS="${EXTRA_CHECKS} -Wno-packed"
-fi
-
-${CC} ${CFLAGS} ${EXTRA_CHECKS} ${OLDPWD}/example/sysinfo/odp_sysinfo.c -o odp_sysinfo_inst_dynamic \
- `PKG_CONFIG_PATH=/opt/odp/lib/pkgconfig:${PKG_CONFIG_PATH} ${PKG_CONFIG} --cflags --libs ${ODP_LIB_NAME}`
-
-sysctl vm.nr_hugepages=1000
+echo 1000 | tee /proc/sys/vm/nr_hugepages
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge
-if [ -z "$TARGET_ARCH" ] || [ "$TARGET_ARCH" == "$BUILD_ARCH" ]
-then
- LD_LIBRARY_PATH="/opt/odp/lib:$LD_LIBRARY_PATH" ./odp_sysinfo_inst_dynamic
-fi
-popd
+make installcheck
-#dpdk wrapper script can umount hugepages itself
-umount /mnt/huge || true
+umount /mnt/huge