Changeset 85b41bc in mainline for tools/toolchain.sh
- Timestamp:
- 2023-10-24T17:07:29Z (14 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 59d469b
- Parents:
- 29ed06d
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-24 17:06:42)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-24 17:07:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r29ed06d r85b41bc 256 256 257 257 check_dirs() { 258 OUTSIDE="$1" 259 BASE="$2" 260 ORIGINAL="$PWD" 261 262 cd "${BASE}" 263 check_error $? "Unable to change directory to ${BASE}." 258 cd "${BASEDIR}" 259 check_error $? "Unable to change directory to ${BASEDIR}." 264 260 ABS_BASE="$PWD" 265 cd "${ORIGINAL}" 266 check_error $? "Unable to change directory to ${ORIGINAL}." 267 268 if $SYSTEM_INSTALL && [ ! -d "${OUTSIDE}" ]; then 261 262 if $SYSTEM_INSTALL && [ ! -d "${CROSS_PREFIX}" ]; then 269 263 ring_bell 270 ( set -x ; sudo -k mkdir -p "${ OUTSIDE}" )264 ( set -x ; sudo -k mkdir -p "${CROSS_PREFIX}" ) 271 265 else 272 mkdir -p "${ OUTSIDE}"273 fi 274 275 cd "${ OUTSIDE}"276 check_error $? "Unable to change directory to ${ OUTSIDE}."266 mkdir -p "${CROSS_PREFIX}" 267 fi 268 269 cd "${CROSS_PREFIX}" 270 check_error $? "Unable to change directory to ${CROSS_PREFIX}." 277 271 278 272 while [ "${#PWD}" -gt "${#ABS_BASE}" ]; do … … 287 281 fi 288 282 289 cd "${ORIGINAL}" 290 check_error $? "Unable to change directory to ${ORIGINAL}." 283 cd "${BASEDIR}" 291 284 } 292 285 … … 328 321 329 322 DESTDIR_SPEC="DESTDIR=${INSTALL_DIR}" 323 324 check_dirs 330 325 } 331 326 … … 368 363 cleanup_dir "${WORKDIR}" 369 364 mkdir -p "${WORKDIR}" 370 check_dirs "${CROSS_PREFIX}" "${WORKDIR}"371 365 372 366 echo ">>> Processing binutils (${PLATFORM})" … … 407 401 cleanup_dir "${WORKDIR}" 408 402 mkdir -p "${WORKDIR}" 409 check_dirs "${CROSS_PREFIX}" "${WORKDIR}"410 403 411 404 echo ">>> Processing GCC (${PLATFORM})" … … 482 475 cleanup_dir "${WORKDIR}" 483 476 mkdir -p "${WORKDIR}" 484 check_dirs "${CROSS_PREFIX}" "${WORKDIR}"485 477 486 478 echo ">>> Processing GDB (${PLATFORM})"
Note:
See TracChangeset
for help on using the changeset viewer.