diff --git a/Makefile.dep b/Makefile.dep index 60614da7582ce1003c7bbe2bd09dd0dc1231ae0e..584830b6f47fd6c068588df0b578983543d8c32f 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -1,3 +1,6 @@ +# pull dependencies from drivers +include $(RIOTBASE)/drivers/Makefile.dep + ifneq (,$(filter libcoap,$(USEPKG))) USEMODULE += posix_sockets endif @@ -28,28 +31,6 @@ ifneq (,$(filter gnrc_netif_default,$(USEMODULE))) USEMODULE += gnrc_netif endif -ifneq (,$(filter at86rf2%,$(USEMODULE))) - USEMODULE += at86rf2xx - USEMODULE += ieee802154 - USEMODULE += xtimer - USEMODULE += netif -endif - -ifneq (,$(filter cc110x,$(USEMODULE))) - USEMODULE += ieee802154 -endif - -ifneq (,$(filter kw2xrf,$(USEMODULE))) - USEMODULE += ieee802154 - USEMODULE += netif -endif - -ifneq (,$(filter xbee,$(USEMODULE))) - USEMODULE += ieee802154 - USEMODULE += xtimer - USEMODULE += netif -endif - ifneq (,$(filter netdev2_tap,$(USEMODULE))) USEMODULE += netif endif @@ -315,10 +296,6 @@ ifneq (,$(filter vtimer,$(USEMODULE))) USEMODULE += timex endif -ifneq (,$(filter rgbled,$(USEMODULE))) - USEMODULE += color -endif - ifneq (,$(filter libfixmath-unittests,$(USEMODULE))) USEPKG += libfixmath endif @@ -390,54 +367,6 @@ ifneq (,$(filter gnrc_netdev2,$(USEMODULE))) USEMODULE += netopt endif -ifneq (,$(filter hih6130,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter encx24j600,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter srf02,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter dht,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter lm75a,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter mpu9150,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter sht11,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter srf02,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter pcd8544,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter nvram_spi,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter ltc4150,$(USEMODULE))) - USEMODULE += xtimer -endif - -ifneq (,$(filter at30tse75x,$(USEMODULE))) - USEMODULE += xtimer -endif - ifneq (,$(filter pthread,$(USEMODULE))) USEMODULE += xtimer USEMODULE += vtimer diff --git a/drivers/Makefile.dep b/drivers/Makefile.dep new file mode 100644 index 0000000000000000000000000000000000000000..d1f440726e8ab264d906fe656fc85a679a8e253f --- /dev/null +++ b/drivers/Makefile.dep @@ -0,0 +1,71 @@ +# driver dependencies (in alphabetical order) + +ifneq (,$(filter at30tse75x,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter at86rf2%,$(USEMODULE))) + USEMODULE += at86rf2xx + USEMODULE += ieee802154 + USEMODULE += xtimer + USEMODULE += netif +endif + +ifneq (,$(filter cc110x,$(USEMODULE))) + USEMODULE += ieee802154 +endif + +ifneq (,$(filter dht,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter encx24j600,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter hih6130,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter kw2xrf,$(USEMODULE))) + USEMODULE += ieee802154 + USEMODULE += netif +endif + +ifneq (,$(filter lm75a,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter ltc4150,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter mpu9150,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter nvram_spi,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter pcd8544,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter rgbled,$(USEMODULE))) + USEMODULE += color +endif + +ifneq (,$(filter sht11,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter srf02,$(USEMODULE))) + USEMODULE += xtimer +endif + +ifneq (,$(filter xbee,$(USEMODULE))) + USEMODULE += ieee802154 + USEMODULE += xtimer + USEMODULE += netif +endif