diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-14 18:40:47 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-14 18:40:47 +0000 |
commit | 3d57e79f596bc82595b8c667d384ff72a5ec76f5 (patch) | |
tree | 49afdb924574f706ace6068b4f41ef3a9866e7ab /baserock-bootstrap | |
parent | 142924173c6721dde887e2859840de2d3ad88997 (diff) | |
download | morph-3d57e79f596bc82595b8c667d384ff72a5ec76f5.tar.gz |
Make run-bootstrap-in-chroot snapshot pass2
This changes the meaning of $1 for baserock-bootstrap: $1 now specifies
which pass to run. When building passX, X > 1, the previous passes
are assumed to have been built successfully.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index 1cf79afc..c1fc1df7 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -10,13 +10,8 @@ LFS="$(pwd)/tree" allsources="$LFS/../../lfs-tarballs" sources="$LFS/sources" tools="$LFS/tools" -case "${1:-''}" in -y|ye|yes|t|tr|tru|true) - PASS1ONLY=true - ;; -n|no|f|fa|fal|fals|false|*) - PASS1ONLY=false -esac + +buildwhat="$1" CPUS=$(grep -c '^processor' /proc/cpuinfo) JOBS=$(expr 2 '*' $CPUS) @@ -907,52 +902,57 @@ then fi download_all -pass1_binutils_1 -pass1_gcc_1 -pass1_linux_api_headers -pass1_glibc -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 -#pass1_strip_tools -#pass1_fix_perms - -if "$PASS1ONLY" -then - echo "Only doing pass1" - exit -fi - -pass2_get_sources -pass2_prepare_for_chroot -pass2_build_with_morph_in_chroot -#pass2_build_devel_system_outside_chroot +case "$buildwhat" in + pass1) + pass1_binutils_1 + pass1_gcc_1 + pass1_linux_api_headers + pass1_glibc + 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 + #pass1_strip_tools + #pass1_fix_perms + ;; + pass2) + pass2_get_sources + pass2_prepare_for_chroot + pass2_build_with_morph_in_chroot + #pass2_build_devel_system_outside_chroot + ;; + pass3) + echo "Pass3 not yet implemented, sorry" 1>&2 + exit 1 + *) echo "Usage! (sorry, I'm unhelpful)" 1>&2 + exit 1 + ;; +esac -echo "Finished OK" +echo "$buildwhat finished OK" |