Changes in tools/toolchain.sh [285589b:8876b0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r285589b r8876b0d 254 254 } 255 255 256 check_dirs() {257 OUTSIDE="$1"258 BASE="$2"259 ORIGINAL="`pwd`"260 261 cd "${OUTSIDE}"262 check_error $? "Unable to change directory to ${OUTSIDE}."263 ABS_OUTSIDE="`pwd`"264 265 cd "${BASE}"266 check_error $? "Unable to change directory to ${BASE}."267 ABS_BASE="`pwd`"268 269 cd "${ORIGINAL}"270 check_error $? "Unable to change directory to ${ORIGINAL}."271 272 BASE_LEN="${#ABS_BASE}"273 OUTSIDE_TRIM="${ABS_OUTSIDE:0:${BASE_LEN}}"274 275 if [ "${OUTSIDE_TRIM}" == "${ABS_BASE}" ] ; then276 echo277 echo "CROSS_PREFIX cannot reside within the working directory."278 279 exit 5280 fi281 }282 283 256 unpack_tarball() { 284 257 FILE="$1" … … 333 306 create_dir "${PREFIX}" "destination directory" 334 307 create_dir "${OBJDIR}" "GCC object directory" 335 336 check_dirs "${PREFIX}" "${WORKDIR}"337 308 338 309 echo ">>> Unpacking tarballs"
Note:
See TracChangeset
for help on using the changeset viewer.