mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19596
19596: dist/tools/insufficient_memory: handle address space wraps r=aabadie a=maribu ### Contribution description When a region wraps around the address space, the application typically is way too large to fit into the 16 bit address space of 16 bit or 8 bit platforms. Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
This commit is contained in:
commit
77b15473ae
@ -58,7 +58,10 @@ for app in ${APPLICATIONS}; do
|
||||
# as this is exactly what we want here
|
||||
# shellcheck disable=SC2086
|
||||
if ! make BOARD="${BOARD}" ${LOCAL_MAKE_ARGS} -C "${RIOTBASE}/${application}" > "$TMPFILE" 2>&1; then
|
||||
if grep -e overflowed -e "not within region" "$TMPFILE" > /dev/null; then
|
||||
if grep -e overflowed \
|
||||
-e "not within region" \
|
||||
-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
|
||||
elif grep -e "not whitelisted" \
|
||||
|
@ -53,7 +53,10 @@ for BOARD in $(EXTERNAL_BOARD_DIRS="" make --no-print-directory info-boards-sup
|
||||
# as this is exactly what we want here
|
||||
# shellcheck disable=SC2086
|
||||
if ! make BOARD="${BOARD}" ${LOCAL_MAKE_ARGS} clean all -C "${APP_DIR}" > "$TMPFILE" 2>&1; then
|
||||
if grep -e overflowed -e "not within region" "$TMPFILE" > /dev/null; then
|
||||
if grep -e overflowed \
|
||||
-e "not within region" \
|
||||
-e "wraps around address space" \
|
||||
"$TMPFILE" > /dev/null; then
|
||||
printf "${CBIG}%s${CRESET}\n" "too big"
|
||||
BOARDS="${BOARDS} ${BOARD}"
|
||||
elif grep -e "not whitelisted" \
|
||||
|
Loading…
Reference in New Issue
Block a user