mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
29842bb5e4
With some minor hand-edits I used the following chain of commands: ```sh git rm sys/include/net/gnrc/netdev.h git grep --name-only -i netdev2 | \ xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \ -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \ -e 's/\(netdev\)2/\1/gI' git add -p git commit --amend git ls-tree --full-tree -r HEAD --name-only | \ grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \ grep "netdev2" | while read dir; do new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")" git mv -f "$dir" "$new_dir" done git commit --amend git ls-tree --full-tree -r HEAD --name-only | \ grep "netdev2" | while read file; do new_file="$(echo "$file" | sed "s/netdev2/netdev/g")" git mv -f "$file" "$new_file" done git commit --amend git grep --name-only "\<drivers_netdev_netdev\>" | \ xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g" git add -p git commit --amend ```
202 lines
4.6 KiB
Makefile
202 lines
4.6 KiB
Makefile
# driver dependencies (in alphabetical order)
|
|
|
|
ifneq (,$(filter at30tse75x,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
FEATURES_REQUIRED += periph_i2c
|
|
endif
|
|
|
|
ifneq (,$(filter at86rf2%,$(USEMODULE)))
|
|
USEMODULE += at86rf2xx
|
|
USEMODULE += xtimer
|
|
USEMODULE += luid
|
|
USEMODULE += netif
|
|
USEMODULE += ieee802154
|
|
USEMODULE += netdev_ieee802154
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
# as all drivers are ported to netdev
|
|
USEMODULE += gnrc_netdev
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(filter mrf24j40,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
USEMODULE += luid
|
|
USEMODULE += netif
|
|
USEMODULE += ieee802154
|
|
USEMODULE += netdev_ieee802154
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
# as all drivers are ported to netdev
|
|
USEMODULE += gnrc_netdev
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(filter bh1750fvi,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
FEATURES_REQUIRED += periph_i2c
|
|
endif
|
|
|
|
ifneq (,$(filter bmp180,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_i2c
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter bme280,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_i2c
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter cc110x,$(USEMODULE)))
|
|
USEMODULE += ieee802154
|
|
USEMODULE += luid
|
|
USEMODULE += xtimer
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
USEMODULE += gnrc_cc110x
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
# as all drivers are ported to netdev
|
|
USEMODULE += gnrc_netdev
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(filter cc2420,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
USEMODULE += luid
|
|
USEMODULE += netif
|
|
USEMODULE += ieee802154
|
|
USEMODULE += netdev_ieee802154
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
# as all drivers are ported to netdev
|
|
USEMODULE += gnrc_netdev
|
|
endif
|
|
FEATURES_REQUIRED += periph_gpio
|
|
FEATURES_REQUIRED += periph_spi
|
|
endif
|
|
|
|
ifneq (,$(filter dht,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
FEATURES_REQUIRED += periph_gpio
|
|
endif
|
|
|
|
ifneq (,$(filter enc28j60,$(USEMODULE)))
|
|
USEMODULE += netdev_eth
|
|
USEMODULE += xtimer
|
|
USEMODULE += luid
|
|
endif
|
|
|
|
ifneq (,$(filter encx24j600,$(USEMODULE)))
|
|
USEMODULE += netdev_eth
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter ethos,$(USEMODULE)))
|
|
USEMODULE += netdev_eth
|
|
USEMODULE += random
|
|
USEMODULE += tsrb
|
|
endif
|
|
|
|
ifneq (,$(filter hdc1000,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter hih6130,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter io1_xplained,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_gpio
|
|
USEMODULE += at30tse75x
|
|
endif
|
|
|
|
ifneq (,$(filter jc42,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_i2c
|
|
endif
|
|
|
|
ifneq (,$(filter kw2xrf,$(USEMODULE)))
|
|
USEMODULE += luid
|
|
USEMODULE += netif
|
|
USEMODULE += ieee802154
|
|
USEMODULE += netdev_ieee802154
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
# as all drivers are ported to netdev
|
|
USEMODULE += gnrc_netdev
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(filter lis3dh,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_gpio
|
|
FEATURES_REQUIRED += periph_spi
|
|
endif
|
|
|
|
ifneq (,$(filter lm75a,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter lpd8808,$(USEMODULE)))
|
|
USEMODULE += color
|
|
FEATURES_REQUIRED += periph_gpio
|
|
endif
|
|
|
|
ifneq (,$(filter mpu9150,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter nrfmin,$(USEMODULE)))
|
|
FEATURES_REQUIRED += radio_nrfmin
|
|
FEATURES_REQUIRED += periph_cpuid
|
|
USEMODULE += netif
|
|
endif
|
|
|
|
ifneq (,$(filter nvram_spi,$(USEMODULE)))
|
|
USEMODULE += nvram
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter pcd8544,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter rgbled,$(USEMODULE)))
|
|
USEMODULE += color
|
|
endif
|
|
|
|
ifneq (,$(filter sdcard_spi,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_gpio
|
|
FEATURES_REQUIRED += periph_spi
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter sht11,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter si70xx,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
FEATURES_REQUIRED += periph_i2c
|
|
endif
|
|
|
|
ifneq (,$(filter srf02,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter srf08,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter veml6070,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_i2c
|
|
endif
|
|
|
|
ifneq (,$(filter w5100,$(USEMODULE)))
|
|
USEMODULE += netdev_eth
|
|
USEMODULE += luid
|
|
endif
|
|
|
|
ifneq (,$(filter xbee,$(USEMODULE)))
|
|
USEMODULE += ieee802154
|
|
USEMODULE += xtimer
|
|
USEMODULE += netif
|
|
endif
|