From 4f4616bb355a545efb661106e365eb5bb7456270 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 16 May 2023 14:12:16 +0200 Subject: [PATCH] dist/tools/insufficient_memory: fix collection of app folders There is actually a make target to list the applications in the repo. Let's just use that. --- .../insufficient_memory/add_insufficient_memory_board.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dist/tools/insufficient_memory/add_insufficient_memory_board.sh b/dist/tools/insufficient_memory/add_insufficient_memory_board.sh index ed3ffabd146b..f18e5c5a3912 100755 --- a/dist/tools/insufficient_memory/add_insufficient_memory_board.sh +++ b/dist/tools/insufficient_memory/add_insufficient_memory_board.sh @@ -47,12 +47,11 @@ export RIOT_CI_BUILD=1 BOARD=$1 RIOTBASE="$(dirname "$0")/../../.." -APPLICATIONS="$APPLICATIONS examples/*/Makefile" -APPLICATIONS="$APPLICATIONS tests/*/Makefile" TMPFILE="$(mktemp)" -for app in ${APPLICATIONS}; do - application="$(dirname "${app}")" +APPLICATIONS="${APPLICATIONS} $(make -sC "${RIOTBASE}" info-applications)" + +for application in ${APPLICATIONS}; do printf "${CNORMAL}%-40s${CRESET}" "${application}" # disable warning about globbing and word splitting for ${LOCAL_MAKE_ARGS} # as this is exactly what we want here