aboutsummaryrefslogtreecommitdiff
path: root/tcwg-binutils.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-11-05 16:49:41 +0100
committerLinaro Code Review <review@review.linaro.org>2015-11-05 15:54:45 +0000
commit59bc6314d91bef342cea22a32a4ea59486b3bb9b (patch)
tree7eaa257d31acf2651ad12a3bdc57d3a6805c6880 /tcwg-binutils.yaml
parent467808cdb57f36735c4cad1a0d093019e4a6d50b (diff)
tcwg-binutils: Build in schroots.
Change-Id: I52347436af31618567002f8da08a439baab8615d
Diffstat (limited to 'tcwg-binutils.yaml')
-rw-r--r--tcwg-binutils.yaml22
1 files changed, 19 insertions, 3 deletions
diff --git a/tcwg-binutils.yaml b/tcwg-binutils.yaml
index caa25dd896..3f8b1eb572 100644
--- a/tcwg-binutils.yaml
+++ b/tcwg-binutils.yaml
@@ -46,6 +46,12 @@
- --enable-64-bit-bfd=yes
- axis:
type: user-defined
+ name: schroot_arch
+ values:
+ - i386
+ - amd64
+ - axis:
+ type: user-defined
name: target
values:
- aarch64-linux-gnu
@@ -75,9 +81,19 @@
set -e
set -x
+ schroot_image="tcwg-build-${schroot_arch}-trusty"
+
+ session_id=$(schroot -b -c chroot:$schroot_image --preserve-environment)
+ BUILD_SHELL="schroot -r -c session:$session_id --preserve-environment -- bash"
+ $BUILD_SHELL -c "echo \"Build session is up; ulimit config:\"; ulimit -a"
+
+ # Sometimes /dev/pts can't get unmounted on the first try.
+ # Workaround by retrying.
+ trap "schroot -f -e -c session:$session_id || sleep 60 || schroot -f -e -c session:$session_id" 0 1 2 3 5 9 13 15
+
mkdir -p build-$target
cd build-$target
- ../configure --enable-lto --enable-plugins --prefix=`pwd`/install --target $target ${bfd}
- make all-gas all-ld all-binutils -j4
- make check-gas check-ld check-binutils -j4
+ ${BUILD_SHELL} -c "../configure --enable-lto --enable-plugins --prefix=`pwd`/install --target $target ${bfd}"
+ ${BUILD_SHELL} -c "make all-gas all-ld all-binutils -j4"
+ ${BUILD_SHELL} -c "make check-gas check-ld check-binutils -j4"
tail `find . -name "*.sum"`