steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Apr 28 07:38:36 2008 +0000 (2008-04-28)
changeset 461 63586e9dcfc3
parent 333 d647d0e6021e
child 466 7f9bbf94b0bb
permissions -rw-r--r--
Building target libraries before the cross-compiler is available is doomed! Move build binutils' target libraries after final gcc.
Have a unique list of steps, it's easier to maintain.

/trunk/scripts/build/binutils.sh | 8 5 3 0 +++++---
/trunk/scripts/crosstool.sh | 16 2 14 0 ++--------------
/trunk/steps.mk | 29 16 13 0 ++++++++++++++++-------------
3 files changed, 23 insertions(+), 30 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_check_config \
     6             kernel_headers      \
     7             binutils            \
     8             cc_core_pass_1      \
     9             libc_headers        \
    10             libc_start_files    \
    11             cc_core_pass_2      \
    12             libc                \
    13             cc                  \
    14             libc_finish         \
    15             binutils_target     \
    16             tools               \
    17             debug               \
    18 
    19 export CT_STEPS
    20 
    21 $(CT_STEPS):
    22 	@$(CT_NG) RESTART=$@ STOP=$@ build
    23 
    24 $(patsubst %,+%,$(CT_STEPS)):
    25 	@$(CT_NG) STOP=$(patsubst +%,%,$@) build
    26 
    27 $(patsubst %,%+,$(CT_STEPS)):
    28 	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
    29 
    30 help-build::
    31 	@echo  '  liststeps          - List all build steps'
    32 
    33 liststeps:
    34 	@echo  'Available build steps, in order:'
    35 	@for step in $(CT_STEPS); do    \
    36 	     echo "  - $${step}";       \
    37 	 done