steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 10 14:30:44 2008 +0000 (2008-10-10)
changeset 916 68af6b83ff7e
parent 602 1968d150a34f
child 932 264d38e5b5ba
permissions -rw-r--r--
Simplify the Tools and Debug facilities menu entries:
- each config file no longer have to define their own 'menuconfig foo - if FOO - endif' gym
- each build script no longer has to say wether they are enabled
- generation of the 'menuconfig' entries for the Tools and Debug facilities now uses the same code
Some re-ordering of the code to be consistent with the steps ordering (tools, then debug).

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