# HG changeset patch # User "Yann E. MORIN" # Date 1182892985 0 # Node ID ff64ca4ebe4880cddf252fd418ed6dfb4840f981 # Parent 0b45550a9e13a82cf062922d8e07819461abce99 Better handling of the steps lists: - new make rulle: liststeps, - new help entry telling about liststeps, - update documentation accordingly. diff -r 0b45550a9e13 -r ff64ca4ebe48 Makefile.steps --- a/Makefile.steps Tue Jun 19 17:50:46 2007 +0000 +++ b/Makefile.steps Tue Jun 26 21:23:05 2007 +0000 @@ -1,53 +1,35 @@ # Makefile for each steps # Copyright 2006 Yann E. MORIN -libc_check_config \ -kernel_check_config \ -kernel_headers \ -binutils \ -cc_core_pass_1 \ -libc_headers \ -libc_start_files \ -cc_core_pass_2 \ -libfloat \ -libc \ -cc \ -libc_finish \ -tools \ -debug \ -: +CT_STEPS := libc_check_config \ + kernel_check_config \ + kernel_headers \ + binutils \ + cc_core_pass_1 \ + libc_headers \ + libc_start_files \ + cc_core_pass_2 \ + libfloat \ + libc \ + cc \ + libc_finish \ + tools \ + debug \ + +$(CT_STEPS): @make -C "$(CT_TOP_DIR)" RESTART=$@ STOP=$@ --libc_check_config \ --kernel_check_config \ --kernel_headers \ --binutils \ --cc_core_pass_1 \ --libc_headers \ --libc_start_files \ --cc_core_pass_2 \ --libfloat \ --libc \ --cc \ --libc_finish \ --tools \ --debug \ -: +$(patsubst %,-%,$(CT_STEPS)): @make -C "$(CT_TOP_DIR)" STOP=$(patsubst -%,%,$@) -libc_check_config- \ -kernel_check_config- \ -kernel_headers- \ -binutils- \ -cc_core_pass_1- \ -libc_headers- \ -libc_start_files- \ -cc_core_pass_2- \ -libfloat- \ -libc- \ -cc- \ -libc_finish- \ -tools- \ -debug- \ -: +$(patsubst %,%-,$(CT_STEPS)): @make -C "$(CT_TOP_DIR)" RESTART=$(patsubst %-,%,$@) + +help-build:: + @echo ' liststeps - Lists all build steps' + +liststeps: + @echo 'Available build steps, in order:' + @for step in $(CT_STEPS); do \ + echo " - $${step}"; \ + done diff -r 0b45550a9e13 -r ff64ca4ebe48 docs/overview.txt --- a/docs/overview.txt Tue Jun 19 17:50:46 2007 +0000 +++ b/docs/overview.txt Tue Jun 26 21:23:05 2007 +0000 @@ -178,22 +178,6 @@ debugging, you can pass the RESTART variable to make: make RESTART=some_step -The list of steps is, in order of appearence in the build process: - - libc_check_config - - kernel_check_config - - kernel_headers - - binutils - - cc_core_pass_1 - - libc_headers - - libc_start_files - - cc_core_pass_2 - - libfloat - - libc - - cc - - libc_finish - - tools - - debug - Alternatively, you can call make with the name of a step to just do that step: make libc_headers is equivalent to: @@ -205,6 +189,9 @@ are equivalent to: make STOP=libc_headers and: make RESTART=libc_headers +To obtain the list of acceptable steps, please call: + make liststeps + Note that in order to restart a build, you'll have to say 'Y' to the config option CT_DEBUG_CT_SAVE_STEPS, and that the previous build effectively went that far.