make: make NG_NETIF_NUMOF available in build system

This commit is contained in:
Martine Lenders 2015-07-19 12:16:34 +02:00 committed by Martine Lenders
parent fbea5092c3
commit e1842869da
1 changed files with 8 additions and 0 deletions

View File

@ -130,6 +130,14 @@ endif
include $(RIOTBASE)/Makefile.modules
include $(RIOTBOARD)/$(BOARD)/Makefile.include
include $(RIOTCPU)/$(CPU)/Makefile.include
# get number of interfaces straight before resolving dependencies
NG_NETIF_NUMOF ?= 1
ifneq ($(NG_NETIF_NUMOF),1)
CFLAGS += -DNG_NETIF_NUMOF=$(NG_NETIF_NUMOF)
endif
include $(RIOTBASE)/Makefile.dep
USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))