Add crossgcc target to automatically build reference toolchain
authorCristian Magherusan-Stanciu <cristi.magherusan@gmail.com>
Mon, 16 May 2011 01:35:03 +0000 (01:35 +0000)
committerPeter Stuge <peter@stuge.se>
Mon, 16 May 2011 01:35:03 +0000 (01:35 +0000)
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

Makefile
util/crossgcc/Makefile [new file with mode: 0644]

index ac7115da30ba763cd82a677f02724516815d753f..69e32a4d667ad1c5b1c474f3f71f110f321c9489 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -242,6 +242,12 @@ $(shell mkdir -p $(obj) $(objutil)/kconfig/lxdialog $(additional-dirs) $(alldirs
 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
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
new file mode 100644 (file)
index 0000000..6aa07d6
--- /dev/null
@@ -0,0 +1,9 @@
+all: build
+
+build:
+       ./buildgcc
+
+clean:
+       rm -rf xgcc
+
+.PHONY: all build clean