1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

dist/tools/buildsystem_sanity_check: Relax on Makefile.features

In order to extend features based on provided features, we need to
check contents of `FEATURES_PROVIDED`.
This commit is contained in:
Marian Buschsieweke 2024-05-28 20:52:53 +02:00
parent 65aaeae933
commit 195d6617b2
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -74,6 +74,12 @@ check_not_parsing_features() {
# These two files contain sanity checks using FEATURES_ so are allowed
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[@]}" \
| error_with_message 'Modules should not check the content of FEATURES_PROVIDED/REQUIRED/OPTIONAL'
}