make: make NG_NETIF_NUMOF available in build system
This commit is contained in:
parent
fbea5092c3
commit
e1842869da
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue