mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-06 10:59:21 +00:00
Better handling of the steps lists:
- new make rulle: liststeps, - new help entry telling about liststeps, - update documentation accordingly.
This commit is contained in:
parent
5e7fa0debc
commit
c2abd16d69
@ -1,53 +1,35 @@
|
|||||||
# Makefile for each steps
|
# Makefile for each steps
|
||||||
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
|
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
|
||||||
|
|
||||||
libc_check_config \
|
CT_STEPS := libc_check_config \
|
||||||
kernel_check_config \
|
kernel_check_config \
|
||||||
kernel_headers \
|
kernel_headers \
|
||||||
binutils \
|
binutils \
|
||||||
cc_core_pass_1 \
|
cc_core_pass_1 \
|
||||||
libc_headers \
|
libc_headers \
|
||||||
libc_start_files \
|
libc_start_files \
|
||||||
cc_core_pass_2 \
|
cc_core_pass_2 \
|
||||||
libfloat \
|
libfloat \
|
||||||
libc \
|
libc \
|
||||||
cc \
|
cc \
|
||||||
libc_finish \
|
libc_finish \
|
||||||
tools \
|
tools \
|
||||||
debug \
|
debug \
|
||||||
:
|
|
||||||
|
$(CT_STEPS):
|
||||||
@make -C "$(CT_TOP_DIR)" RESTART=$@ STOP=$@
|
@make -C "$(CT_TOP_DIR)" RESTART=$@ STOP=$@
|
||||||
|
|
||||||
-libc_check_config \
|
$(patsubst %,-%,$(CT_STEPS)):
|
||||||
-kernel_check_config \
|
|
||||||
-kernel_headers \
|
|
||||||
-binutils \
|
|
||||||
-cc_core_pass_1 \
|
|
||||||
-libc_headers \
|
|
||||||
-libc_start_files \
|
|
||||||
-cc_core_pass_2 \
|
|
||||||
-libfloat \
|
|
||||||
-libc \
|
|
||||||
-cc \
|
|
||||||
-libc_finish \
|
|
||||||
-tools \
|
|
||||||
-debug \
|
|
||||||
:
|
|
||||||
@make -C "$(CT_TOP_DIR)" STOP=$(patsubst -%,%,$@)
|
@make -C "$(CT_TOP_DIR)" STOP=$(patsubst -%,%,$@)
|
||||||
|
|
||||||
libc_check_config- \
|
$(patsubst %,%-,$(CT_STEPS)):
|
||||||
kernel_check_config- \
|
|
||||||
kernel_headers- \
|
|
||||||
binutils- \
|
|
||||||
cc_core_pass_1- \
|
|
||||||
libc_headers- \
|
|
||||||
libc_start_files- \
|
|
||||||
cc_core_pass_2- \
|
|
||||||
libfloat- \
|
|
||||||
libc- \
|
|
||||||
cc- \
|
|
||||||
libc_finish- \
|
|
||||||
tools- \
|
|
||||||
debug- \
|
|
||||||
:
|
|
||||||
@make -C "$(CT_TOP_DIR)" RESTART=$(patsubst %-,%,$@)
|
@make -C "$(CT_TOP_DIR)" RESTART=$(patsubst %-,%,$@)
|
||||||
|
|
||||||
|
help-build::
|
||||||
|
@echo ' liststeps - Lists all build steps'
|
||||||
|
|
||||||
|
liststeps:
|
||||||
|
@echo 'Available build steps, in order:'
|
||||||
|
@for step in $(CT_STEPS); do \
|
||||||
|
echo " - $${step}"; \
|
||||||
|
done
|
||||||
|
@ -178,22 +178,6 @@ Conversely, if you want to restart a build at a specific step you are
|
|||||||
debugging, you can pass the RESTART variable to make:
|
debugging, you can pass the RESTART variable to make:
|
||||||
make RESTART=some_step
|
make RESTART=some_step
|
||||||
|
|
||||||
The list of steps is, in order of appearence in the build process:
|
|
||||||
- libc_check_config
|
|
||||||
- kernel_check_config
|
|
||||||
- kernel_headers
|
|
||||||
- binutils
|
|
||||||
- cc_core_pass_1
|
|
||||||
- libc_headers
|
|
||||||
- libc_start_files
|
|
||||||
- cc_core_pass_2
|
|
||||||
- libfloat
|
|
||||||
- libc
|
|
||||||
- cc
|
|
||||||
- libc_finish
|
|
||||||
- tools
|
|
||||||
- debug
|
|
||||||
|
|
||||||
Alternatively, you can call make with the name of a step to just do that step:
|
Alternatively, you can call make with the name of a step to just do that step:
|
||||||
make libc_headers
|
make libc_headers
|
||||||
is equivalent to:
|
is equivalent to:
|
||||||
@ -205,6 +189,9 @@ at that step. Thus:
|
|||||||
are equivalent to:
|
are equivalent to:
|
||||||
make STOP=libc_headers and: make RESTART=libc_headers
|
make STOP=libc_headers and: make RESTART=libc_headers
|
||||||
|
|
||||||
|
To obtain the list of acceptable steps, please call:
|
||||||
|
make liststeps
|
||||||
|
|
||||||
Note that in order to restart a build, you'll have to say 'Y' to the config
|
Note that in order to restart a build, you'll have to say 'Y' to the config
|
||||||
option CT_DEBUG_CT_SAVE_STEPS, and that the previous build effectively went
|
option CT_DEBUG_CT_SAVE_STEPS, and that the previous build effectively went
|
||||||
that far.
|
that far.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user