#!/bin/bash . scripts/lava-common.sh IPROUTE_REPO='git://git.kernel.org/pub/scm/network/iproute2/iproute2.git' git clone "$IPROUTE_REPO" && pushd iproute2 && git checkout master # terminate LAVA job if download failed [ $? -ne 0 ] && lava_result 'IPROUTE2_DOWNLOAD' 'FAILED' 'yes' # we usually run on Xeon/Thunderx, adjust accordingly for future archs arch=$(arch) case $arch in aarch64) cjobs=98 ;; x86_64) cjobs=24 ;; *) lava_result 'BUILD_ARCH' 'UNKNOWN_ARCH' 'yes' esac # already cd'ed in make -j $cjobs install