Changeset bbe5e34 in mainline for tools/toolchain.sh
- Timestamp:
- 2018-08-31T14:32:39Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 58e7b26
- Parents:
- fa86fff
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-08-31 14:32:39)
- git-committer:
- GitHub <noreply@…> (2018-08-31 14:32:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
rfa86fff rbbe5e34 45 45 46 46 REAL_INSTALL=true 47 USE_HELENOS_TARGET= false47 USE_HELENOS_TARGET=true 48 48 49 49 check_error() { … … 60 60 echo 61 61 echo "Syntax:" 62 echo " $0 [--no-install] [-- helenos-target] <platform>"62 echo " $0 [--no-install] [--non-helenos-target] <platform>" 63 63 echo 64 64 echo "Possible target platforms are:" … … 89 89 echo "not want to run the script under the super user." 90 90 echo 91 echo "The --helenos-target will build HelenOS-specific toolchain" 92 echo "(i.e. it will use *-helenos triplet instead of *-linux-*)." 93 echo "Using the HelenOS-specific toolchain is still an experimental" 94 echo "feature that is not fully supported." 91 echo "The --non-helenos-target will build non-HelenOS-specific toolchain" 92 echo "(i.e. it will use *-linux-* triplet instead of *-helenos)." 93 echo "Using this toolchain for building HelenOS is not supported." 95 94 echo 96 95 … … 238 237 HELENOS_TARGET="${GNU_ARCH}-helenos" 239 238 240 # TODO: Clean up this mess.241 239 case "$1" in 242 "amd64")243 LINUX_TARGET="${GNU_ARCH}-unknown-elf"244 ;;245 "ia32" | "ia64")246 LINUX_TARGET="${GNU_ARCH}-pc-linux-gnu"247 ;;248 240 "arm32") 249 241 LINUX_TARGET="${GNU_ARCH}-linux-gnueabi" 250 ;;251 "riscv64")252 LINUX_TARGET="${GNU_ARCH}-unknown-linux-gnu"253 242 ;; 254 243 *) … … 283 272 fi 284 273 285 PREFIX="${CROSS_PREFIX} /${TARGET}"274 PREFIX="${CROSS_PREFIX}" 286 275 287 276 echo ">>> Removing previous content" … … 408 397 if $REAL_INSTALL ; then 409 398 echo ">>> Moving to the destination directory." 410 cleanup_dir "${PREFIX}" 411 echo mv "${INSTALL_DIR}/${PREFIX}" "${PREFIX}" 412 mv "${INSTALL_DIR}/${PREFIX}" "${PREFIX}" 399 echo cp -r -t "${PREFIX}" "${INSTALL_DIR}/${PREFIX}/"* 400 cp -r -t "${PREFIX}" "${INSTALL_DIR}/${PREFIX}/"* 413 401 fi 414 402 … … 429 417 shift 430 418 ;; 431 -- helenos-target)432 USE_HELENOS_TARGET= true419 --non-helenos-target) 420 USE_HELENOS_TARGET=false 433 421 shift 434 422 ;;
Note:
See TracChangeset
for help on using the changeset viewer.