diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-05-17 09:31:45 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-05-17 15:46:47 +0200 |
commit | 93fcd569abc065c77f93a903cbaff6e551be437e (patch) | |
tree | def31e76965298c784029dd5d13b4edda617ced5 | |
parent | c05cd163bc1f2843a10f8883d5583dd2cdf65962 (diff) | |
download | rockbox-93fcd56.tar.gz rockbox-93fcd56.zip |
mkinfo: Use correct binary file for "actual size" on hosted targets
Change-Id: Ia22743f3cab18fb1285bcec6429bb198525f37f8
-rwxr-xr-x | tools/mkinfo.pl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/mkinfo.pl b/tools/mkinfo.pl index 12d32bc7dc..6b12345305 100755 --- a/tools/mkinfo.pl +++ b/tools/mkinfo.pl @@ -100,11 +100,19 @@ printf O ("Binary size: %s\n", filesize($ENV{'BINARY'})); printf O ("Voice format: %s\n", definescan("$ENV{APPSDIR}/talk.h", "VOICE_VERSION")); if ($ENV{'APPSDIR'} =~ /\/apps$/) { - printf O ("Actual size: %s\n", filesize("rockbox.bin")); + if (-f "rockbox.bin") { + printf O ("Actual size: %s\n", filesize("rockbox.bin")); + } else { + printf O ("Actual size: %s\n", filesize($ENV{'BINARY'})); + } printf O ("RAM usage: %s\n", mapscan("rockbox.map")); printf O ("Features: %s\n", features("apps/features")); } elsif ($ENV{'APPSDIR'} =~ /\/bootloader$/) { - printf O ("Actual size: %s\n", filesize("bootloader.bin")); + if (-f "bootloader.bin") { + printf O ("Actual size: %s\n", filesize("bootloader.bin")); + } else { + printf O ("Actual size: %s\n", filesize($ENV{'BINARY'})); + } printf O ("RAM usage: %s\n", mapscan("bootloader.map")); } |