Index: build-cc ================================================================== --- build-cc +++ build-cc @@ -72,13 +72,23 @@ ) untested_platforms=( powerpc-generic-linux-gnu powerpc-generic-linux-uclibc - mips64-ubnt-linux-gnu ) +for platformfile in platform/*.sh; do + platform="$(echo "${platformfile}" | sed 's@^.*/@@;s@\.sh$@@')" + + if grep '^# Tested' "${platformfile}" >/dev/null 2>/dev/null; then + platforms=("${platforms[@]}" "${platform}") + else + untested_platforms=("${untested_platforms[@]}" "${platform}") + fi +done + +# Verify platform if [ "${BUILD_CC_USE_UNTESTED}" = '1' ]; then platforms=("${platforms[@]}" "${untested_platforms[@]}") fi idx="${#platforms[@]}" @@ -125,19 +135,12 @@ echo "Proceeding anyway due to BUILD_CC_FORCE_PLATFORM" >&2 fi fi fi -## Versions -case "${platform}" in - mips64-ubnt-linux-gnu) - # Ubiquiti uses an old version of glibc - GLIBC_VERS='2.11.3' - GLIBC_PORTS_VERS='2.11' - export GLIBC_VERS GLIBC_PORTS_VERS - ;; -esac +## Load user-supplied profiles +. "${TOPDIR}/platform/${platform}.sh" ## URLs ### Binutils if [ -z "${BINUTILS_URL}" ]; then BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2" ADDED platform/mips64-ubnt-linux-gnu.sh Index: platform/mips64-ubnt-linux-gnu.sh ================================================================== --- /dev/null +++ platform/mips64-ubnt-linux-gnu.sh @@ -0,0 +1,4 @@ +# Untested +GLIBC_VERS='2.11.3' +GLIBC_PORTS_VERS='2.11' +export GLIBC_VERS GLIBC_PORTS_VERS