mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
9a15a6def5
Currently you need to add every new sys and driver module into the respective Makefile. This requires rebasing if another module was merged in the meantime. This PR allows you to omit the entry to {sys,drivers}/Makefile, if the subfolder has the same name as the module name, which should be sensible in most cases.
11 lines
252 B
Makefile
11 lines
252 B
Makefile
ifneq (,$(filter netdev_base,$(USEMODULE)))
|
|
DIRS += netdev/base
|
|
endif
|
|
ifneq (,$(filter netdev_802154,$(USEMODULE)))
|
|
DIRS += netdev/802154
|
|
endif
|
|
|
|
DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE})))
|
|
|
|
include $(RIOTBASE)/Makefile.base
|