Jon Murphy has submitted this change. ( 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 needed for tooling surrounding 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 Signed-off-by: Jon Murphy jpmurphy@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/86171 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Raul Rangel rrangel@chromium.org Reviewed-by: Karthik Ramasubramanian kramasub@google.com --- M util/crossgcc/buildgcc 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Raul Rangel: Looks good to me, approved Karthik Ramasubramanian: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 2ad98b8..1b0c89a 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -1038,7 +1038,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*) ;;