[coreboot] [commit] r6598 - in trunk: . util/crossgcc

repository service svn at coreboot.org
Mon May 16 03:35:05 CEST 2011


Author: stuge
Date: Mon May 16 03:35:03 2011
New Revision: 6598
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6598

Log:
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 at gmail.com>
Acked-by: Peter Stuge <peter at stuge.se>

Added:
   trunk/util/crossgcc/Makefile
Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Mon May 16 02:05:50 2011	(r6597)
+++ trunk/Makefile	Mon May 16 03:35:03 2011	(r6598)
@@ -242,6 +242,12 @@
 cscope:
 	cscope -bR
 
+crossgcc: clean-for-update
+	$(MAKE) -C util/crossgcc build
+
+crossgcc-clean: clean-for-update
+	$(MAKE) -C util/crossgcc clean
+
 doxy: doxygen
 doxygen:
 	$(DOXYGEN) documentation/Doxyfile.coreboot

Added: trunk/util/crossgcc/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/util/crossgcc/Makefile	Mon May 16 03:35:03 2011	(r6598)
@@ -0,0 +1,9 @@
+all: build
+
+build:
+	./buildgcc
+
+clean:
+	rm -rf xgcc
+
+.PHONY: all build clean




More information about the coreboot mailing list