steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 01 18:10:40 2008 +0000 (2008-10-01)
changeset 894 c444ce4b51b9
parent 602 1968d150a34f
child 932 264d38e5b5ba
permissions -rw-r--r--
Save the toolchain configuration to its own file, as an auto-extracting shell script:
- get rid of the 'extractconfig' action, it was cumbersome to use, and badly documented,
- introduce a skeleton for the config script,
- update auto-completion,
- document the config script.

/trunk/kconfig/kconfig.mk | 9 2 7 0 ++-------
/trunk/scripts/crosstool.sh | 6 5 1 0 +++++-
/trunk/docs/overview.txt | 21 9 12 0 +++++++++------------
/trunk/tools/toolchain-config.in | 8 8 0 0 ++++++++
/trunk/ct-ng.comp | 2 1 1 0 +-
5 files changed, 25 insertions(+), 21 deletions(-)
     1 # Makefile for each steps
     2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     3 
     4 CT_STEPS := libc_check_config   \
     5             kernel_headers      \
     6             gmp                 \
     7             mpfr                \
     8             binutils            \
     9             cc_core_pass_1      \
    10             libc_headers        \
    11             libc_start_files    \
    12             cc_core_pass_2      \
    13             libc                \
    14             cc                  \
    15             libc_finish         \
    16             binutils_target     \
    17             gmp_target          \
    18             mpfr_target         \
    19             tools               \
    20             debug               \
    21 
    22 export CT_STEPS
    23 
    24 $(CT_STEPS):
    25 	@$(CT_NG) RESTART=$@ STOP=$@ build
    26 
    27 $(patsubst %,+%,$(CT_STEPS)):
    28 	@$(CT_NG) STOP=$(patsubst +%,%,$@) build
    29 
    30 $(patsubst %,%+,$(CT_STEPS)):
    31 	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
    32 
    33 help-build::
    34 	@echo  '  list-steps         - List all build steps'
    35 
    36 list-steps:
    37 	@echo  'Available build steps, in order:'
    38 	@for step in $(CT_STEPS); do    \
    39 	     echo "  - $${step}";       \
    40 	 done
    41 	@echo  'Use "$(CT_NG) <step>" to execute only that step.'
    42 	@echo  'Use "$(CT_NG) +<step>" to execute up to that step.'
    43 	@echo  'Use "$(CT_NG) <step>+" to execute from that step onward.'