steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Sep 23 14:48:10 2008 +0000 (2008-09-23)
changeset 872 fd4bf138f08f
parent 602 1968d150a34f
child 932 264d38e5b5ba
permissions -rw-r--r--
Bart De VOS pointed out that removing absolute paths from the libc linker scripts is plainly wrong.
It dates from dawn ages of the original crosstool code, and is not well explained. At that time, binutils might not understand the sysroot stuff, and it was necessary to remove absolute paths in that case.

/trunk/scripts/build/libc/glibc.sh | 14 2 12 0 ++------------
1 file changed, 2 insertions(+), 12 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.'