2007-05-27 20:22:06 +00:00
|
|
|
# Makefile for each steps
|
2012-03-06 20:36:10 +00:00
|
|
|
# Copyright 2006 Yann E. MORIN <yann.morin.1998@free.fr>
|
2007-05-27 20:22:06 +00:00
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# ----------------------------------------------------------
|
|
|
|
# This is the steps help entry
|
|
|
|
|
|
|
|
help-build::
|
|
|
|
@echo ' list-steps - List all build steps'
|
|
|
|
|
2008-10-29 18:34:14 +00:00
|
|
|
help-env::
|
2010-04-01 22:18:26 +00:00
|
|
|
@echo ' STOP=step - Stop the build just after this step (list with list-steps)'
|
|
|
|
@echo ' RESTART=step - Restart the build just before this step (list with list-steps)'
|
2008-10-29 18:34:14 +00:00
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# ----------------------------------------------------------
|
|
|
|
# The steps list
|
|
|
|
|
2009-01-20 20:37:43 +00:00
|
|
|
# Please keep the last line with a '\' and keep the following empy line:
|
2008-10-27 18:42:26 +00:00
|
|
|
# it helps when diffing and merging.
|
2008-04-28 07:38:36 +00:00
|
|
|
CT_STEPS := libc_check_config \
|
2011-07-17 16:56:30 +00:00
|
|
|
gmp_for_host \
|
|
|
|
mpfr_for_host \
|
|
|
|
ppl_for_host \
|
|
|
|
cloog_for_host \
|
|
|
|
mpc_for_host \
|
|
|
|
libelf_for_host \
|
2011-07-17 16:29:35 +00:00
|
|
|
binutils_for_host \
|
|
|
|
elf2flt_for_host \
|
|
|
|
sstrip_for_host \
|
2008-04-28 07:38:36 +00:00
|
|
|
cc_core_pass_1 \
|
2011-01-22 21:52:57 +00:00
|
|
|
kernel_headers \
|
2008-04-28 07:38:36 +00:00
|
|
|
libc_start_files \
|
|
|
|
cc_core_pass_2 \
|
|
|
|
libc \
|
2012-04-02 20:54:30 +00:00
|
|
|
cc_for_host \
|
2008-04-28 07:38:36 +00:00
|
|
|
libc_finish \
|
2012-01-03 17:39:11 +00:00
|
|
|
libelf_for_target \
|
2012-03-04 16:31:23 +00:00
|
|
|
binutils_for_target \
|
2008-04-28 07:38:36 +00:00
|
|
|
debug \
|
2010-05-19 15:53:04 +00:00
|
|
|
test_suite \
|
2009-01-20 20:37:43 +00:00
|
|
|
finish \
|
2008-04-28 07:38:36 +00:00
|
|
|
|
2009-01-18 17:45:10 +00:00
|
|
|
# Make the list available to sub-processes (scripts/crosstool-NG.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):
|
2008-10-29 10:31:15 +00:00
|
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$@ STOP=$@ build
|
2008-10-27 18:42:26 +00:00
|
|
|
|
|
|
|
$(patsubst %,+%,$(CT_STEPS)):
|
2008-10-29 10:31:15 +00:00
|
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) STOP=$(patsubst +%,%,$@) build
|
2008-10-27 18:42:26 +00:00
|
|
|
|
|
|
|
$(patsubst %,%+,$(CT_STEPS)):
|
2008-10-29 10:31:15 +00:00
|
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$(patsubst %+,%,$@) build
|