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:
parent
65aaeae933
commit
195d6617b2
6
dist/tools/buildsystem_sanity_check/check.sh
vendored
6
dist/tools/buildsystem_sanity_check/check.sh
vendored
@ -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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user