diff --git a/dist/tools/buildsystem_sanity_check/check.sh b/dist/tools/buildsystem_sanity_check/check.sh index 6bdde8ded9..b21bf401ab 100755 --- a/dist/tools/buildsystem_sanity_check/check.sh +++ b/dist/tools/buildsystem_sanity_check/check.sh @@ -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() {