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:
parent
c89331f93b
commit
8eb3692b9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user