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

Makefile.include: only use board include directory if it exists

Some boards do not have a boards/BOARD/include directory and rely on a
board/common one.
This commit is contained in:
Gaëtan Harter 2018-06-08 11:49:16 +02:00
parent ec2fe9a308
commit d44e4c1f7f
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -229,7 +229,7 @@ export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-)
# Add standard include directories
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/$(BOARD)/include))
# process provided features
-include $(RIOTBOARD)/$(BOARD)/Makefile.features