steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 20 21:32:39 2008 +0000 (2008-05-20)
changeset 523 010f6f4e4dd6
parent 461 63586e9dcfc3
child 544 6b15ef33e8f2
permissions -rw-r--r--
Get rid of all `command` (which is a bashism), and replace them with $(command), which is POSIX.
Get rid of all remaining \"text\" in log messages and replace them with 'text'.
Optimise the progress bar, should go un-noticed at log level DEBUG and below.

/trunk/scripts/build/tools/200-sstrip.sh | 16 8 8 0 ++--
/trunk/scripts/build/libc_glibc.sh | 50 25 25 0 +++++++-------
/trunk/scripts/build/libc_uClibc.sh | 4 2 2 0
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0
/trunk/scripts/build/debug/300-gdb.sh | 8 4 4 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +-
/trunk/scripts/build/kernel_linux.sh | 30 15 15 0 ++++----
/trunk/scripts/build/cc_gcc.sh | 14 7 7 0 ++--
/trunk/scripts/crosstool.sh | 54 27 27 0 ++++++++--------
/trunk/scripts/functions | 128 64 64 0 ++++++++++++++++++------------------
/trunk/scripts/saveSample.sh | 4 2 2 0
/trunk/scripts/tarball.sh.broken | 20 10 10 0 +++---
/trunk/tools/addToolVersion.sh | 8 4 4 0 +-
/trunk/tools/populate.in | 18 9 9 0 ++--
15 files changed, 182 insertions(+), 182 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_check_config \
yann@461
     6
            kernel_headers      \
yann@466
     7
            gmp                 \
yann@466
     8
            mpfr                \
yann@461
     9
            binutils            \
yann@461
    10
            cc_core_pass_1      \
yann@461
    11
            libc_headers        \
yann@461
    12
            libc_start_files    \
yann@461
    13
            cc_core_pass_2      \
yann@461
    14
            libc                \
yann@461
    15
            cc                  \
yann@461
    16
            libc_finish         \
yann@461
    17
            binutils_target     \
yann@461
    18
            tools               \
yann@461
    19
            debug               \
yann@461
    20
yann@461
    21
export CT_STEPS
yann@181
    22
yann@181
    23
$(CT_STEPS):
yann@205
    24
	@$(CT_NG) RESTART=$@ STOP=$@ build
yann@136
    25
yann@304
    26
$(patsubst %,+%,$(CT_STEPS)):
yann@304
    27
	@$(CT_NG) STOP=$(patsubst +%,%,$@) build
yann@136
    28
yann@304
    29
$(patsubst %,%+,$(CT_STEPS)):
yann@304
    30
	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
yann@181
    31
yann@181
    32
help-build::
yann@333
    33
	@echo  '  liststeps          - List all build steps'
yann@181
    34
yann@181
    35
liststeps:
yann@181
    36
	@echo  'Available build steps, in order:'
yann@181
    37
	@for step in $(CT_STEPS); do    \
yann@181
    38
	     echo "  - $${step}";       \
yann@181
    39
	 done