Patchwork crossgcc make target

login
register
about
Submitter Cristi Magherusan
Date 2011-05-16 01:17:35
Message ID <23238.89.247.128.65.1305508655.squirrel@mail.utcluj.ro>
Download mbox | patch
Permalink /patch/2964/
State Accepted
Headers show

Comments

Cristi Magherusan - 2011-05-16 01:17:35
Please see the patch below.

Signed-off-by: Cristian Magherusan-Stanciu <cristi.magherusan@gmail.com>
Peter Stuge - 2011-05-16 01:35:41
Cristi Magherusan wrote:
> Signed-off-by: Cristian Magherusan-Stanciu <cristi.magherusan@gmail.com>

Skip the distclean target for now since it's not being called anyway,
and since the unpacked tarballs should also be cleaned up somehow.
(How?)

Acked-by: Peter Stuge <peter@stuge.se>

r6598

Patch

diff --git a/Makefile b/Makefile
index ac7115d..69e32a4 100644
--- 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
index 0000000..ea19e6f
--- /dev/null
+++ b/util/crossgcc/Makefile
@@ -0,0 +1,12 @@ 
+all: build
+
+build:
+	./buildgcc
+
+clean:
+	rm -rf xgcc
+
+distclean: clean
+	rm -rf tarballs/*
+
+.PHONY: all clean distclean build