1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #20130 from maribu/dist/tools/insufficient_memory/update_insufficient_memory_board.sh

dist/tools/insufficient_memory: always update Makefile.ci
This commit is contained in:
benpicco 2024-01-04 17:38:33 +00:00 committed by GitHub
commit 5dae1eb0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,8 @@ define create_Makefile.ci
@echo " #" >> $(1)
endef
BOARD_INSUFFICIENT_MEMORY += $(BOARD)
BOARD_INSUFFICIENT_MEMORY += $(ADD_BOARDS)
BOARD_INSUFFICIENT_MEMORY := $(filter-out $(REMOVE_BOARDS),$(BOARD_INSUFFICIENT_MEMORY))
.PHONY: Makefile.ci
ifeq ($(BOARD_INSUFFICIENT_MEMORY),)

View File

@ -80,4 +80,4 @@ for BOARD in $(EXTERNAL_BOARD_DIRS="" make --no-print-directory info-boards-sup
done
rm "${APP_DIR}/Makefile.ci"
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${APP_DIR}" BOARD="${BOARDS}" Makefile.ci > /dev/null
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${APP_DIR}" ADD_BOARDS="${BOARDS}" Makefile.ci > /dev/null

View File

@ -53,6 +53,10 @@ APPLICATIONS="${APPLICATIONS} $(make -sC "${RIOTBASE}" info-applications)"
for application in ${APPLICATIONS}; do
printf "${CNORMAL}%-40s${CRESET}" "${application}"
# First, remove the board from Makefile.ci; otherwise linking step will be
# skipped with RIOT_CI_BUILD=1 when the board is already in the list.
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${RIOTBASE}/${application}" REMOVE_BOARDS="${BOARD}" Makefile.ci > /dev/null
# disable warning about globbing and word splitting for ${LOCAL_MAKE_ARGS}
# as this is exactly what we want here
# shellcheck disable=SC2086
@ -62,7 +66,7 @@ for application in ${APPLICATIONS}; do
-e "wraps around address space" \
"$TMPFILE" > /dev/null; then
printf "${CBIG}%s${CRESET}\n" "too big"
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${RIOTBASE}/${application}" BOARD="${BOARD}" Makefile.ci > /dev/null
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${RIOTBASE}/${application}" ADD_BOARDS="${BOARD}" Makefile.ci > /dev/null
elif grep -e "not whitelisted" \
-e "unsatisfied feature requirements" \
-e "Some feature requirements are blacklisted:" \