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
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to build-cc.

70
71
72
73
74
75
76

77


78






79

80
81
82
83
84
85
86
	x86_64-generic-linux-musl
	x86_64-generic-linux-gnu
)

untested_platforms=(
	powerpc-generic-linux-gnu
	powerpc-generic-linux-uclibc

	mips64-ubnt-linux-gnu


)








if [ "${BUILD_CC_USE_UNTESTED}" = '1' ]; then
	platforms=("${platforms[@]}" "${untested_platforms[@]}")
fi

idx="${#platforms[@]}"
for platform in "${BUILD_CC_PLATFORMDIR}"/*-platform.tar.bz2; do
	if [ ! -f "${platform}" ]; then







>
|
>
>
|
>
>
>
>
>
>

>







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
	x86_64-generic-linux-musl
	x86_64-generic-linux-gnu
)

untested_platforms=(
	powerpc-generic-linux-gnu
	powerpc-generic-linux-uclibc
)

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[@]}"
for platform in "${BUILD_CC_PLATFORMDIR}"/*-platform.tar.bz2; do
	if [ ! -f "${platform}" ]; then
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
			exit 1
		else
			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

## URLs
### Binutils
if [ -z "${BINUTILS_URL}" ]; then
	BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
fi
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"







|
|
<
<
<
<
<
<
<







133
134
135
136
137
138
139
140
141







142
143
144
145
146
147
148
			exit 1
		else
			echo "Proceeding anyway due to BUILD_CC_FORCE_PLATFORM" >&2
		fi
	fi
fi

## 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"
fi
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"

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









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