mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
crossgcc: Add buildsystem support for aarch64 compiler
This adds the crosstools-aarch64 and crossgcc-aarch64 make rules to create a toolchain (with or without gdb) for AArch64 targets. Also adapt xcompile, since it's aarch64-elf. Change-Id: I6fbe09d44ee8b8493d3cd8dbbba869b409e311f7 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/7527 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
d730ca8529
commit
3bff5d9064
3 changed files with 17 additions and 4 deletions
12
Makefile.inc
12
Makefile.inc
|
@ -424,24 +424,30 @@ 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: crossgcc-i386 crossgcc-arm
|
crossgcc: crossgcc-i386 crossgcc-arm crossgcc-aarch64
|
||||||
|
|
||||||
.PHONY: crossgcc-i386 crossgcc-arm
|
.PHONY: crossgcc-i386 crossgcc-arm crossgcc-aarch64
|
||||||
crossgcc-i386: clean-for-update
|
crossgcc-i386: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-i386-without-gdb
|
$(MAKE) -C util/crossgcc build-i386-without-gdb
|
||||||
|
|
||||||
crossgcc-arm: clean-for-update
|
crossgcc-arm: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-armv7a-without-gdb
|
$(MAKE) -C util/crossgcc build-armv7a-without-gdb
|
||||||
|
|
||||||
|
crossgcc-aarch64: clean-for-update
|
||||||
|
$(MAKE) -C util/crossgcc build-aarch64-without-gdb
|
||||||
|
|
||||||
crosstools: crosstools-i386
|
crosstools: crosstools-i386
|
||||||
|
|
||||||
.PHONY: crosstools-i386 crosstools-arm
|
.PHONY: crosstools-i386 crosstools-arm crosstools-aarch64
|
||||||
crosstools-i386: clean-for-update
|
crosstools-i386: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-i386
|
$(MAKE) -C util/crossgcc build-i386
|
||||||
|
|
||||||
crosstools-arm: clean-for-update
|
crosstools-arm: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-armv7a
|
$(MAKE) -C util/crossgcc build-armv7a
|
||||||
|
|
||||||
|
crosstools-aarch64: clean-for-update
|
||||||
|
$(MAKE) -C util/crossgcc build-aarch64
|
||||||
|
|
||||||
crossgcc-clean: clean-for-update
|
crossgcc-clean: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc clean
|
$(MAKE) -C util/crossgcc clean
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@ build-i386:
|
||||||
build-armv7a:
|
build-armv7a:
|
||||||
bash ./buildgcc -G -p armv7a-eabi
|
bash ./buildgcc -G -p armv7a-eabi
|
||||||
|
|
||||||
|
build-aarch64:
|
||||||
|
bash ./buildgcc -G -p aarch64-elf
|
||||||
|
|
||||||
.PHONY: build-i386-without-gdb
|
.PHONY: build-i386-without-gdb
|
||||||
build-i386-without-gdb:
|
build-i386-without-gdb:
|
||||||
bash ./buildgcc -p i386-elf
|
bash ./buildgcc -p i386-elf
|
||||||
|
@ -14,6 +17,10 @@ build-i386-without-gdb:
|
||||||
build-armv7a-without-gdb:
|
build-armv7a-without-gdb:
|
||||||
bash ./buildgcc -p armv7a-eabi
|
bash ./buildgcc -p armv7a-eabi
|
||||||
|
|
||||||
|
.PHONY: build-aarch64-without-gdb
|
||||||
|
build-aarch64-without-gdb:
|
||||||
|
bash ./buildgcc -p aarch64-elf
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf xgcc
|
rm -rf xgcc
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ arch_config_aarch64() {
|
||||||
TBFDARCH="littleaarch64"
|
TBFDARCH="littleaarch64"
|
||||||
TCLIST="aarch64"
|
TCLIST="aarch64"
|
||||||
TWIDTH="64"
|
TWIDTH="64"
|
||||||
TABI="eabi"
|
TABI="elf"
|
||||||
}
|
}
|
||||||
|
|
||||||
arch_config_riscv() {
|
arch_config_riscv() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue