mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-18 20:37:56 +00:00
1779c82ad2
This patch adds support for installing the gcc test suite. A helper Makefile is provided for building and running the gcc tests. The default configuration runs all gcc tests and requires automatic ssh/scp login access to a networked target board. See README for more details. Note: Current feature is tested with the powerpc-unknown-linux-gnu sample but it should work with others as well. Signed-off-by: Martin Lund <mgl@doredevelopment.dk>
70 lines
2.3 KiB
Makefile
70 lines
2.3 KiB
Makefile
# Makefile for each steps
|
|
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
|
|
|
|
# ----------------------------------------------------------
|
|
# This is the steps help entry
|
|
|
|
help-build::
|
|
@echo ' list-steps - List all build steps'
|
|
|
|
help-env::
|
|
@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)'
|
|
|
|
# ----------------------------------------------------------
|
|
# The steps list
|
|
|
|
# Please keep the last line with a '\' and keep the following empy line:
|
|
# it helps when diffing and merging.
|
|
CT_STEPS := libc_check_config \
|
|
kernel_headers \
|
|
gmp \
|
|
mpfr \
|
|
ppl \
|
|
cloog \
|
|
mpc \
|
|
libelf \
|
|
binutils \
|
|
elf2flt \
|
|
sstrip \
|
|
cc_core_pass_1 \
|
|
libc_headers \
|
|
libc_start_files \
|
|
cc_core_pass_2 \
|
|
libc \
|
|
cc \
|
|
libc_finish \
|
|
gmp_target \
|
|
mpfr_target \
|
|
libelf_target \
|
|
binutils_target \
|
|
debug \
|
|
test_suite \
|
|
finish \
|
|
|
|
# Make the list available to sub-processes (scripts/crosstool-NG.sh needs it)
|
|
export CT_STEPS
|
|
|
|
# Print the steps list
|
|
PHONY += list-steps
|
|
list-steps:
|
|
@echo 'Available build steps, in order:'
|
|
@for step in $(CT_STEPS); do \
|
|
echo " - $${step}"; \
|
|
done
|
|
@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.'
|
|
|
|
# ----------------------------------------------------------
|
|
# This part deals with executing steps
|
|
|
|
$(CT_STEPS):
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$@ STOP=$@ build
|
|
|
|
$(patsubst %,+%,$(CT_STEPS)):
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) STOP=$(patsubst +%,%,$@) build
|
|
|
|
$(patsubst %,%+,$(CT_STEPS)):
|
|
$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$(patsubst %+,%,$@) build
|