summaryrefslogtreecommitdiff
path: root/scripts/build-iproute2.sh
blob: 5ee5333feb4b7f743006f0ff2123711d970fad8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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