Changeset fd8bf6a in mainline
- Timestamp:
- 2009-11-02T18:01:16Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1c21c2
- Parents:
- cb3d641a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/toolchain.sh
rcb3d641a rfd8bf6a 92 92 } 93 93 94 patch_binutils() { 95 PLATFORM="$1" 96 97 if [ "${PLATFORM}" == "arm32" ] ; then 98 patch -p1 <<EOF 99 diff -Naur binutils-2.20.orig/gas/config/tc-arm.c binutils-2.20/gas/config/tc-arm.c 100 --- binutils-2.20.orig/gas/config/tc-arm.c 2009-08-30 00:10:59.000000000 +0200 101 +++ binutils-2.20/gas/config/tc-arm.c 2009-11-02 14:25:11.000000000 +0100 102 @@ -2485,8 +2485,9 @@ 103 know (frag->tc_frag_data.first_map == NULL); 104 frag->tc_frag_data.first_map = symbolP; 105 } 106 - if (frag->tc_frag_data.last_map != NULL) 107 + if (frag->tc_frag_data.last_map != NULL) { 108 know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP)); 109 + } 110 frag->tc_frag_data.last_map = symbolP; 111 } 112 EOF 113 check_error $? "Error patching binutils" 114 fi 115 } 116 94 117 build_target() { 95 118 PLATFORM="$1" 96 119 TARGET="$2" 97 120 98 BINUTILS_VERSION="2. 19.1"99 GCC_VERSION="4.4. 1"121 BINUTILS_VERSION="2.20" 122 GCC_VERSION="4.4.2" 100 123 101 124 BINUTILS="binutils-${BINUTILS_VERSION}.tar.bz2" … … 119 142 120 143 echo ">>> Downloading tarballs" 121 download_check "${BINUTILS_SOURCE}" "${BINUTILS}" " 09a8c5821a2dfdbb20665bc0bd680791"122 download_check "${GCC_SOURCE}" "${GCC_CORE}" "d 19693308aa6b2052e14c071111df59f"123 download_check "${GCC_SOURCE}" "${GCC_OBJC}" " f7b2a606394036e81433b2f4c3251cba"124 download_check "${GCC_SOURCE}" "${GCC_CPP}" " d449047b5761348ceec23739f5553e0b"144 download_check "${BINUTILS_SOURCE}" "${BINUTILS}" "ee2d3e996e9a2d669808713360fa96f8" 145 download_check "${GCC_SOURCE}" "${GCC_CORE}" "d50ec5af20508974411d0c83c5f4e396" 146 download_check "${GCC_SOURCE}" "${GCC_OBJC}" "d8d26187d386a0591222a580b5a5b3d3" 147 download_check "${GCC_SOURCE}" "${GCC_CPP}" "43b1e4879eb282dc4b05e4c016d356d7" 125 148 126 149 echo ">>> Removing previous content" … … 142 165 cd "${BINUTILSDIR}" 143 166 check_error $? "Change directory failed." 167 patch_binutils "${PLATFORM}" 144 168 ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls" 145 169 check_error $? "Error configuring binutils."
Note:
See TracChangeset
for help on using the changeset viewer.