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@alterapraxis.com> Reviewed-on: http://review.coreboot.org/4008 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
adc0a6352d
commit
3a7227852b
20
Makefile.inc
20
Makefile.inc
|
@ -369,11 +369,23 @@ gitconfig:
|
||||||
git config remote.origin.push HEAD:refs/for/master
|
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@example.com\n'; exit 1)
|
(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@example.com\n'; exit 1)
|
||||||
|
|
||||||
crossgcc: clean-for-update
|
crossgcc: crossgcc-i386 crossgcc-arm
|
||||||
$(MAKE) -C util/crossgcc build-without-gdb
|
|
||||||
|
|
||||||
crosstools: clean-for-update
|
.PHONY: crossgcc-i386 crossgcc-arm
|
||||||
$(MAKE) -C util/crossgcc build
|
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
|
crossgcc-clean: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc clean
|
$(MAKE) -C util/crossgcc clean
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
all: build
|
all: build-i386 build-armv7a
|
||||||
|
|
||||||
build:
|
build-i386:
|
||||||
bash ./buildgcc -G -p i386-elf
|
bash ./buildgcc -G -p i386-elf
|
||||||
|
|
||||||
|
build-armv7a:
|
||||||
bash ./buildgcc -G -p armv7a-eabi
|
bash ./buildgcc -G -p armv7a-eabi
|
||||||
|
|
||||||
.PHONY: build-without-gdb
|
.PHONY: build-i386-without-gdb
|
||||||
build-without-gdb:
|
build-i386-without-gdb:
|
||||||
bash ./buildgcc -p i386-elf
|
bash ./buildgcc -p i386-elf
|
||||||
|
|
||||||
|
.PHONY: build-armv7a-without-gdb
|
||||||
|
build-armv7a-without-gdb:
|
||||||
bash ./buildgcc -p armv7a-eabi
|
bash ./buildgcc -p armv7a-eabi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue