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,19 +35,27 @@ if [ ! -x "tools/showsize.sh" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# On the cywin simulation, the executable will be nuttx.exe
|
||||
# Support pass a NuttX executable
|
||||
|
||||
if [ -f "nuttx" ]; then
|
||||
NUTTX=nuttx
|
||||
if [ -n "$1" ]; then
|
||||
NUTTX=$1
|
||||
else
|
||||
if [ -x "nuttx.exe" ]; then
|
||||
NUTTX=nuttx.exe
|
||||
# On the cywin simulation, the executable will be nuttx.exe
|
||||
|
||||
if [ -f "nuttx" ]; then
|
||||
NUTTX=nuttx
|
||||
else
|
||||
echo "Cannot find the NuttX executable"
|
||||
exit 1
|
||||
if [ -x "nuttx.exe" ]; then
|
||||
NUTTX=nuttx.exe
|
||||
else
|
||||
echo "Cannot find the NuttX executable"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "NuttX executable:" $NUTTX
|
||||
|
||||
# Show what we were asked for
|
||||
|
||||
echo "TOP 10 BIG DATA"
|
||||
|
|
Loading…
Reference in a new issue