crossgcc: Add RISC-V support
Change-Id: If1e0f7ed21f67d7a185dad251ede81ddbc18c4e5 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/8629 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
53c388fe6d
commit
f0bbc95f12
14
Makefile.inc
14
Makefile.inc
|
@ -424,9 +424,9 @@ 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-aarch64 crossgcc-mips
|
crossgcc: crossgcc-i386 crossgcc-arm crossgcc-aarch64 crossgcc-mips crossgcc-riscv
|
||||||
|
|
||||||
.PHONY: crossgcc-i386 crossgcc-arm crossgcc-aarch64 crossgcc-mips
|
.PHONY: crossgcc-i386 crossgcc-arm crossgcc-aarch64 crossgcc-mips crossgcc-riscv
|
||||||
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
|
||||||
|
|
||||||
|
@ -439,9 +439,12 @@ crossgcc-aarch64: clean-for-update
|
||||||
crossgcc-mips: clean-for-update
|
crossgcc-mips: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-mips-without-gdb
|
$(MAKE) -C util/crossgcc build-mips-without-gdb
|
||||||
|
|
||||||
crosstools: crosstools-i386 crosstools-arm crosstools-aarch64 crosstools-mips
|
crossgcc-riscv: clean-for-update
|
||||||
|
$(MAKE) -C util/crossgcc build-riscv-without-gdb
|
||||||
|
|
||||||
.PHONY: crosstools-i386 crosstools-arm crosstools-aarch64 crosstools-mips
|
crosstools: crosstools-i386 crosstools-arm crosstools-aarch64 crosstools-mips crosstools-riscv
|
||||||
|
|
||||||
|
.PHONY: crosstools-i386 crosstools-arm crosstools-aarch64 crosstools-mips crosstools-riscv
|
||||||
crosstools-i386: clean-for-update
|
crosstools-i386: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-i386
|
$(MAKE) -C util/crossgcc build-i386
|
||||||
|
|
||||||
|
@ -454,6 +457,9 @@ crosstools-aarch64: clean-for-update
|
||||||
crosstools-mips: clean-for-update
|
crosstools-mips: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-mips
|
$(MAKE) -C util/crossgcc build-mips
|
||||||
|
|
||||||
|
crosstools-riscv: clean-for-update
|
||||||
|
$(MAKE) -C util/crossgcc build-riscv
|
||||||
|
|
||||||
crossgcc-clean: clean-for-update
|
crossgcc-clean: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc clean
|
$(MAKE) -C util/crossgcc clean
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
all: build-i386 build-armv7a build-aarch64 build-mips
|
all: build-i386 build-armv7a build-aarch64 build-mips build-riscv
|
||||||
|
|
||||||
build-i386:
|
build-i386:
|
||||||
bash ./buildgcc -G -p i386-elf
|
bash ./buildgcc -G -p i386-elf
|
||||||
|
@ -12,6 +12,9 @@ build-aarch64:
|
||||||
build-mips:
|
build-mips:
|
||||||
bash ./buildgcc -G -p mips-elf
|
bash ./buildgcc -G -p mips-elf
|
||||||
|
|
||||||
|
build-mips:
|
||||||
|
bash ./buildgcc -G -p riscv-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
|
||||||
|
@ -28,6 +31,10 @@ build-aarch64-without-gdb:
|
||||||
build-mips-without-gdb:
|
build-mips-without-gdb:
|
||||||
bash ./buildgcc -p mips-elf
|
bash ./buildgcc -p mips-elf
|
||||||
|
|
||||||
|
.PHONY: build-riscv-without-gdb
|
||||||
|
build-riscv-without-gdb:
|
||||||
|
bash ./buildgcc -p riscv-elf
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf xgcc
|
rm -rf xgcc
|
||||||
|
|
||||||
|
|
|
@ -230,6 +230,7 @@ case "$TARGETARCH" in
|
||||||
i386-elf) ;;
|
i386-elf) ;;
|
||||||
i386-mingw32) ;;
|
i386-mingw32) ;;
|
||||||
mipsel-elf) ;;
|
mipsel-elf) ;;
|
||||||
|
riscv-elf) ;;
|
||||||
i386*) TARGETARCH=i386-elf;;
|
i386*) TARGETARCH=i386-elf;;
|
||||||
arm*) TARGETARCH=armv7-a-eabi;;
|
arm*) TARGETARCH=armv7-a-eabi;;
|
||||||
aarch64*) TARGETARCH=aarch64-elf;;
|
aarch64*) TARGETARCH=aarch64-elf;;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue