Ported r2879 from trunk.
This commit is contained in:
parent
3ba96f20c0
commit
89ddac0a07
1 changed files with 18 additions and 2 deletions
|
@ -16,14 +16,30 @@ process_toolchain() { # embryo,cocoon and butterfly need special handling
|
||||||
|
|
||||||
echo "${tab_}${tab_}${GREEN}toolchain ${L_arrow}${toolchain}${R_arrow}"
|
echo "${tab_}${tab_}${GREEN}toolchain ${L_arrow}${toolchain}${R_arrow}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Safe method to remove existing toolchain dirs
|
||||||
|
pkg_tarball=$(get_package_tarball_name "binutils")
|
||||||
|
wrt_remove_existing_dirs "$pkg_tarball"
|
||||||
|
pkg_tarball=$(get_package_tarball_name "gcc-core")
|
||||||
|
wrt_remove_existing_dirs "$pkg_tarball"
|
||||||
|
#
|
||||||
|
# Manually remove the toolchain directories..
|
||||||
|
tc_phase=`echo $toolchain | sed -e 's@[0-9]\{3\}-@@' -e 's@-toolchain@@'`
|
||||||
|
(
|
||||||
|
cat << EOF
|
||||||
|
@rm -rf \$(MOUNT_PT)\$(SRC)/${tc_phase}-toolchain && \\
|
||||||
|
rm -rf \$(MOUNT_PT)\$(SRC)/${tc_phase}-build
|
||||||
|
EOF
|
||||||
|
) >> $MKFILE.tmp
|
||||||
|
|
||||||
case ${toolchain} in
|
case ${toolchain} in
|
||||||
*butterfly*)
|
*butterfly*)
|
||||||
[[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
|
|
||||||
(
|
(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
@echo "export PKGDIR=\$(SRC)" > envars
|
@echo "export PKGDIR=\$(SRC)" > envars
|
||||||
EOF
|
EOF
|
||||||
) >> $MKFILE.tmp
|
) >> $MKFILE.tmp
|
||||||
|
[[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
|
||||||
wrt_run_as_chroot1 "$toolchain" "$this_script"
|
wrt_run_as_chroot1 "$toolchain" "$this_script"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -317,7 +333,7 @@ chapter6_Makefiles() { # sysroot or chroot build phase
|
||||||
case $name in
|
case $name in
|
||||||
glibc ) [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
|
glibc ) [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
|
||||||
;;
|
;;
|
||||||
* ) [[ "$TEST" = "2" ]] && [[ "$TEST" = "3" ]] && wrt_test_log2 "${this_script}"
|
* ) [[ "$TEST" > "1" ]] && wrt_test_log2 "${this_script}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# If using optimizations, write the instructions
|
# If using optimizations, write the instructions
|
||||||
|
|
Reference in a new issue