steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 22 20:50:10 2008 +0000 (2008-10-22)
changeset 962 2ba4393e0441
parent 932 264d38e5b5ba
child 1001 c8ac48ba1411
permissions -rw-r--r--
Make Super-H finally compile a complete (C-only) toolchain:
- new, un-tested patches
- an sh4 sample to work on, and to try to reproduce later.

/trunk/patches/glibc/2.7/250-sh-chop-linux-version.patch | 49 49 0 0 ++
/trunk/patches/glibc/2.7/240-sh-lowlevellock-asm.patch | 56 56 0 0 +++
/trunk/patches/glibc/2.7/270-sh-fix-procfs.patch | 11 11 0 0 +
/trunk/patches/glibc/2.7/280-sh-fix-kernel-heders-location.patch | 23 23 0 0 +
/trunk/patches/glibc/2.7/260-sh-syscall-error-path.patch | 26 26 0 0 +
/trunk/samples/sh4-unknown-linux-gnu/crosstool.config | 311 311 0 0 ++++++++++++++
/trunk/samples/sh4-unknown-linux-gnu/reported.by | 3 3 0 0 +
7 files changed, 479 insertions(+)
     1 # Makefile for each steps
     2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     3 
     4 CT_STEPS := libc_check_config   \
     5             kernel_headers      \
     6             gmp                 \
     7             mpfr                \
     8             binutils            \
     9             cc_core_pass_1      \
    10             libc_headers        \
    11             libc_start_files    \
    12             cc_core_pass_2      \
    13             libc                \
    14             cc                  \
    15             libc_finish         \
    16             binutils_target     \
    17             gmp_target          \
    18             mpfr_target         \
    19             tools               \
    20             debug               \
    21 
    22 export CT_STEPS
    23 
    24 $(CT_STEPS):
    25 	$(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$@ STOP=$@ build
    26 
    27 $(patsubst %,+%,$(CT_STEPS)):
    28 	$(SILENT)$(MAKE) -rf $(CT_NG) STOP=$(patsubst +%,%,$@) build
    29 
    30 $(patsubst %,%+,$(CT_STEPS)):
    31 	$(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$(patsubst %+,%,$@) build
    32 
    33 help-build::
    34 	@echo  '  list-steps         - List all build steps'
    35 
    36 list-steps:
    37 	@echo  'Available build steps, in order:'
    38 	@for step in $(CT_STEPS); do    \
    39 	     echo "  - $${step}";       \
    40 	 done
    41 	@echo  'Use "<step>" as action to execute only that step.'
    42 	@echo  'Use "+<step>" as action to execute up to that step.'
    43 	@echo  'Use "<step>+" as action to execute from that step onward.'