Skip to contentSkip to conversation

Makefile: rename cross target -> toolchain

PATCH New Fabio Porcedda 2 participants 2 messages Jan 15, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Makefile: rename cross target -> toolchain

- Use a more descriptive name, the same of the "toolchain" directory.
- Add missing dependencies to be able to successfully use the target right after the configuration.
- Move to a better position.
- Documentation it in the help target.
- Use toolchain target in the world target

---

Changes:
v3:
- squashed as suggested by Samuel
v2:
- renamed cross to toolchain
- use in world target

 Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Makefile +5 -4
index 1fc51e9..6f8ed0e 100644
@@ -392,9 +392,11 @@ $(BUILD_DIR)/buildroot-config/auto.conf: $(BUILDROOT_CONFIG)
 
 prepare: $(BUILD_DIR)/buildroot-config/auto.conf
 
-world: prepare dirs dependencies $(BASE_TARGETS) $(TARGETS_ALL)
+toolchain: prepare dirs dependencies $(BASE_TARGETS)
 
-.PHONY: all world dirs clean distclean source outputmakefile \
+world: toolchain $(TARGETS_ALL)
+
+.PHONY: all world toolchain dirs clean distclean source outputmakefile \
 	legal-info legal-info-prepare legal-info-clean \
 	$(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
 	$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
@@ -715,8 +717,6 @@ ifeq ($(O),output)
 endif
 	rm -rf $(BUILDROOT_CONFIG) $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/.auto.deps
 
-cross: $(BASE_TARGETS)
-
 help:
 	@echo 'Cleaning:'
 	@echo '  clean                  - delete all files created by build'
@@ -724,6 +724,7 @@ help:
 	@echo
 	@echo 'Build:'
 	@echo '  all                    - make world'
+	@echo '  toolchain              - build toolchain'
 	@echo '  <package>-rebuild      - force recompile <package>'
 	@echo '  <package>-reconfigure  - force reconfigure <package>'
 	@echo
Signature · 1 line
1.8.0.3
#1 lore raw

PATCH v3 1/1 Makefile: rename cross target -> toolchain

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Fabio> - Use a more descriptive name, the same of the "toolchain" directory. Fabio> - Add missing dependencies to be able to successfully use the target
Fabio> right after the configuration.
Fabio> - Move to a better position.
Fabio> - Documentation it in the help target.
Fabio> - Use toolchain target in the world target

Fabio> Signed-off-by: Fabio Porcedda <[email protected]> Fabio> Reviewed-by: Markos Chandras <[email protected]> Fabio> Acked-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]> Fabio> Acked-by: Samuel Martin <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard