Jon Murphy has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86171?usp=email )
Change subject: util/crossgcc/buildgcc: Add riscv64-elf to targets ......................................................................
util/crossgcc/buildgcc: Add riscv64-elf to targets
All of the other targets support invoking the build with the full target arch name. RISC does not. Update the script to allow riscv64-elf to invoke the build the same way that riscv-elf does to minimize name mangling and exceptions for the architecture name in paths. Leave riscv-elf in tact as an option so we don't break anyone else.
BUG=None TEST=./util/crossgcc/buildgcc --platform riscv64-elf
Change-Id: Ie737855053e00205ca85f54436c224ab3a1283d9 --- M util/crossgcc/buildgcc 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/86171/1
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 4963462..8484ed0 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -1010,7 +1010,8 @@ x86_64*) TARGETARCH=x86_64-elf;; i386-elf) ;; i386-mingw32) ;; - riscv-elf) TARGETARCH=riscv64-elf + riscv-elf | riscv64-elf) + TARGETARCH=riscv64-elf TARGET_GCC_OPTIONS="$TARGET_GCC_OPTIONS --with-isa-spec=20191213" TARGET_BINUTILS_OPTIONS="$TARGET_BINUTILS_OPTIONS --with-isa-spec=20191213";; powerpc64*-linux*) ;;