Changeset 2e9f284 in mainline
- Timestamp:
- 2025-08-12T17:44:58Z (2 months ago)
- Branches:
- master
- Children:
- a36c4aa
- Parents:
- 5caad1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r5caad1d r2e9f284 34 34 BINUTILS_VERSION="2.43" 35 35 36 GDB_BRANCH="gdb-13.2-helenos"37 GDB_VERSION="13.2"38 39 36 GCC_GIT="https://github.com/HelenOS/gcc.git" 40 37 GCC_BRANCH="14_2_0-helenos" … … 51 48 SYSTEM_INSTALL=false 52 49 53 BUILD_GDB=false54 50 BUILD_BINUTILS=true 55 51 BUILD_GCC=true … … 72 68 echo 73 69 echo "Syntax:" 74 echo " $0 [--system-wide] [--with-gdb|--only-gdb] <platform>"75 70 echo " $0 [--system-wide] --test-version [<platform>]" 76 71 echo … … 147 142 test_app_version "Binutils" "ld" "GNU ld (.*) \([.0-9]*\)" "$BINUTILS_VERSION" 148 143 test_app_version "GCC" "gcc" "gcc version \([.0-9]*\)" "$GCC_VERSION" 149 test_app_version "GDB" "gdb" "GNU gdb (.*)[[:space:]]\+\([.0-9]*\)" "$GDB_VERSION"150 144 done 151 145 } … … 310 304 ./contrib/download_prerequisites 311 305 cd .. 312 fi313 314 if $BUILD_GDB ; then315 git clone --depth 1 -b "$GDB_BRANCH" "$BINUTILS_GDB_GIT" "gdb-$GDB_VERSION"316 git -C "gdb-$GDB_VERSION" pull317 306 fi 318 307 … … 466 455 } 467 456 468 build_gdb() {469 # This sets the TARGET variable470 set_target_from_platform "$1"471 472 WORKDIR="${BASEDIR}/${TARGET}"473 GDBDIR="${WORKDIR}/gdb-${GDB_VERSION}"474 475 echo ">>> Removing previous content"476 cleanup_dir "${WORKDIR}"477 mkdir -p "${WORKDIR}"478 479 echo ">>> Processing GDB (${TARGET})"480 mkdir -p "${GDBDIR}"481 cd "${GDBDIR}"482 check_error $? "Change directory failed."483 484 change_title "GDB: configure (${TARGET})"485 CFLAGS="-fcommon" "${BASEDIR}/downloads/gdb-${GDB_VERSION}/configure" \486 "--target=${TARGET}" \487 "--prefix=${CROSS_PREFIX}" \488 "--program-prefix=${TARGET}-" \489 --enable-werror=no490 check_error $? "Error configuring GDB."491 492 change_title "GDB: make (${TARGET})"493 make all-gdb -j$JOBS494 check_error $? "Error compiling GDB."495 496 change_title "GDB: install (${TARGET})"497 make install-gdb $DESTDIR_SPEC498 check_error $? "Error installing GDB."499 }500 501 457 install_pkg() { 502 458 echo ">>> Moving to the destination directory." … … 530 486 exit 531 487 ;; 532 --with-gdb)533 BUILD_GDB=true534 shift535 ;;536 --only-gdb)537 BUILD_GDB=true538 BUILD_BINUTILS=false539 BUILD_GCC=false540 shift541 ;;542 488 *) 543 489 show_usage … … 614 560 615 561 $RUNNER build_libgcc 616 fi617 618 if $BUILD_GDB ; then619 $RUNNER build_gdb620 562 fi 621 563
Note:
See TracChangeset
for help on using the changeset viewer.