summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-06-27 15:26:58 +0200
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-08-04 16:33:06 +0000
commita71c1e41fa94ec782329b3c6df0fd44ad8c76543 (patch)
tree0f3ffa55fe3d915ed53990af06af769967a9cbc5 /Makefile.rules
parent44b64f9b39d65f2aebf76d849c935c38fd953169 (diff)
downloadchrome-ec-a71c1e41fa94ec782329b3c6df0fd44ad8c76543.tar.gz
Allow core code to request its cross compiler
Instead of having to pass in both the board and the arch used there (which might be complicated in the light of different ECs with different arches), allow passing in the board and a set of cross compilers. The core/*/build.mk then pick the compiler that is responsible for them. The current method works just the same: If you've already set CROSS_COMPILE, no override happens. If you set neither CROSS_COMPILE nor CROSS_COMPILE_$arch, the same default as before this CL is set. BUG=none BRANCH=none TEST=emerge-{samus,kevin} chromeos-ec behave reasonably with adapted ebuild Change-Id: Icf1866f296412dd92ecfe134394224c49f7c3df5 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/549344 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@google.com> (cherry picked from commit 1a67ac2ad6a6c0eedaa672f7856e38fb5abf1ede) Reviewed-on: https://chromium-review.googlesource.com/598516 Tested-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules25
1 files changed, 14 insertions, 11 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 1d27d3dc95..7ecbbe91da 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -446,19 +446,22 @@ endif
help:
@echo "Google Chromium EC build"
@echo "Common Targets:"
- @echo " all [BOARD=] - Build a single board (Default target)"
- @echo " clean [BOARD=] - Clean a single board"
- @echo " buildall - Build and test all boards"
- @echo " clobber - Clean all boards"
- @echo " proj-<boardname> - Build a single board (similar to 'all BOARD=boardname')"
- @echo " savesizes - Save the filesizes of currently built boards for comparison"
- @echo " newsizes - Compare previously saved filesizes against new sizes"
+ @echo " all [BOARD=] - Build a single board (Default target)"
+ @echo " clean [BOARD=] - Clean a single board"
+ @echo " buildall - Build and test all boards"
+ @echo " clobber - Clean all boards"
+ @echo " proj-<boardname> - Build a single board (similar to 'all BOARD=boardname')"
+ @echo " savesizes - Save the filesizes of currently built boards for comparison"
+ @echo " newsizes - Compare previously saved filesizes against new sizes"
@echo "Common Variables:"
- @echo " BOARD= - Set the board name to build (Default is $(BOARD))"
- @echo " CROSS_COMPILE= - Set the compiler for the board"
- @echo " V=1 - Show make output"
+ @echo " V=1 - Show make output"
+ @echo " BOARD= - Set the board name to build (Default is $(BOARD))"
+ @echo " CROSS_COMPILE= - Set the compiler for the board"
+ @echo " CROSS_COMPILE_arch= - Set the compiler for arch"
+ @echo " The board picks its CROSS_COMPILE_arch if CROSS_COMPILE is not set."
+ @echo " arch may be one of 'arm', 'i386', 'nds32'."
@echo "Example:"
- @echo " make BOARD=reef CROSS_COMPILE='arm-eabi-'"
+ @echo " make BOARD=reef CROSS_COMPILE_arm='arm-eabi-'"
.PHONY: savesizes
savesizes: