1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

buildsystem_sanity_check: don't touch PSEUDOMODULES in Makefile.dep

This commit is contained in:
Juergen Fitschen 2020-05-23 16:35:05 +02:00
parent b13a4d6c9c
commit 0a4beec345

View File

@ -253,6 +253,18 @@ check_files_in_boards_not_reference_board_var() {
| error_with_message 'Code in boards/ should not use $(BOARDS) to reference files since this breaks external BOARDS changing BOARDSDIR"'
}
check_no_pseudomules_in_makefile_dep() {
local patterns=()
local pathspec=()
patterns+=(-e 'PSEUDOMODULES[\t ]*[+:]*=')
pathspec+=('**/Makefile.dep')
git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \
| error_with_message "Don't define PSEUDOMODULES in Makefile.dep"
}
error_on_input() {
! grep ''
}
@ -268,6 +280,7 @@ all_checks() {
checks_tests_application_not_defined_in_makefile
checks_develhelp_not_defined_via_cflags
check_files_in_boards_not_reference_board_var
check_no_pseudomules_in_makefile_dep
}
main() {