Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/tools/buildsystem_sanity_check/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ check_providing_features_only_makefile_features() {
local patterns=()
local pathspec=()

patterns+=(-e 'FEATURES_PROVIDED *+= *')
patterns+=(-e '^[ ]*FEATURES_PROVIDED *+= *')

pathspec+=("boards/*Makefile*" "cpu/*Makefile*")
pathspec+=("*Makefile\.*")

pathspec+=(":!*Makefile.features")

git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \
| error_with_message 'Features in cpu and boards should only be provided in Makefile.features files'
| error_with_message 'Features should only be provided in Makefile.features files'
}

# Some variables do not need to be exported and even cause issues when being
Expand Down