mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include: sanity check that cpu Makefile.features is used
This prepares for being able to always include Makefile.features globally. It prevents new board for missing this until it is done.
This commit is contained in:
parent
746d3e1d77
commit
d809d82b91
@ -246,6 +246,13 @@ include $(RIOTBOARD)/$(BOARD)/Makefile.include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
||||
include $(RIOTCPU)/$(CPU)/Makefile.include
|
||||
|
||||
# Sanity check
|
||||
# The check is only done after 'include $(RIOTBOARD)/$(BOARD)/Makefile.include'
|
||||
# because we need to have the 'CPU' variable defined
|
||||
ifeq (,$(filter $(RIOTCPU)/$(CPU)/Makefile.features,$(MAKEFILE_LIST)))
|
||||
$(error $$(RIOTCPU)/$$(CPU)/Makefile.features must have been included by the board / board common Makefile.features)
|
||||
endif
|
||||
|
||||
# Assume GCC/GNU as supported toolchain if CPU's Makefile.include doesn't
|
||||
# provide this macro
|
||||
TOOLCHAINS_SUPPORTED ?= gnu
|
||||
|
Loading…
Reference in New Issue
Block a user