From c89331f93b996584ba623d6062007d70911a4f2b Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 14 Apr 2022 17:03:16 +0200 Subject: [PATCH] build system: Detect more RISC-V target triples Omitting the middle part of `riscv32-none-elf` is apparently legal and done by Arch Linux. --- makefiles/arch/riscv.inc.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/makefiles/arch/riscv.inc.mk b/makefiles/arch/riscv.inc.mk index d86e95080c..de32fb3895 100644 --- a/makefiles/arch/riscv.inc.mk +++ b/makefiles/arch/riscv.inc.mk @@ -15,11 +15,14 @@ _TRIPLES_TO_TEST := \ riscv-none-embed \ riscv32-none-elf \ - riscv-none-elf \ riscv32-unknown-elf \ + riscv32-elf \ + riscv-none-elf \ riscv-unknown-elf \ + riscv-elf \ riscv64-none-elf \ - riscv64-unknown-elf + riscv64-unknown-elf \ + riscv64-elf TARGET_ARCH_RISCV ?= \ $(strip \