]> git.wh0rd.org Git - elf2flt.git/commitdiff
travis: build all available versions of binutils
authorMike Frysinger <vapier@gentoo.org>
Sun, 17 Feb 2019 20:41:18 +0000 (15:41 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 17 Feb 2019 20:41:18 +0000 (15:41 -0500)
This helps make sure we work across a variety of versions.

travis/main.sh

index f3c5a0f196063aa4b30612814847926d24408f35..c70c505317bc130986f777da44c9009bad125803 100755 (executable)
@@ -6,18 +6,23 @@
 . "${0%/*}"/lib.sh
 . "${0%/*}"/arches.sh
 
-BINUTILS_VER="2.26.1"
+BINUTILS_VERS=(
+       2.25.1
+       2.26.1
+)
 
 build_one() {
        local arch=$1
+       local bver=$2
        local S=${PWD}
+       local build="build/${arch}-${bver}"
 
-       travis_fold start ${arch}
-       v mkdir -p build/${arch}
-       pushd build/${arch} >/dev/null
+       travis_fold start ${arch} "binutils-${bver}"
+       v mkdir -p "${build}"
+       pushd "${build}" >/dev/null
        v "${S}"/configure \
                --enable-werror \
-               --with-binutils-build-dir="${S}"/../prebuilts-binutils-libs/output/${BINUTILS_VER} \
+               --with-binutils-build-dir="${S}"/../prebuilts-binutils-libs/output/${bver} \
                --target=${arch}-elf
        m
        m check
@@ -29,9 +34,11 @@ main() {
        v --fold="git_clone_binutils" \
                git clone --depth=1 https://github.com/uclinux-dev/prebuilts-binutils-libs ../prebuilts-binutils-libs
 
-       local a
+       local a b
        for a in "${ARCHES[@]}" ; do
-               build_one "${a}"
+               for b in "${BINUTILS_VERS[@]}" ; do
+                       build_one "${a}" "${b}"
+               done
        done
 }
 main "$@"