Add crossgcc target to automatically build reference toolchain

This means that a simple:

$ make crossgcc

creates the reference toolchain in the correct directory. Thanks to the
dependency on the clean-for-update target, an existing .xcompile along
with any compiled objects in build/ will be cleaned out, so the next
build will automatically use the newly created reference toolchain.

Signed-off-by: Cristian Magherusan-Stanciu <cristi.magherusan@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6598 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Cristian Magherusan-Stanciu 2011-05-16 01:35:03 +00:00 committed by Peter Stuge
parent 3f0075b3d2
commit 0b933d4644
2 changed files with 15 additions and 0 deletions

View File

@ -242,6 +242,12 @@ $(shell mkdir -p $(obj) $(objutil)/kconfig/lxdialog $(additional-dirs) $(alldirs
cscope: cscope:
cscope -bR cscope -bR
crossgcc: clean-for-update
$(MAKE) -C util/crossgcc build
crossgcc-clean: clean-for-update
$(MAKE) -C util/crossgcc clean
doxy: doxygen doxy: doxygen
doxygen: doxygen:
$(DOXYGEN) documentation/Doxyfile.coreboot $(DOXYGEN) documentation/Doxyfile.coreboot

9
util/crossgcc/Makefile Normal file
View File

@ -0,0 +1,9 @@
all: build
build:
./buildgcc
clean:
rm -rf xgcc
.PHONY: all build clean