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

makefiles/libc/picolibc.mk: only fail when building

This commit is contained in:
Francisco Molina 2021-03-01 13:47:53 +01:00
parent ea19332c1f
commit cfe9e0f6a1
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -7,13 +7,19 @@ ifneq (,$(filter picolibc,$(USEMODULE)))
LINKFLAGS += -Wl,--no-wchar-size-warning
endif
else
$(warning picolibc was selected to be build but no picolibc.spec could be found)
$(warning you might want to install "picolibc" for "$(TARGET_ARCH)")
$(warning or add "FEATURES_BLACKLIST += picolibc" to Makefile)
$(error check your installation or build configuration.)
BUILDDEPS += _missing-picolibc
endif
endif
.PHONY: _missing-picolibc
_missing-picolibc:
@$(Q)echo "picolibc was selected to be build but no picolibc.spec could be found"
@$(Q)echo "you might want to install "picolibc" for "$(TARGET_ARCH)""
@$(Q)echo "or add "FEATURES_BLACKLIST += picolibc" to Makefile)"
@$(COLOR_ECHO) "$(COLOR_RED)check your installation or build configuration."
@$(Q)exit 1
ifeq (1,$(USE_PICOLIBC))
LINKFLAGS += -specs=picolibc.specs
CFLAGS += -specs=picolibc.specs