Skip to content
Snippets Groups Projects
Commit e1842869 authored by Martine Lenders's avatar Martine Lenders
Browse files

make: make NG_NETIF_NUMOF available in build system

parent fbea5092
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,14 @@ endif ...@@ -130,6 +130,14 @@ endif
include $(RIOTBASE)/Makefile.modules include $(RIOTBASE)/Makefile.modules
include $(RIOTBOARD)/$(BOARD)/Makefile.include include $(RIOTBOARD)/$(BOARD)/Makefile.include
include $(RIOTCPU)/$(CPU)/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 include $(RIOTBASE)/Makefile.dep
USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE)) USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment