- Timestamp:
- 2017-10-23T18:51:34Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 327f147
- Parents:
- 31cca4f3 (diff), 367db39a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tools
- Files:
-
- 2 edited
-
autotool.py (modified) (2 diffs)
-
toolchain.sh (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r31cca4f3 re160bfe8 42 42 CONFIG = 'Makefile.config' 43 43 MAKEFILE = 'Makefile.common' 44 HEADER = 'common.h '44 HEADER = 'common.h.new' 45 45 GUARD = 'AUTOTOOL_COMMON_H_' 46 46 … … 850 850 check_app(["diff", "--version"], "Diff utility", "usually part of diffutils") 851 851 check_app(["make", "--version"], "Make utility", "preferably GNU Make") 852 check_app(["makedepend", "-f", "-"], "Makedepend utility", "usually part of imake or xutils")853 852 check_app(["unzip"], "unzip utility", "usually part of zip/unzip utilities") 854 853 -
tools/toolchain.sh
r31cca4f3 re160bfe8 64 64 GDB_VERSION="7.12.1" 65 65 ## GDB_PATCHES="toolchain-gdb-7.6.1.patch" 66 ISL_VERSION="0.18" 66 67 67 68 BASEDIR="`pwd`" … … 70 71 GCC="gcc-${GCC_VERSION}.tar.bz2" 71 72 GDB="gdb-${GDB_VERSION}.tar.gz" 73 ISL="isl-${ISL_VERSION}.tar.bz2" 72 74 73 75 REAL_INSTALL=true 74 76 USE_HELENOS_TARGET=false 77 BUILD_ISL=false 75 78 76 79 # … … 97 100 98 101 if [ "$RC" -ne "0" ] ; then 99 echo " ${DEPENDENCY} not found, too old or compiler error." 100 echo " Please recheck manually the source file \"${FNAME}.c\"." 101 echo " The compilation of the toolchain is probably going to fail," 102 echo " you have been warned." 103 echo 104 echo " ===== Compiler output =====" 105 cat "${FNAME}.log" 106 echo " ===========================" 107 echo 102 if [ "${DEPENDENCY}" == "isl" ]; then 103 BUILD_ISL=true 104 105 echo " isl not found. Will be downloaded and built with GCC." 106 else 107 echo " ${DEPENDENCY} not found, too old or compiler error." 108 echo " Please recheck manually the source file \"${FNAME}.c\"." 109 echo " The compilation of the toolchain is probably going to fail," 110 echo " you have been warned." 111 echo 112 echo " ===== Compiler output =====" 113 cat "${FNAME}.log" 114 echo " ===========================" 115 echo 116 fi 108 117 else 109 118 echo " ${DEPENDENCY} found" … … 237 246 if [ ! -f "${FILE}" ] ; then 238 247 change_title "Downloading ${FILE}" 239 wget -c "${SOURCE}${FILE}" 248 wget -c "${SOURCE}${FILE}" -O "${FILE}".part 240 249 check_error $? "Error downloading ${FILE}." 250 251 mv "${FILE}".part "${FILE}" 241 252 fi 242 253 … … 350 361 GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/" 351 362 GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/" 363 ISL_SOURCE="http://isl.gforge.inria.fr/" 352 364 353 365 download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727" 354 366 download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8" 355 367 download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942" 368 369 if $BUILD_ISL ; then 370 download_fetch "${ISL_SOURCE}" "${ISL}" "11436d6b205e516635b666090b94ab32" 371 fi 356 372 } 357 373 … … 423 439 BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" 424 440 GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}" 441 ISLDIR="${WORKDIR}/isl-${ISL_VERSION}" 425 442 OBJDIR="${WORKDIR}/gcc-obj" 426 443 GDBDIR="${WORKDIR}/gdb-${GDB_VERSION}" … … 436 453 source_check "${BASEDIR}/${GCC}" 437 454 source_check "${BASEDIR}/${GDB}" 455 if $BUILD_ISL ; then 456 source_check "${BASEDIR}/${ISL}" 457 fi 438 458 439 459 echo ">>> Removing previous content" … … 451 471 unpack_tarball "${BASEDIR}/${GCC}" "GCC" 452 472 unpack_tarball "${BASEDIR}/${GDB}" "GDB" 473 if $BUILD_ISL ; then 474 unpack_tarball "${BASEDIR}/${ISL}" "isl" 475 mv "${ISLDIR}" "${GCCDIR}"/isl 476 fi 453 477 454 478 echo ">>> Applying patches" … … 471 495 "--target=${TARGET}" \ 472 496 "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \ 473 --disable-nls --disable-werror --enable-gold 497 --disable-nls --disable-werror --enable-gold \ 498 --enable-deterministic-archives 474 499 check_error $? "Error configuring binutils." 475 500
Note:
See TracChangeset
for help on using the changeset viewer.
