diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-24 13:26:00 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-24 15:08:58 +0300 |
commit | 6ba53c5521e6b59662113bf6478f8c375142f63e (patch) | |
tree | 83093184dccc0e9f66e430345406e8811c797efe /scripts | |
parent | 84ca53091058c769304a4b7694d9f2b7b4739942 (diff) |
Build latest iproute2 and support TAS schedulers
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-dpdk.sh | 6 | ||||
-rwxr-xr-x | scripts/build-iproute2.sh | 27 | ||||
-rwxr-xr-x | scripts/build-odp.sh | 6 | ||||
-rwxr-xr-x | scripts/lava-common.sh | 2 |
4 files changed, 35 insertions, 6 deletions
diff --git a/scripts/build-dpdk.sh b/scripts/build-dpdk.sh index 2702402..d139488 100755 --- a/scripts/build-dpdk.sh +++ b/scripts/build-dpdk.sh @@ -12,7 +12,7 @@ wget https://fast.dpdk.org/rel/dpdk-"$DPDK_VER".tar.xz -O "$DPDK_STATIC_TAR" && mkdir "$DPDK_DIR" && tar xf "$DPDK_STATIC_TAR" --strip 1 -C "$DPDK_DIR" # terminate LAVA job if download failed -[ $? -ne 0 ] && dpdk_lava_result 'DPDK_DOWNLOAD' 'FAILED' 'yes' +[ $? -ne 0 ] && lava_result 'DPDK_DOWNLOAD' 'FAILED' 'yes' # we usually run on Xeon/Thunderx, aadjust accordingly for future archs case $arch in @@ -25,10 +25,10 @@ case $arch in cjobs=24 ;; *) - dpdk_lava_result 'BUILD_ARCH' 'UNKNOWN_ARCH' 'yes' + lava_result 'BUILD_ARCH' 'UNKNOWN_ARCH' 'yes' esac cd "$DPDK_DIR" make -j "$cjobs" install T="$dpdk_t" DESTDIR=./install cd .. -dpdk_lava_result 'DPDK_BUILD' 'OK' 'no' +lava_result 'DPDK_BUILD' 'OK' 'no' diff --git a/scripts/build-iproute2.sh b/scripts/build-iproute2.sh new file mode 100755 index 0000000..6270b92 --- /dev/null +++ b/scripts/build-iproute2.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +. scripts/lava-common.sh + +IPROUTE_CONF_OPTS='--prefix=./install' +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 +./configure "$IPROUTE_CONF_OPTS" +make -j $cjobs install diff --git a/scripts/build-odp.sh b/scripts/build-odp.sh index ecaa636..5e6b6d0 100755 --- a/scripts/build-odp.sh +++ b/scripts/build-odp.sh @@ -1,11 +1,13 @@ #!/bin/sh +. ./lava-comon.sh + ODP_VER='master' ODP_CONF_OPTS='--enable-debug --enable-debug-print --prefix=./install' git clone https://github.com/Linaro/odp.git && cd odp && git checkout master # terminate LAVA job if download failed -[ $? -ne 0 ] && dpdk_lava_result 'ODP_DOWNLOAD' 'FAILED' 'yes' +[ $? -ne 0 ] && lava_result 'ODP_DOWNLOAD' 'FAILED' 'yes' # we usually run on Xeon/Thunderx, aadjust accordingly for future archs arch=$(arch) @@ -17,7 +19,7 @@ case $arch in cjobs=24 ;; *) - dpdk_lava_result 'BUILD_ARCH' 'UNKNOWN_ARCH' 'yes' + lava_result 'BUILD_ARCH' 'UNKNOWN_ARCH' 'yes' esac # already cd'ed in diff --git a/scripts/lava-common.sh b/scripts/lava-common.sh index 331db0f..86c7f86 100755 --- a/scripts/lava-common.sh +++ b/scripts/lava-common.sh @@ -1,6 +1,6 @@ #!/bin/sh -dpdk_lava_result() { +lava_result() { reason=$1 result=$2 stop_session=$3 |