crosstool-ng/steps.mk
Yann E. MORIN" 1b00a301bd GMP and MPFR are no longer a sub-component of gcc (config-wise).
Build and install GMP and MPFR for the target.
Use the target GMP and MPFR to build the native gdb.
Have separate extra_config for cross gdb, native gdb and gdbserver.
Check native GMP and MPFR in //.

 /trunk/scripts/build/debug/300-gdb.sh |   27    19     8     0 ++++++++++++++++-------
 /trunk/scripts/build/gmp.sh           |   47    39     8     0 ++++++++++++++++++++++++++++++++-------
 /trunk/scripts/build/mpfr.sh          |   49    40     9     0 +++++++++++++++++++++++++++++++++--------
 /trunk/steps.mk                       |    2     2     0     0 ++
 /trunk/config/cc/gcc.in               |   18     1    17     0 +--------------
 /trunk/config/debug/gdb.in            |    6     1     5     0 +----
 /trunk/config/config.in               |    1     1     0     0 +
 /trunk/config/gmp_mpfr.in             |   34    34     0     0 ++++++++++++++++++++++++++++
 8 files changed, 137 insertions(+), 47 deletions(-)
2008-06-20 15:16:43 +00:00

45 lines
1.3 KiB
Makefile

# Makefile for each steps
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
CT_STEPS := libc_check_config \
kernel_check_config \
kernel_headers \
gmp \
mpfr \
binutils \
cc_core_pass_1 \
libc_headers \
libc_start_files \
cc_core_pass_2 \
libc \
cc \
libc_finish \
binutils_target \
gmp_target \
mpfr_target \
tools \
debug \
export CT_STEPS
$(CT_STEPS):
@$(CT_NG) RESTART=$@ STOP=$@ build
$(patsubst %,+%,$(CT_STEPS)):
@$(CT_NG) STOP=$(patsubst +%,%,$@) build
$(patsubst %,%+,$(CT_STEPS)):
@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
help-build::
@echo ' list-steps - List all build steps'
list-steps:
@echo 'Available build steps, in order:'
@for step in $(CT_STEPS); do \
echo " - $${step}"; \
done
@echo 'Use "$(CT_NG) <step>" to execute only that step.'
@echo 'Use "$(CT_NG) +<step>" to execute up to that step.'
@echo 'Use "$(CT_NG) <step>+" to execute from that step onward.'