. "${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
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 "$@"