forked from len0rd/rockbox
mkinfo: Use correct binary file for "actual size" on hosted targets
Change-Id: Ia22743f3cab18fb1285bcec6429bb198525f37f8
This commit is contained in:
parent
c05cd163bc
commit
93fcd569ab
1 changed files with 10 additions and 2 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue