1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/dist/tools/insufficient_memory
Marian Buschsieweke fe176f5b1f
dist/tools/insufficient_memory: Minor improvements
`create_makefile.sh`:
- address all shellcheck warnings
- make script POSIX shell compatible
- use nproc to set the number of parallel jobs to increase throughput
- print error messages when building fails
- run `make info-boards-supported` with `EXTERNAL_BOARD_DIRS=""` to
  avoid adding out-of-tree boards to `Makefile.ci`.
- classify output as "not supported" also when used features are
  blacklisted, not only when required features are missing
- classify output as "not supported' also when output contains
  `not supported.  Stop.`, e.g. as raised by pkg/tinyusb on unsupported
  CPUs / CPU families.

`add_insufficient_memory_board.sh`:
- classify output as "not supported" also when used features are
  blacklisted, not only when required features are missing
- classify output as "not supported' also when output contains
  `not supported.  Stop.`, e.g. as raised by pkg/tinyusb on unsupported
  CPUs / CPU families.
2023-02-23 13:47:00 +01:00
..
add_insufficient_memory_board.sh dist/tools/insufficient_memory: Minor improvements 2023-02-23 13:47:00 +01:00
create_makefile.ci.sh dist/tools/insufficient_memory: Minor improvements 2023-02-23 13:47:00 +01:00
Makefile.for_sh tools: add add_insufficient_memory_board.sh script 2019-11-12 13:52:15 +01:00
README.md tools: add add_insufficient_memory_board.sh script 2019-11-12 13:52:15 +01:00

add_insufficient_memory_board.sh

Usage: add_insufficient_memory_board.sh <board_name>

Updates Makefile.ci to include <board_name> if the memory of the board is not sufficient for the test/example.

For this the script will build every test and example to see if the result would fit into the memory of the specified board. If not the corresponding Makefile.ci is updated automatically.