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:
parent
17cb6ed63d
commit
c86f4d66da
1 changed files with 15 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue