Browse Source
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.dev/timer

3 changed files with 5 additions and 118 deletions
@ -1,65 +1,10 @@
|
||||
ifneq (,$(filter powermon,$(USEMODULE))) |
||||
DIRS += powermon
|
||||
endif |
||||
ifneq (,$(filter cc2420,$(USEMODULE))) |
||||
DIRS += cc2420
|
||||
endif |
||||
ifneq (,$(filter sht11,$(USEMODULE))) |
||||
DIRS += sht11
|
||||
endif |
||||
ifneq (,$(filter ltc4150,$(USEMODULE))) |
||||
DIRS += ltc4150
|
||||
endif |
||||
ifneq (,$(filter cc110x_legacy_csma,$(USEMODULE))) |
||||
DIRS += cc110x_legacy_csma
|
||||
endif |
||||
ifneq (,$(filter cc110x_legacy,$(USEMODULE))) |
||||
DIRS += cc110x_legacy
|
||||
endif |
||||
ifneq (,$(filter at86rf231,$(USEMODULE))) |
||||
DIRS += at86rf231
|
||||
endif |
||||
ifneq (,$(filter gps_ublox,$(USEMODULE))) |
||||
DIRS += gps_ublox
|
||||
endif |
||||
ifneq (,$(filter srf02,$(USEMODULE))) |
||||
DIRS += srf02
|
||||
endif |
||||
ifneq (,$(filter srf08,$(USEMODULE))) |
||||
DIRS += srf08
|
||||
endif |
||||
ifneq (,$(filter lm75a,$(USEMODULE))) |
||||
DIRS += lm75a
|
||||
endif |
||||
ifneq (,$(filter rgbled,$(USEMODULE))) |
||||
DIRS += rgbled
|
||||
endif |
||||
ifneq (,$(filter servo,$(USEMODULE))) |
||||
DIRS += servo
|
||||
endif |
||||
ifneq (,$(filter pir,$(USEMODULE))) |
||||
DIRS += pir
|
||||
endif |
||||
ifneq (,$(filter netdev_base,$(USEMODULE))) |
||||
DIRS += netdev/base
|
||||
endif |
||||
ifneq (,$(filter isl29020,$(USEMODULE))) |
||||
DIRS += isl29020
|
||||
endif |
||||
ifneq (,$(filter mq3,$(USEMODULE))) |
||||
DIRS += mq3
|
||||
endif |
||||
ifneq (,$(filter lps331ap,$(USEMODULE))) |
||||
DIRS += lps331ap
|
||||
endif |
||||
ifneq (,$(filter l3g4200d,$(USEMODULE))) |
||||
DIRS += l3g4200d
|
||||
endif |
||||
ifneq (,$(filter netdev_802154,$(USEMODULE))) |
||||
DIRS += netdev/802154
|
||||
endif |
||||
ifneq (,$(filter lsm303dlhc,$(USEMODULE))) |
||||
DIRS += lsm303dlhc
|
||||
endif |
||||
|
||||
DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE})))
|
||||
|
||||
include $(RIOTBASE)/Makefile.base |
||||
|
Loading…
Reference in new issue