Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Upgraded several toolchain components |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
f4a1af215839604ddef7a6c9043d7e88 |
| User & Date: | rkeene 2018-02-16 15:47:11 |
Context
|
2018-02-18
| ||
| 22:58 | Updated to support patching glibc check-in: f923507a5d user: rkeene tags: trunk | |
|
2018-02-16
| ||
| 15:47 | Upgraded several toolchain components check-in: f4a1af2158 user: rkeene tags: trunk | |
|
2018-01-28
| ||
| 02:52 | Added support for overriding the URLs and version for all tools, upgraded zlib check-in: a336cd831a user: rkeene tags: trunk | |
Changes
Changes to build-cc.
| ︙ | ︙ | |||
31 32 33 34 35 36 37 |
if [ -f "build-cc.conf" ]; then
. "build-cc.conf"
fi
# Tool versions
## SHA1 may be left blank to disable hashing
if [ -z "${BINUTILS_VERS}" ]; then
| | | | | | | | | | | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
if [ -f "build-cc.conf" ]; then
. "build-cc.conf"
fi
# Tool versions
## SHA1 may be left blank to disable hashing
if [ -z "${BINUTILS_VERS}" ]; then
BINUTILS_VERS='2.29.1'
BINUTILS_SHA1='5156099a6c50bd330c3d4c8fc56a9bf725ccaf08'
fi
if [ -z "${GCC_VERS}" ]; then
GCC_VERS='7.3.0'
GCC_SHA1='9689b9cae7b2886fdaa08449a26701f095c04e48'
fi
if [ -z "${GMP_VERS}" ]; then
GMP_VERS='6.1.2'
GMP_SHA1='366ded6a44cd108ba6b3f5b9a252eab3f3a95cdf'
fi
if [ -z "${MPFR_VERS}" ]; then
MPFR_VERS='4.0.0'
MPFR_SHA1='799245347044c8f0da9e513f86bb5e4c07974931'
fi
if [ -z "${MPC_VERS}" ]; then
MPC_VERS='1.1.0'
MPC_SHA1='b019d9e1d27ec5fb99497159d43a3164995de2d0'
fi
# Start of script
## Initialize default values
use_multilib="${BUILD_CC_MULTILIB_DEFAULT:-1}"
use_gnu_ld='1'
use_gnu_as='1'
|
| ︙ | ︙ | |||
143 144 145 146 147 148 149 |
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
fi
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_DIR="binutils-${BINUTILS_VERS}"
### GCC
if [ -z "${GCC_URL}" ]; then
| | | | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
fi
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_DIR="binutils-${BINUTILS_VERS}"
### GCC
if [ -z "${GCC_URL}" ]; then
GCC_URL="http://mirrors.kernel.org/gnu/gcc/gcc-${GCC_VERS}/gcc-${GCC_VERS}.tar.xz"
fi
GCC_TARBALL="src/gcc-${GCC_VERS}.tar.xz"
GCC_DIR="gcc-${GCC_VERS}"
### GMP
if [ -z "${GMP_URL}" ]; then
GMP_URL="http://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERS}.tar.bz2"
fi
GMP_TARBALL="src/gmp-${GMP_VERS}.tar.bz2"
|
| ︙ | ︙ | |||
464 465 466 467 468 469 470 |
download "${GCC_URL}" "${GCC_TARBALL}" "${GCC_SHA1}" || exit 1
download "${GMP_URL}" "${GMP_TARBALL}" "${GMP_SHA1}" || exit 1
download "${MPFR_URL}" "${MPFR_TARBALL}" "${MPFR_SHA1}" || exit 1
download "${MPC_URL}" "${MPC_TARBALL}" "${MPC_SHA1}" || exit 1
# Extract sources
| | | 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 |
download "${GCC_URL}" "${GCC_TARBALL}" "${GCC_SHA1}" || exit 1
download "${GMP_URL}" "${GMP_TARBALL}" "${GMP_SHA1}" || exit 1
download "${MPFR_URL}" "${MPFR_TARBALL}" "${MPFR_SHA1}" || exit 1
download "${MPC_URL}" "${MPC_TARBALL}" "${MPC_SHA1}" || exit 1
# Extract sources
xz -dc "${GCC_TARBALL}" | "${TAR:-tar}" -xf -
bzip2 -dc "${GMP_TARBALL}" | "${TAR:-tar}" -xf -
bzip2 -dc "${MPFR_TARBALL}" | "${TAR:-tar}" -xf -
gzip -dc "${MPC_TARBALL}" | "${TAR:-tar}" -xf -
# Rename GCC dir to the name we need
rm -rf "${GCC_DIR}"
mv "gcc-${GCC_VERS}" "${GCC_DIR}"
|
| ︙ | ︙ |
Changes to scripts/post/00-linux-kernel.
1 2 3 4 |
#! /bin/bash
# URLs and versions
if [ -z "${LINUX_VERS}" ]; then
| | | > | > | > | > > > > > > > > > > > > > > > > > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
#! /bin/bash
# URLs and versions
if [ -z "${LINUX_VERS}" ]; then
LINUX_VERS='3.2.98'
LINUX_TARBALL_SHA256="f31dc3ad9473086b413f8cd3daef1a8003481eb25910a617c74cbc640635eb31"
fi
if [ -z "${LINUX_URL}" ]; then
LINUX_VERS_SHORT="$(echo "${LINUX_VERS}" | cut -f 1-2 -d '.')"
LINUX_VERS_MAJX="$(echo "${LINUX_VERS}" | cut -f 1 -d '.').x"
case "${LINUX_VERS}" in
[12].*)
LINUX_URL="http://www.kernel.org/pub/linux/kernel/v${LINUX_VERS_SHORT}/linux-${LINUX_VERS}.tar.bz2"
;;
*)
LINUX_URL="http://www.kernel.org/pub/linux/kernel/v${LINUX_VERS_MAJX}/linux-${LINUX_VERS}.tar.xz"
;;
esac
fi
case "${LINUX_URL}" in
*.gz)
LINUX_TARBALL_COMPRESSION='gz'
LINUX_TARBALL_COMPRESSION_TOOL='gzip'
;;
*.bz2)
LINUX_TARBALL_COMPRESSION='bz2'
LINUX_TARBALL_COMPRESSION_TOOL='bzip2'
;;
*.xz)
LINUX_TARBALL_COMPRESSION='xz'
LINUX_TARBALL_COMPRESSION_TOOL='xz'
;;
esac
LINUX_TARBALL="src/linux-${LINUX_VERS}.tar.${LINUX_TARBALL_COMPRESSION}"
LINUX_DIR="linux-${LINUX_VERS}"
# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"
|
| ︙ | ︙ | |||
50 51 52 53 54 55 56 |
# Inform the user of what we are doing
echo " * Building Linux kernel headers for ${arch}"
if [ ! -d "${LINUX_DIR}" ]; then
download "${LINUX_URL}" "${LINUX_TARBALL}" "${LINUX_TARBALL_SHA256}" || exit 1
| | | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# Inform the user of what we are doing
echo " * Building Linux kernel headers for ${arch}"
if [ ! -d "${LINUX_DIR}" ]; then
download "${LINUX_URL}" "${LINUX_TARBALL}" "${LINUX_TARBALL_SHA256}" || exit 1
"${LINUX_TARBALL_COMPRESSION_TOOL}" -dc "${LINUX_TARBALL}" | tar -xf -
fi
cp -rp "${LINUX_DIR}" "${LINUX_DIR}-${CCNAME}"
(
cd "${LINUX_DIR}-${CCNAME}" || exit 1
|
| ︙ | ︙ |
Changes to scripts/post/02-glibc.
1 2 3 4 |
#! /bin/bash
# URLs and versions
if [ -z "${GLIBC_VERS}" ]; then
| > > > > | | > | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#! /bin/bash
# URLs and versions
if [ -z "${LINUX_VERS}" ]; then
## Keep in sync with 00-linux-kernel
LINUX_VERS='3.2.98'
fi
if [ -z "${GLIBC_VERS}" ]; then
GLIBC_VERS='2.26'
GLIBC_TARBALL_SHA256="dcc2482b00fdb1c316f385f8180e182bbd37c065dc7d8281a4339d2834ef1be7"
fi
if [ -z "${GLIBC_URL}" ]; then
GLIBC_URL="http://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VERS}.tar.gz"
fi
GLIBC_TARBALL="src/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_DIR="glibc-${GLIBC_VERS}"
if [ -z "${GLIBC_PORTS_VERS}" ]; then
GLIBC_PORTS_VERS='2.16.0'
GLIBC_PORTS_TARBALL_SHA256="1092e81d0c9c1bc29343004c1d01fb0d89eb49dd0fd5339b2f2e64a44b582d10"
fi
if [ -z "${GLIBC_PORTS_URL}" ]; then
GLIBC_PORTS_URL="http://ftp.gnu.org/gnu/glibc/glibc-ports-${GLIBC_PORTS_VERS}.tar.gz"
fi
GLIBC_PORTS_TARBALL="src/glibc-ports-${GLIBC_PORTS_VERS}.tar.gz"
GLIBC_PORTS_DIR="$(pwd)/glibc-ports-${GLIBC_PORTS_VERS}"
# Main script
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
|
| ︙ | ︙ | |||
114 115 116 117 118 119 120 |
"../${GLIBC_DIR}/configure" --prefix='/' --libdir="${arch_libdir}" --host="${arch_host}" --enable-add-ons="${GLIBC_PORTS_DIR},libidn${GLIBC_ADDITIONAL_ADDONS}" \
libc_cv_forced_unwind=yes libc_cv_ctors_header=yes libc_cv_c_cleanup=yes libc_cv_ssp=no || exit 1
rebuild_binutils_needed='1'
;;
stage2)
"../${GLIBC_DIR}/configure" --prefix='/' --libdir="${arch_libdir}" --host="${arch_host}" --enable-add-ons="${GLIBC_PORTS_DIR},libidn${GLIBC_ADDITIONAL_ADDONS}" \
| | | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
"../${GLIBC_DIR}/configure" --prefix='/' --libdir="${arch_libdir}" --host="${arch_host}" --enable-add-ons="${GLIBC_PORTS_DIR},libidn${GLIBC_ADDITIONAL_ADDONS}" \
libc_cv_forced_unwind=yes libc_cv_ctors_header=yes libc_cv_c_cleanup=yes libc_cv_ssp=no || exit 1
rebuild_binutils_needed='1'
;;
stage2)
"../${GLIBC_DIR}/configure" --prefix='/' --libdir="${arch_libdir}" --host="${arch_host}" --enable-add-ons="${GLIBC_PORTS_DIR},libidn${GLIBC_ADDITIONAL_ADDONS}" \
--enable-kernel="${LINUX_VERS}" || exit 1
;;
esac
${MAKE} ${BUILD_CC_MAKE_FLAGS} || exit 1
${MAKE} ${BUILD_CC_MAKE_FLAGS} install_root="${PREFIX}" install || exit 1
|
| ︙ | ︙ |