blob: 3415252f81a1ff8009fffbbeed32de1d279dfa19 (
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
26
27
28
29
|
#!/bin/sh
. scripts/lava-common.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 ] && lava_result 'ODP_DOWNLOAD' 'FAILED' 'yes'
# we usually run on Xeon/Thunderx, aadjust 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
./bootstrap
autoreconf -i
./configure --enable-debug --enable-debug-print --prefix=$BUILD_DIR
make -j $cjobs install
|