Check-in [fcb06ea4e4]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Migrated platform parameters to separate scripts
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fcb06ea4e454ced8a1cb37c108cc5b86546f88ec
User & Date: rkeene 2018-02-19 02:42:23
Context
2018-02-19
02:42
Added AArch64 kernel parameters check-in: 2d7e70b7ac user: rkeene tags: trunk
02:42
Migrated platform parameters to separate scripts check-in: fcb06ea4e4 user: rkeene tags: trunk
02:28
Upgraded to glibc 2.27 (needed for AArch64) check-in: edd4c58c17 user: rkeene tags: trunk
Changes

Changes to build-cc.

    70     70   	x86_64-generic-linux-musl
    71     71   	x86_64-generic-linux-gnu
    72     72   )
    73     73   
    74     74   untested_platforms=(
    75     75   	powerpc-generic-linux-gnu
    76     76   	powerpc-generic-linux-uclibc
    77         -	mips64-ubnt-linux-gnu
    78     77   )
    79     78   
           79  +for platformfile in platform/*.sh; do
           80  +	platform="$(echo "${platformfile}" | sed 's@^.*/@@;s@\.sh$@@')"
           81  +
           82  +	if grep '^# Tested' "${platformfile}" >/dev/null 2>/dev/null; then
           83  +		platforms=("${platforms[@]}" "${platform}")
           84  +	else
           85  +		untested_platforms=("${untested_platforms[@]}" "${platform}")
           86  +	fi
           87  +done
           88  +
           89  +# Verify platform
    80     90   if [ "${BUILD_CC_USE_UNTESTED}" = '1' ]; then
    81     91   	platforms=("${platforms[@]}" "${untested_platforms[@]}")
    82     92   fi
    83     93   
    84     94   idx="${#platforms[@]}"
    85     95   for platform in "${BUILD_CC_PLATFORMDIR}"/*-platform.tar.bz2; do
    86     96   	if [ ! -f "${platform}" ]; then
................................................................................
   123    133   			exit 1
   124    134   		else
   125    135   			echo "Proceeding anyway due to BUILD_CC_FORCE_PLATFORM" >&2
   126    136   		fi
   127    137   	fi
   128    138   fi
   129    139   
   130         -## Versions
   131         -case "${platform}" in
   132         -	mips64-ubnt-linux-gnu)
   133         -		# Ubiquiti uses an old version of glibc
   134         -		GLIBC_VERS='2.11.3'
   135         -		GLIBC_PORTS_VERS='2.11'
   136         -		export GLIBC_VERS GLIBC_PORTS_VERS
   137         -		;;
   138         -esac
          140  +## Load user-supplied profiles
          141  +. "${TOPDIR}/platform/${platform}.sh"
   139    142   
   140    143   ## URLs
   141    144   ### Binutils
   142    145   if [ -z "${BINUTILS_URL}" ]; then
   143    146   	BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
   144    147   fi
   145    148   BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"

Added platform/mips64-ubnt-linux-gnu.sh.

            1  +# Untested
            2  +GLIBC_VERS='2.11.3'
            3  +GLIBC_PORTS_VERS='2.11'
            4  +export GLIBC_VERS GLIBC_PORTS_VERS