mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
dist/tools: Check BOARD_INSUFFICIENT_MEMORY usage
- Enforce that all applications do not manage BOARD_INSUFFICIENT_MEMORY in the Makefile - Match also "BOARD_INSUFFICIENT_MEMORY +=", not only "BOARD_INSUFFICIENT_MEMORY :=" or "BOARD_INSUFFICIENT_MEMORY =".
This commit is contained in:
parent
fd6fedaab6
commit
b6d23b56ae
4
dist/tools/buildsystem_sanity_check/check.sh
vendored
4
dist/tools/buildsystem_sanity_check/check.sh
vendored
@ -178,9 +178,9 @@ check_board_insufficient_memory_not_in_makefile() {
|
||||
local patterns=()
|
||||
local pathspec=()
|
||||
|
||||
patterns+=(-e '^[[:space:]]*BOARD_INSUFFICIENT_MEMORY[[:space:]:]*=')
|
||||
patterns+=(-e '^[[:space:]]*BOARD_INSUFFICIENT_MEMORY[[:space:]:+]*=')
|
||||
|
||||
pathspec+=('examples*/Makefile')
|
||||
pathspec+=('**/Makefile')
|
||||
|
||||
git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \
|
||||
| error_with_message 'Move BOARD_INSUFFICIENT_MEMORY to Makefile.ci'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user