[coreboot-gerrit] Patch set updated for coreboot: f167b42 utils/crossgcc: Refactor Makefiles for separate arm/i386.

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Sun Feb 9 07:01:44 CET 2014


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

-gerrit

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

    utils/crossgcc: Refactor Makefiles for separate arm/i386.
    
    Refactor Makefile build system as decompartmentalise armv7a 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 ec78540..19ba294 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -369,11 +369,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 crossgcc-arm
 
-crosstools: clean-for-update
-	$(MAKE) -C util/crossgcc build
+.PHONY: crossgcc-i386 crossgcc-arm
+crossgcc-i386: clean-for-update
+	$(MAKE) -C util/crossgcc build-i386-without-gdb
+
+crossgcc-arm: clean-for-update
+	$(MAKE) -C util/crossgcc build-armv7a-without-gdb
+
+crosstools: crosstools-i386
+
+.PHONY: crosstools-i386 crosstools-arm
+crosstools-i386: clean-for-update
+	$(MAKE) -C util/crossgcc build-i386
+
+crosstools-arm: clean-for-update
+	$(MAKE) -C util/crossgcc build-armv7a
 
 crossgcc-clean: clean-for-update
 	$(MAKE) -C util/crossgcc clean
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
index da3b36b..14ca1ec 100644
--- a/util/crossgcc/Makefile
+++ b/util/crossgcc/Makefile
@@ -1,12 +1,17 @@
-all: build
+all: build-i386 build-armv7a
 
-build:
+build-i386:
 	bash ./buildgcc -G -p i386-elf
+
+build-armv7a:
 	bash ./buildgcc -G -p armv7a-eabi
 
-.PHONY: build-without-gdb
-build-without-gdb:
+.PHONY: build-i386-without-gdb
+build-i386-without-gdb:
 	bash ./buildgcc -p i386-elf
+
+.PHONY: build-armv7a-without-gdb
+build-armv7a-without-gdb:
 	bash ./buildgcc -p armv7a-eabi
 
 clean:



More information about the coreboot-gerrit mailing list