diff options
author | Martin Roth <martinroth@google.com> | 2015-10-27 15:03:46 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2015-11-19 16:50:00 +0100 |
commit | 8fe681872b38c23a2a9172199d1e9c0edae12937 (patch) | |
tree | a0b371083909e475be586d14f296eaac6c91821d /Makefile.inc | |
parent | a791fbb0fa585befa91d12fe685cf1f4da8e579f (diff) |
crossgcc: Update makefile builds
- Only build IASL once for the 'all' targets instead of once for each.
- Change the control of what gets built from different targets to
variables on the build line.
- Clean up and correct the list of phony targets
- Don't keep the temporary files around while building all. This
takes up a lot of space. If it's desired behavior, add
BUILDGCC_OPTIONS=-t on the make command line.
- Add comments about CPU= and BUILDGCC_OPTIONS= variables
- Add KEEP_SOURCES option
Change-Id: I7752974e249f25717b42be25a841c69af84d5c69
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: http://review.coreboot.org/12300
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile.inc b/Makefile.inc index f5326baa91..65aa71ca62 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -442,28 +442,33 @@ gitconfig: git config remote.origin.push HEAD:refs/for/master (git config --global user.name >/dev/null && git config --global user.email >/dev/null) || (printf 'Please configure your name and email in git:\n\n git config --global user.name "Your Name Comes Here"\n git config --global user.email your.email@example.com\n'; exit 1) -crossgcc: crossgcc-i386 crossgcc-x64 crossgcc-arm crossgcc-aarch64 crossgcc-mips crossgcc-riscv +# For the toolchain builds, use CPUS=x to use multiple processors to build +# use BUILDGCC_OPTIONS= to set any crossgcc command line options +# Example: BUILDGCC_OPTIONS='-t' will keep temporary files after build +crossgcc: + $(MAKE) -C util/crossgcc all_without_gdb SKIP_CLANG=1 .PHONY: crossgcc-i386 crossgcc-x64 crossgcc-arm crossgcc-aarch64 crossgcc-mips crossgcc-riscv crossgcc-i386: clean-for-update - $(MAKE) -C util/crossgcc build-i386-without-gdb + $(MAKE) -C util/crossgcc build-i386 SKIP_GDB=1 crossgcc-x64: clean-for-update - $(MAKE) -C util/crossgcc build-x64-without-gdb + $(MAKE) -C util/crossgcc build-x64 SKIP_GDB=1 crossgcc-arm: clean-for-update - $(MAKE) -C util/crossgcc build-armv7a-without-gdb + $(MAKE) -C util/crossgcc build-armv7a SKIP_GDB=1 crossgcc-aarch64: clean-for-update - $(MAKE) -C util/crossgcc build-aarch64-without-gdb + $(MAKE) -C util/crossgcc build-aarch64 SKIP_GDB=1 crossgcc-mips: clean-for-update - $(MAKE) -C util/crossgcc build-mips-without-gdb + $(MAKE) -C util/crossgcc build-mips SKIP_GDB=1 crossgcc-riscv: clean-for-update - $(MAKE) -C util/crossgcc build-riscv-without-gdb + $(MAKE) -C util/crossgcc build-riscv SKIP_GDB=1 -crosstools: crosstools-i386 crosstools-x64 crosstools-arm crosstools-aarch64 crosstools-mips crosstools-riscv +crosstools: + $(MAKE) -C util/crossgcc all_with_gdb SKIP_CLANG=1 .PHONY: crosstools-i386 crosstools-x64 crosstools-arm crosstools-aarch64 crosstools-mips crosstools-riscv crosstools-i386: clean-for-update |