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(-)
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.'