1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:52:44 +01:00

Merge pull request #20700 from maribu/features/netif-cleanup

build system: clean up netif features
This commit is contained in:
mguetschow 2024-06-03 12:40:35 +00:00 committed by GitHub
commit 2576649b52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 19 additions and 22 deletions

View File

@ -31,3 +31,12 @@ FEATURES_CONFLICT_MSG += "Only one GPIO IRQ implementation can be used."
FEATURES_CONFLICT += periph_usbdev:tinyusb_device FEATURES_CONFLICT += periph_usbdev:tinyusb_device
FEATURES_CONFLICT += periph_usbdev:tinyusb_host FEATURES_CONFLICT += periph_usbdev:tinyusb_host
FEATURES_CONFLICT_MSG += "Package tinyUSB is not yet compatible with periph_usbdev." FEATURES_CONFLICT_MSG += "Package tinyUSB is not yet compatible with periph_usbdev."
# Features provided implicitly
ifneq (,$(filter periph_eth,$(FEATURES_PROVIDED)))
FEATURES_PROVIDED += netif_ethernet
endif
ifneq (,$(filter netif_%,$(FEATURES_PROVIDED)))
FEATURES_PROVIDED += netif
endif

View File

@ -4,8 +4,8 @@ CPU_MODEL = esp32-wrover
include $(RIOTBOARD)/common/esp32/Makefile.features include $(RIOTBOARD)/common/esp32/Makefile.features
# additional features provided by the board # additional features provided by the board
FEATURES_PROVIDED += esp_eth
FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_eth
FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_pwm

View File

@ -19,7 +19,7 @@ FEATURES_CONFLICT += periph_sdmmc:periph_spi
FEATURES_CONFLICT_MSG += "SD/MMC and SPI cannot be used at the same time on this board." FEATURES_CONFLICT_MSG += "SD/MMC and SPI cannot be used at the same time on this board."
# unique features of the board # unique features of the board
FEATURES_PROVIDED += esp_eth # Ethernet MAC (EMAC)
FEATURES_PROVIDED += periph_can # CAN peripheral interface FEATURES_PROVIDED += periph_can # CAN peripheral interface
FEATURES_PROVIDED += periph_eth # Ethernet MAC (EMAC)
FEATURES_PROVIDED += arduino_pins FEATURES_PROVIDED += arduino_pins

View File

@ -8,6 +8,5 @@ FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += periph_qdec FEATURES_PROVIDED += periph_qdec
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += motor_driver FEATURES_PROVIDED += motor_driver
FEATURES_PROVIDED += netif FEATURES_PROVIDED += netif_ethernet

View File

@ -14,8 +14,6 @@ FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += netif
FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device FEATURES_PROVIDED += tinyusb_device

View File

@ -14,8 +14,6 @@ FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += netif
FEATURES_PROVIDED += tinyusb_device FEATURES_PROVIDED += tinyusb_device
# load the common Makefile.features for Nucleo boards # load the common Makefile.features for Nucleo boards

View File

@ -13,8 +13,6 @@ FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += netif
FEATURES_PROVIDED += tinyusb_device FEATURES_PROVIDED += tinyusb_device
# load the common Makefile.features for Nucleo boards # load the common Makefile.features for Nucleo boards

View File

@ -20,8 +20,6 @@ FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += netif
FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device FEATURES_PROVIDED += tinyusb_device

View File

@ -19,7 +19,5 @@ FEATURES_PROVIDED += periph_freqm
FEATURES_PROVIDED += periph_can FEATURES_PROVIDED += periph_can
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += netif
FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device FEATURES_PROVIDED += tinyusb_device

View File

@ -17,6 +17,4 @@ FEATURES_PROVIDED += periph_usbdev_hs
FEATURES_PROVIDED += periph_usbdev_hs_ulpi FEATURES_PROVIDED += periph_usbdev_hs_ulpi
# Put other features for this board (in alphabetical order) # Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += netif_ethernet
FEATURES_PROVIDED += netif
FEATURES_PROVIDED += tinyusb_device FEATURES_PROVIDED += tinyusb_device

View File

@ -32,7 +32,7 @@ ifneq (,$(filter esp_ble,$(USEMODULE)))
endif endif
ifneq (,$(filter esp_eth,$(USEMODULE))) ifneq (,$(filter esp_eth,$(USEMODULE)))
FEATURES_REQUIRED += esp_eth FEATURES_REQUIRED += periph_eth
USEMODULE += esp_idf_eth USEMODULE += esp_idf_eth
USEMODULE += esp_idf_event USEMODULE += esp_idf_event
USEMODULE += esp_idf_gpio USEMODULE += esp_idf_gpio

View File

@ -74,6 +74,12 @@ check_not_parsing_features() {
# These two files contain sanity checks using FEATURES_ so are allowed # These two files contain sanity checks using FEATURES_ so are allowed
pathspec+=(':!Makefile.include' ':!makefiles/info-global.inc.mk') pathspec+=(':!Makefile.include' ':!makefiles/info-global.inc.mk')
# We extend FEATURES_PROVIDED in Makefile.features based on what is
# already provided to avoid clutter in each boards Makefile.features.
# E.g. `periph_eth` will pull in `netif_ethernet`, which
# will pull in `netif`.
pathspec+=(':!Makefile.features')
git -C "${RIOTBASE}" grep -n "${patterns[@]}" -- "${pathspec[@]}" \ git -C "${RIOTBASE}" grep -n "${patterns[@]}" -- "${pathspec[@]}" \
| error_with_message 'Modules should not check the content of FEATURES_PROVIDED/REQUIRED/OPTIONAL' | error_with_message 'Modules should not check the content of FEATURES_PROVIDED/REQUIRED/OPTIONAL'
} }

View File

@ -138,10 +138,6 @@ groups:
- title: ESP Specific Features - title: ESP Specific Features
help: These features are only available on (some) ESP MCUs. help: These features are only available on (some) ESP MCUs.
features: features:
- name: esp_eth
help: >
An ESP Ethernet peripherals is available.
(FIXME: `periph_eth` instead.)
- name: esp_jtag - name: esp_jtag
help: The MCU supports JTAG for programming and debugging. Enable this help: The MCU supports JTAG for programming and debugging. Enable this
feature to expose the interface at the cost of having fewer pins as feature to expose the interface at the cost of having fewer pins as

View File

@ -114,7 +114,6 @@ FEATURES_EXISTING := \
esp_ble \ esp_ble \
esp_ble_esp32 \ esp_ble_esp32 \
esp_ble_esp32c3 \ esp_ble_esp32c3 \
esp_eth \
esp_hw_counter \ esp_hw_counter \
esp_jtag \ esp_jtag \
esp_now \ esp_now \