1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/arch/riscv.inc.mk: improve error message

When no toolchain could be detected, provide a friendly message
instead.
This commit is contained in:
Marian Buschsieweke 2022-04-19 15:51:31 +02:00
parent c89331f93b
commit 8eb3692b9d
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -33,6 +33,10 @@ TARGET_ARCH_RISCV ?= \
TARGET_ARCH ?= $(TARGET_ARCH_RISCV)
ifeq (,$(TARGET_ARCH))
$(error No RISC-V toolchain detected. Make sure a RISC-V toolchain is installed.)
endif
ifeq ($(TOOLCHAIN),gnu)
NEW_RISCV_ISA := $(shell echo "" | $(TARGET_ARCH)-as -march=rv32imac_zicsr -mabi=ilp32 - > /dev/null 2>&1 && echo 1 || echo 0)
endif