[coreboot-gerrit] New patch to review for coreboot: e0cea2a Refactor Makefile build system as decompartmentalise arm and i386 targets from crossgcc.

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Fri Nov 1 17:43:06 CET 2013

Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4008


commit e0cea2a34490ba5bc4ad08345a51f25e680844d3
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sat Nov 2 03:40:39 2013 +1100

    Refactor Makefile build system as decompartmentalise arm and i386 targets from crossgcc.
    Change-Id: If93f62050810ba594c9925a9eb8ba9d04bc76459
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
 Makefile.inc           | 20 ++++++++++++++++----
 util/crossgcc/Makefile | 13 +++++++++----
 2 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index 69ad3a1..ecbe62b 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -368,11 +368,23 @@ 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 at example.com\n'; exit 1)
-crossgcc: clean-for-update
-	$(MAKE) -C util/crossgcc build-without-gdb
+crossgcc: crossgcc-i386
-crosstools: clean-for-update
-	$(MAKE) -C util/crossgcc build
+.PHONY: crossgcc-i386
+crossgcc-i386: clean-for-update
+	$(MAKE) -C util/crossgcc buildi386-without-gdb
+crossgcc-arm: clean-for-update
+	$(MAKE) -C util/crossgcc buildarm-without-gdb
+crosstools: crosstools-i386
+.PHONY: crosstools-i386
+crosstools-i386: clean-for-update
+	$(MAKE) -C util/crossgcc buildi386
+crosstools-arm: clean-for-update
+	$(MAKE) -C util/crossgcc buildarm
 crossgcc-clean: clean-for-update
 	$(MAKE) -C util/crossgcc clean
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
index da3b36b..c3acf91 100644
--- a/util/crossgcc/Makefile
+++ b/util/crossgcc/Makefile
@@ -1,12 +1,17 @@
-all: build
+all: buildi386 buildarm
 	bash ./buildgcc -G -p i386-elf
 	bash ./buildgcc -G -p armv7a-eabi
-.PHONY: build-without-gdb
+.PHONY: buildi386-without-gdb
 	bash ./buildgcc -p i386-elf
+.PHONY: buildarm-without-gdb
 	bash ./buildgcc -p armv7a-eabi

More information about the coreboot-gerrit mailing list