Browse Source

make: make NG_NETIF_NUMOF available in build system

dev/timer
Martine Lenders 8 years ago committed by Martine Lenders
parent
commit
e1842869da
  1. 8
      Makefile.include

8
Makefile.include

@ -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…
Cancel
Save