diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/skiboot/opal-ci/build-ubuntu-18.04.sh | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/skiboot/opal-ci/build-ubuntu-18.04.sh')
-rwxr-xr-x | roms/skiboot/opal-ci/build-ubuntu-18.04.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/roms/skiboot/opal-ci/build-ubuntu-18.04.sh b/roms/skiboot/opal-ci/build-ubuntu-18.04.sh new file mode 100755 index 000000000..48eb825bf --- /dev/null +++ b/roms/skiboot/opal-ci/build-ubuntu-18.04.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -uo pipefail +set -e +set -vx + +MAKE_J=$(grep -c processor /proc/cpuinfo) + +export CROSS="ccache powerpc64le-linux-gnu-" + +make -j${MAKE_J} all +make -j${MAKE_J} check +(make clean; cd external/gard && CROSS= make -j${MAKE_J}) +# because some ppc64le versions don't have arm cross compiler +if which arm-linux-gnueabi-gcc; then + ( cd external/pflash; + echo "Building for ARM..." + make clean && make distclean + CROSS_COMPILE=arm-linux-gnueabi- make || { echo "ARM build failed"; exit 1; } + ) +fi +(cd external/pflash; make clean && make distclean && make) +make clean +SKIBOOT_GCOV=1 make -j${MAKE_J} +SKIBOOT_GCOV=1 make -j${MAKE_J} check + +make clean +rm -rf builddir +mkdir builddir +make SRC=$(pwd) -f ../Makefile -C builddir -j${MAKE_J} +make clean |