2007-05-27 20:22:06 +00:00
|
|
|
# Makefile for each steps
|
|
|
|
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
|
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# ----------------------------------------------------------
|
|
|
|
# This is the steps help entry
|
|
|
|
|
|
|
|
help-build::
|
|
|
|
@echo ' list-steps - List all build steps'
|
|
|
|
|
|
|
|
# ----------------------------------------------------------
|
|
|
|
# The steps list
|
|
|
|
|
|
|
|
# Please keep the last line with a '\' and keep the folowing empy line:
|
|
|
|
# it helps when diffing and merging.
|
2008-04-28 07:38:36 +00:00
|
|
|
CT_STEPS := libc_check_config \
|
|
|
|
kernel_headers \
|
2008-04-30 10:43:41 +00:00
|
|
|
gmp \
|
|
|
|
mpfr \
|
2008-04-28 07:38:36 +00:00
|
|
|
binutils \
|
|
|
|
cc_core_pass_1 \
|
|
|
|
libc_headers \
|
|
|
|
libc_start_files \
|
|
|
|
cc_core_pass_2 \
|
|
|
|
libc \
|
|
|
|
cc \
|
|
|
|
libc_finish \
|
|
|
|
binutils_target \
|
2008-06-20 15:16:43 +00:00
|
|
|
gmp_target \
|
|
|
|
mpfr_target \
|
2008-04-28 07:38:36 +00:00
|
|
|
tools \
|
|
|
|
debug \
|
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# Make the list available to sub-processes (scripts/crosstool.sh needs it)
|
2008-04-28 07:38:36 +00:00
|
|
|
export CT_STEPS
|
2007-06-26 21:23:05 +00:00
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# Print the steps list
|
|
|
|
PHONY += list-steps
|
2008-06-01 21:12:00 +00:00
|
|
|
list-steps:
|
2007-06-26 21:23:05 +00:00
|
|
|
@echo 'Available build steps, in order:'
|
|
|
|
@for step in $(CT_STEPS); do \
|
|
|
|
echo " - $${step}"; \
|
|
|
|
done
|
2008-10-14 19:29:25 +00:00
|
|
|
@echo 'Use "<step>" as action to execute only that step.'
|
|
|
|
@echo 'Use "+<step>" as action to execute up to that step.'
|
|
|
|
@echo 'Use "<step>+" as action to execute from that step onward.'
|
2008-10-27 18:42:26 +00:00
|
|
|
|
|
|
|
# ----------------------------------------------------------
|
|
|
|
# This part deals with executing steps
|
|
|
|
|
|
|
|
$(CT_STEPS):
|
|
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$@ STOP=$@ build
|
|
|
|
|
|
|
|
$(patsubst %,+%,$(CT_STEPS)):
|
|
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) STOP=$(patsubst +%,%,$@) build
|
|
|
|
|
|
|
|
$(patsubst %,%+,$(CT_STEPS)):
|
|
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$(patsubst %+,%,$@) build
|