1
0
Fork 0
forked from nuttx/nuttx-update

tools/showsize.sh: support pass custom nuttx executable

Use showsize.sh to show custom elf file top10 size
tools/showsize.sh vela_ap.elf
tools/showsize.sh vela_audio.elf

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2024-09-26 16:11:00 +08:00 committed by Xiang Xiao
parent 17cb6ed63d
commit c86f4d66da

View file

@ -35,6 +35,11 @@ if [ ! -x "tools/showsize.sh" ]; then
exit 1
fi
# Support pass a NuttX executable
if [ -n "$1" ]; then
NUTTX=$1
else
# On the cywin simulation, the executable will be nuttx.exe
if [ -f "nuttx" ]; then
@ -47,6 +52,9 @@ else
exit 1
fi
fi
fi
echo "NuttX executable:" $NUTTX
# Show what we were asked for