Merge pull request #24 from Christopher83/master

Add the support to choose, download and build latest Linaro toolchain components
This commit is contained in:
Bryan Hundven 2015-01-26 08:02:32 -08:00
commit 0a6b755fea
13 changed files with 157 additions and 67 deletions

View File

@ -8,11 +8,21 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config BINUTILS_LINARO_V_2_25
bool
prompt "linaro-2.25.0-2015.01-2"
select BINUTILS_2_25_or_later
config BINUTILS_V_2_25
bool
prompt "2.25"
select BINUTILS_2_25_or_later
config BINUTILS_LINARO_V_2_24
bool
prompt "linaro-2.24.0-2014.11-2"
select BINUTILS_2_24_or_later
config BINUTILS_V_2_24
bool
prompt "2.24"
@ -82,7 +92,9 @@ config BINUTILS_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-2.25.0-2015.01-2" if BINUTILS_LINARO_V_2_25
default "2.25" if BINUTILS_V_2_25
default "linaro-2.24.0-2014.11-2" if BINUTILS_LINARO_V_2_24
default "2.24" if BINUTILS_V_2_24
default "2.23.2" if BINUTILS_V_2_23_2
default "2.23.1" if BINUTILS_V_2_23_1

View File

@ -36,6 +36,12 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config CC_V_linaro_4_9
bool
prompt "linaro-4.9-2015.01"
depends on CC_GCC_SHOW_LINARO
select CC_GCC_4_9
config CC_V_4_9_2
bool
prompt "4.9.2"
@ -53,7 +59,7 @@ config CC_V_4_9_0
config CC_V_linaro_4_8
bool
prompt "linaro-4.8-2014.04"
prompt "linaro-4.8-2014.11"
depends on CC_GCC_SHOW_LINARO
select CC_GCC_4_8
@ -502,10 +508,11 @@ config CC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-4.9-2015.01" if CC_V_linaro_4_9
default "4.9.2" if CC_V_4_9_2
default "4.9.1" if CC_V_4_9_1
default "4.9.0" if CC_V_4_9_0
default "linaro-4.8-2014.04" if CC_V_linaro_4_8
default "linaro-4.8-2014.11" if CC_V_linaro_4_8
default "4.8.4" if CC_V_4_8_4
default "4.8.3" if CC_V_4_8_3
default "4.8.2" if CC_V_4_8_2

View File

@ -33,6 +33,12 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config GDB_V_linaro_7_8
bool
prompt "linaro-7.8-2014.09"
depends on DEBUG_GDB_SHOW_LINARO
select GDB_7_2_or_later
config GDB_V_7_8_1
bool
prompt "7.8.1"
@ -53,14 +59,20 @@ config GDB_V_7_7
prompt "7.7"
select GDB_7_2_or_later
config GDB_V_linaro_7_6
bool
prompt "linaro-7.6.1-2013.10"
depends on DEBUG_GDB_SHOW_LINARO
select GDB_7_2_or_later
config GDB_V_7_6_1
bool
prompt "7.6.1"
select GDB_7_2_or_later
config GDB_V_linaro_7_6_2013_05
config GDB_V_linaro_7_5
bool
prompt "linaro-7.6-2013.05"
prompt "linaro-7.5-2012.12-1"
depends on DEBUG_GDB_SHOW_LINARO
select GDB_7_2_or_later
@ -69,13 +81,7 @@ config GDB_V_7_5_1
prompt "7.5.1"
select GDB_7_2_or_later
config GDB_V_linaro_7_5_2012_12_1
bool
prompt "linaro-7.5-2012.12-1"
depends on DEBUG_GDB_SHOW_LINARO
select GDB_7_2_or_later
config GDB_V_linaro_7_4_2012_06
config GDB_V_linaro_7_4
bool
prompt "linaro-7.4-2012.06"
depends on DEBUG_GDB_SHOW_LINARO
@ -91,7 +97,7 @@ config GDB_V_7_4
prompt "7.4"
select GDB_7_2_or_later
config GDB_V_linaro_7_3_2011_12
config GDB_V_linaro_7_3
bool
prompt "linaro-7.3-2011.12"
depends on DEBUG_GDB_SHOW_LINARO
@ -107,7 +113,7 @@ config GDB_V_7_3a
prompt "7.3a"
select GDB_7_2_or_later
config GDB_V_linaro_7_2_2011_05_0
config GDB_V_linaro_7_2
bool
prompt "linaro-7.2-2011.05-0"
depends on DEBUG_GDB_SHOW_LINARO
@ -168,18 +174,19 @@ config GDB_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-7.8-2014.09" if GDB_V_linaro_7_8
default "7.8.1" if GDB_V_7_8_1
default "7.8" if GDB_V_7_8
default "7.7.1" if GDB_V_7_7_1
default "7.7" if GDB_V_7_7
default "linaro-7.6.1-2013.10" if GDB_V_linaro_7_6
default "7.6.1" if GDB_V_7_6_1
default "linaro-7.6-2013.05" if GDB_V_linaro_7_6_2013_05
default "linaro-7.5-2012.12-1" if GDB_V_linaro_7_5
default "7.5.1" if GDB_V_7_5_1
default "linaro-7.5-2012.12-1" if GDB_V_linaro_7_5_2012_12_1
default "linaro-7.4-2012.06" if GDB_V_linaro_7_4_2012_06
default "linaro-7.4-2012.06" if GDB_V_linaro_7_4
default "7.4.1" if GDB_V_7_4_1
default "7.4" if GDB_V_7_4
default "linaro-7.3-2011.12" if GDB_V_linaro_7_3_2011_12
default "linaro-7.3-2011.12" if GDB_V_linaro_7_3
default "7.3.1" if GDB_V_7_3_1
default "7.3a" if GDB_V_7_3a
default "linaro-7.2-2011.05-0" if GDB_V_linaro_7_2_2011_05_0

View File

@ -26,9 +26,13 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config KERNEL_V_3_18
bool
prompt "3.18.3"
config KERNEL_V_3_17
bool
prompt "3.17.6"
prompt "3.17.8"
config KERNEL_V_3_16
bool
@ -40,7 +44,7 @@ config KERNEL_V_3_15
config KERNEL_V_3_14
bool
prompt "3.14.26 (longterm)"
prompt "3.14.29 (longterm)"
config KERNEL_V_3_13
bool
@ -48,7 +52,7 @@ config KERNEL_V_3_13
config KERNEL_V_3_12
bool
prompt "3.12.35 (longterm)"
prompt "3.12.36 (longterm)"
config KERNEL_V_3_11
bool
@ -56,7 +60,7 @@ config KERNEL_V_3_11
config KERNEL_V_3_10
bool
prompt "3.10.62 (longterm)"
prompt "3.10.65 (longterm)"
config KERNEL_V_3_9
bool
@ -88,7 +92,7 @@ config KERNEL_V_3_3
config KERNEL_V_3_2
bool
prompt "3.2.64 (longterm)"
prompt "3.2.66 (longterm)"
config KERNEL_V_3_1
bool
@ -124,7 +128,7 @@ config KERNEL_V_2_6_33
config KERNEL_V_2_6_32
bool
prompt "2.6.32.64 (longterm)"
prompt "2.6.32.65 (longterm)"
help
The Linux 2.6.32 tree is a "longterm" maintenance branch.
@ -187,14 +191,15 @@ config KERNEL_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "3.17.6" if KERNEL_V_3_17
default "3.18.3" if KERNEL_V_3_18
default "3.17.8" if KERNEL_V_3_17
default "3.16.7" if KERNEL_V_3_16
default "3.15.10" if KERNEL_V_3_15
default "3.14.26" if KERNEL_V_3_14
default "3.14.29" if KERNEL_V_3_14
default "3.13.11" if KERNEL_V_3_13
default "3.12.35" if KERNEL_V_3_12
default "3.12.36" if KERNEL_V_3_12
default "3.11.10" if KERNEL_V_3_11
default "3.10.62" if KERNEL_V_3_10
default "3.10.65" if KERNEL_V_3_10
default "3.9.11" if KERNEL_V_3_9
default "3.8.13" if KERNEL_V_3_8
default "3.7.10" if KERNEL_V_3_7
@ -202,7 +207,7 @@ config KERNEL_VERSION
default "3.5.7" if KERNEL_V_3_5
default "3.4.105" if KERNEL_V_3_4
default "3.3.8" if KERNEL_V_3_3
default "3.2.64" if KERNEL_V_3_2
default "3.2.66" if KERNEL_V_3_2
default "3.1.10" if KERNEL_V_3_1
default "3.0.101" if KERNEL_V_3_0
default "2.6.39.4" if KERNEL_V_2_6_39
@ -210,7 +215,7 @@ config KERNEL_VERSION
default "2.6.37.6" if KERNEL_V_2_6_37
default "2.6.36.4" if KERNEL_V_2_6_36
default "2.6.33.20" if KERNEL_V_2_6_33
default "2.6.32.64" if KERNEL_V_2_6_32
default "2.6.32.65" if KERNEL_V_2_6_32
default "2.6.31.14" if KERNEL_V_2_6_31
default "2.6.27.62" if KERNEL_V_2_6_27
default "custom" if KERNEL_LINUX_CUSTOM

View File

@ -21,6 +21,11 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config LIBC_EGLIBC_LINARO_V_2_19
bool
prompt "Linaro 2.19-2014.08"
select LIBC_EGLIBC_2_16_or_later
config LIBC_EGLIBC_V_2_18
bool
prompt "2_18"
@ -92,6 +97,7 @@ config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-2.19-2014.08" if LIBC_EGLIBC_LINARO_V_2_19
default "2_18" if LIBC_EGLIBC_V_2_18
default "2_17" if LIBC_EGLIBC_V_2_17
default "2_16" if LIBC_EGLIBC_V_2_16

View File

@ -17,6 +17,11 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config LIBC_GLIBC_LINARO_V_2_20
bool
prompt "Linaro 2.20-2014.11"
select LIBC_GLIBC_2_20_or_later
config LIBC_GLIBC_V_2_20
bool
prompt "2.20"
@ -126,6 +131,7 @@ config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-2.20-2014.11" if LIBC_GLIBC_LINARO_V_2_20
default "2.20" if LIBC_GLIBC_V_2_20
default "2.19" if LIBC_GLIBC_V_2_19
default "2.18" if LIBC_GLIBC_V_2_18

View File

@ -19,15 +19,25 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config LIBC_NEWLIB_LINARO_V_2_2_0
bool
prompt "Linaro 2.2.0-2015.01"
config LIBC_NEWLIB_V_2_2_0
bool
prompt "2.2.0"
config LIBC_NEWLIB_LINARO_V_2_1_0
bool
prompt "Linaro 2.1.0-2014.09"
config LIBC_NEWLIB_V_2_1_0
bool
prompt "2.1.0 (EXPERIMENTAL)"
depends on EXPERIMENTAL
prompt "2.1.0"
config LIBC_NEWLIB_V_2_0_0
bool
prompt "2.0.0 (EXPERIMENTAL)"
depends on EXPERIMENTAL
prompt "2.0.0"
config LIBC_NEWLIB_V_1_20_0
bool
@ -68,6 +78,9 @@ config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-2.2.0-2015.01" if LIBC_NEWLIB_LINARO_V_2_2_0
default "2.2.0" if LIBC_NEWLIB_V_2_2_0
default "linaro-2.1.0-2014.09" if LIBC_NEWLIB_LINARO_V_2_1_0
default "2.1.0" if LIBC_NEWLIB_V_2_1_0
default "2.0.0" if LIBC_NEWLIB_V_2_0_0
default "1.20.0" if LIBC_NEWLIB_V_1_20_0

View File

@ -8,9 +8,16 @@ do_binutils_get() {
CT_GetCustom "binutils" "${CT_BINUTILS_VERSION}" \
"${CT_BINUTILS_CUSTOM_LOCATION}"
else
CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \
ftp://{sourceware.org,gcc.gnu.org}/pub/binutils/{releases,snapshots} \
{ftp,http}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils
if echo ${CT_BINUTILS_VERSION} |grep -q linaro; then
YYMM=`echo ${CT_BINUTILS_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \
https://releases.linaro.org/${YYMM}/components/toolchain/binutils-linaro \
http://cbuild.validation.linaro.org/snapshots
else
CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \
ftp://{sourceware.org,gcc.gnu.org}/pub/binutils/{releases,snapshots} \
{ftp,http}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils
fi
fi
if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then

View File

@ -6,30 +6,31 @@
do_cc_get() {
local linaro_version=""
local linaro_series=""
local linaro_base_url="http://launchpad.net/gcc-linaro"
if [ "${CT_CC_CUSTOM}" = "y" ]; then
CT_GetCustom "gcc" "${CT_CC_VERSION}" "${CT_CC_CUSTOM_LOCATION}"
else
# Account for the Linaro versioning
linaro_version="$( echo "${CT_CC_VERSION}" \
|sed -r -e 's/^linaro-//;' \
|${sed} -r -e 's/^linaro-//;' \
)"
linaro_series="$( echo "${linaro_version}" \
|sed -r -e 's/-.*//;' \
|${sed} -r -e 's/-.*//;' \
)"
# The official gcc hosts put gcc under a gcc/release/ directory,
# whereas the mirrors put it in the gcc/ directory.
# Also, Split out linaro mirrors, so that downloads happen faster.
CT_DoLog EXTRA "linaro_version: ${linaro_version} CT_CC_VERSION: ${CT_CC_VERSION}"
# The official gcc hosts put gcc under a gcc/release/ directory,
# whereas the mirrors put it in the gcc/ directory.
# Also, Split out linaro mirrors, so that downloads happen faster.
if [ x"${linaro_version}" = x"${CT_CC_VERSION}" ]; then
CT_GetFile "gcc-${CT_CC_VERSION}" \
ftp://{gcc.gnu.org,sourceware.org}/pub/gcc/releases/gcc-${CT_CC_VERSION} \
{http,ftp,https}://ftp.gnu.org/gnu/gcc/gcc-${CT_CC_VERSION}
CT_GetFile "gcc-${CT_CC_VERSION}" \
ftp://{gcc.gnu.org,sourceware.org}/pub/gcc/releases/gcc-${CT_CC_VERSION} \
{http,ftp,https}://ftp.gnu.org/gnu/gcc/gcc-${CT_CC_VERSION}
else
CT_GetFile "gcc-${CT_CC_VERSION}" \
"${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
YYMM=`echo ${CT_CC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "gcc-${CT_CC_VERSION}" \
"http://launchpad.net/gcc-linaro/${linaro_series}/${linaro_version}/+download" \
https://releases.linaro.org/${YYMM}/components/toolchain/gcc-linaro/${linaro_series} \
http://cbuild.validation.linaro.org/snapshots
fi
fi # ! custom location

View File

@ -35,15 +35,6 @@ do_debug_gdb_parts() {
do_debug_gdb_get() {
local linaro_version=""
local linaro_series=""
local linaro_base_url="http://launchpad.net/gdb-linaro"
# Account for the Linaro versioning
linaro_version="$( echo "${CT_GDB_VERSION}" \
|sed -r -e 's/^linaro-//;' \
)"
linaro_series="$( echo "${linaro_version}" \
|sed -r -e 's/-.*//;' \
)"
do_debug_gdb_parts
@ -51,13 +42,24 @@ do_debug_gdb_get() {
if [ "${CT_GDB_CUSTOM}" = "y" ]; then
CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}"
else
# Account for the Linaro versioning
linaro_version="$( echo "${CT_GDB_VERSION}" \
|${sed} -r -e 's/^linaro-//;' \
)"
linaro_series="$( echo "${linaro_version}" \
|${sed} -r -e 's/-.*//;' \
)"
if [ x"${linaro_version}" = x"${CT_GDB_VERSION}" ]; then
CT_GetFile "gdb-${CT_GDB_VERSION}" \
ftp://{sourceware.org,gcc.gnu.org}/pub/gdb/releases \
{http,ftp,https}://ftp.gnu.org/pub/gnu/gdb
CT_GetFile "gdb-${CT_GDB_VERSION}" \
ftp://{sourceware.org,gcc.gnu.org}/pub/gdb/releases \
{http,ftp,https}://ftp.gnu.org/pub/gnu/gdb
else
CT_GetFile "gdb-${CT_GDB_VERSION}" \
"${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
YYMM=`echo ${CT_GDB_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "gdb-${CT_GDB_VERSION}" \
"http://launchpad.net/gdb-linaro/${linaro_series}/${linaro_version}/+download" \
https://releases.linaro.org/${YYMM}/components/toolchain/gdb-linaro \
http://cbuild.validation.linaro.org/snapshots
fi
fi
fi

View File

@ -16,6 +16,15 @@ do_libc_get() {
local -a extra_addons
local svn_base
if echo ${CT_LIBC_VERSION} |grep -q linaro; then
# Linaro eglibc releases come from regular downloads...
YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "eglibc-${CT_LIBC_VERSION}" \
https://releases.linaro.org/${YYMM}/components/toolchain/eglibc-linaro \
http://cbuild.validation.linaro.org/snapshots
return
fi
if [ "${CT_EGLIBC_HTTP}" = "y" ]; then
svn_base="http://www.eglibc.org/svn"
else

View File

@ -23,9 +23,17 @@ do_libc_get() {
CT_GetCustom "glibc" "${CT_LIBC_VERSION}" "${CT_LIBC_GLIBC_CUSTOM_LOCATION}"
CT_LIBC_CUSTOM_LOCATION="${CT_SRC_DIR}/glibc-${CT_LIBC_VERSION}"
else
CT_GetFile "glibc-${CT_LIBC_VERSION}" \
{http,ftp,https}://ftp.gnu.org/gnu/glibc \
ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots}
if echo ${CT_LIBC_VERSION} |grep -q linaro; then
# Linaro eglibc releases come from regular downloads...
YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "glibc-${CT_LIBC_VERSION}" \
https://releases.linaro.org/${YYMM}/components/toolchain/glibc-linaro \
http://cbuild.validation.linaro.org/snapshots
else
CT_GetFile "glibc-${CT_LIBC_VERSION}" \
{http,ftp,https}://ftp.gnu.org/gnu/glibc \
ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots}
fi
fi
# C library addons

View File

@ -16,8 +16,15 @@ do_libc_get() {
CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
"${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
else # ! custom location
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
http://mirrors.kernel.org/sources.redhat.com/newlib
if echo ${CT_LIBC_VERSION} |grep -q linaro; then
YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
https://releases.linaro.org/${YYMM}/components/toolchain/newlib-linaro \
http://cbuild.validation.linaro.org/snapshots
else
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
http://mirrors.kernel.org/sources.redhat.com/newlib
fi
fi # ! custom location
if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then