diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-15 10:38:13 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-15 10:38:13 +0000 |
commit | 7ec35540d564b6da2e2cbd1f9fa007ece22ef7e3 (patch) | |
tree | 3ae68e0855cc617a0545887ea55334f381973ce2 | |
parent | c2bc7d8a21653ffecdcdf849e6f36cfde0fa5a3f (diff) | |
parent | 94fb22fb95d10341f4e8b24a10c55e7d541c7fd6 (diff) | |
download | morph-7ec35540d564b6da2e2cbd1f9fa007ece22ef7e3.tar.gz |
Merge remote branch 'origin/master'
-rwxr-xr-x | baserock-bootstrap | 119 | ||||
-rw-r--r-- | wget-list | 1 |
2 files changed, 72 insertions, 48 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index 7d13c45b..21ef821f 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -29,7 +29,7 @@ HOST_READLINK=`which readlink` HOST_CHMOD=`which chmod` export CCACHE_DIR="/var/tmp/ccache" -export PATH="$tools/bin:$tools/sbin:/usr/lib/ccache:/usr/bin:/bin" +export PATH="$tools/lib/ccache:$tools/bin:$tools/sbin:/usr/lib/ccache:/usr/bin:/bin" download() { @@ -57,7 +57,7 @@ unpack() if [ ! -e "$sources/$1" ] then echo "Unpacking" "$sources/$1"*.tar.* - tar -C "$sources" -xf "$sources/$1"*.tar.* + time tar -C "$sources" -xf "$sources/$1"*.tar.* fi } @@ -353,6 +353,28 @@ pass1_zlib() } +pass1_ccache() +{ + echo "Building ccache" + if [ ! -e "$tools/bin/ccache" ] + then + unpack ccache-3.1.7 + cd "$sources/ccache-3.1.7" + ./configure --prefix="$tools" + make -j1 + make install + + mkdir "$tools/lib/ccache" + for name in cc c++ gcc gcc-4.6.1 g++ g++-4.6.1; do + ln -s "$tools/bin/ccache" "$tools/lib/ccache/$name" + ln -s "$tools/bin/ccache" "$tools/lib/ccache/$LFS_TGT-$name" + done + + rm -rf "$sources/ccache-3.1.7" + fi +} + + pass1_ncurses() { echo "Building ncurses" @@ -1073,68 +1095,69 @@ EOF echo "Bootstrapping Baserock development environment" echo "LFS_TGT=$LFS_TGT" -pass1_directories +time pass1_directories if [ -e "$allsources" ] then $HOST_CP -au "$allsources/." "$LFS/sources/." fi -download_all +time download_all case "$buildwhat" in pass1) - pass1_binutils_1 - pass1_gcc_1 - pass1_linux_api_headers - pass1_eglibc - pass1_adjust_gcc_specs - pass1_sanity_check - pass1_binutils_2 - pass1_gcc_2 - pass1_sanity_check - pass1_zlib - pass1_ncurses - #pass1_busybox - pass1_bash - pass1_bzip2 - pass1_coreutils - pass1_diffutils - pass1_file - pass1_findutils - pass1_gawk - pass1_gettext - pass1_grep - pass1_gzip - pass1_m4 - pass1_make - pass1_patch - pass1_perl - pass1_sed - pass1_tar - pass1_texinfo - pass1_xz - pass1_python - pass1_cliapp - pass1_git + time pass1_binutils_1 + time pass1_gcc_1 + time pass1_linux_api_headers + time pass1_eglibc + time pass1_adjust_gcc_specs + time pass1_sanity_check + time pass1_binutils_2 + time pass1_gcc_2 + time pass1_sanity_check + time pass1_zlib + time pass1_ccache + time pass1_ncurses + #time pass1_busybox + time pass1_bash + time pass1_bzip2 + time pass1_coreutils + time pass1_diffutils + time pass1_file + time pass1_findutils + time pass1_gawk + time pass1_gettext + time pass1_grep + time pass1_gzip + time pass1_m4 + time pass1_make + time pass1_patch + time pass1_perl + time pass1_sed + time pass1_tar + time pass1_texinfo + time pass1_xz + time pass1_python + time pass1_cliapp + time pass1_git #pass1_strip_tools #pass1_fix_perms - pass1_cleanup_at_end + time pass1_cleanup_at_end ;; pass2a) - pass2_get_sources - pass2_prepare_for_chroot - pass2_get_sources_with_morph_in_chroot - pass2a_cleanup_at_end + time pass2_get_sources + time pass2_prepare_for_chroot + time pass2_get_sources_with_morph_in_chroot + time pass2a_cleanup_at_end ;; pass2b) - pass2_build_with_morph_in_chroot - #pass2_build_devel_system_outside_chroot - pass2b_cleanup_at_end + time pass2_build_with_morph_in_chroot + #time pass2_build_devel_system_outside_chroot + time pass2b_cleanup_at_end ;; pass3) - pass3_remove_tools - pass3_get_sources_with_morph_in_chroot - pass3_build_with_morph_in_chroot + time pass3_remove_tools + time pass3_get_sources_with_morph_in_chroot + time pass3_build_with_morph_in_chroot ;; *) echo "Usage! (sorry, I'm unhelpful)" 1>&2 exit 1 @@ -1,3 +1,4 @@ +http://samba.org/ftp/ccache/ccache-3.1.7.tar.xz http://roadtrain.codethink.co.uk/tarballs/eglibc-2.14.tar.bz2 http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2 http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.bz2 |