From: Mike Frysinger Date: Sun, 17 Feb 2019 20:41:18 +0000 (-0500) Subject: travis: build all available versions of binutils X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=725c5e1afbd0cea962575751d198eeea2bc2a001;p=elf2flt.git travis: build all available versions of binutils This helps make sure we work across a variety of versions. --- diff --git a/travis/main.sh b/travis/main.sh index f3c5a0f..c70c505 100755 --- a/travis/main.sh +++ b/travis/main.sh @@ -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 "$@"