diff options
author | Dave Chapman <dave@dchapman.com> | 2008-10-31 00:59:17 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-10-31 00:59:17 +0000 |
commit | aac586d1128cd0c57844ea3fcf653f5154f23b44 (patch) | |
tree | 72f70cb39a13a16a16c01364e221eed388a85be3 /tools | |
parent | a8a61ee991f2644e1a7e71d04bd4a052d5a287e0 (diff) | |
download | rockbox-aac586d1128cd0c57844ea3fcf653f5154f23b44.tar.gz rockbox-aac586d1128cd0c57844ea3fcf653f5154f23b44.zip |
Make mkinfo.pl work for bootloader builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18942 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mkinfo.pl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/mkinfo.pl b/tools/mkinfo.pl index 734e9ecc23..8ed5eaa167 100755 --- a/tools/mkinfo.pl +++ b/tools/mkinfo.pl | |||
@@ -83,9 +83,15 @@ printf O ("Manufacturer: %s\n", $ENV{'MANUFACTURER'}); | |||
83 | printf O ("Version: %s\n", $ENV{'VERSION'}); | 83 | printf O ("Version: %s\n", $ENV{'VERSION'}); |
84 | printf O ("Binary: %s\n", $ENV{'BINARY'}); | 84 | printf O ("Binary: %s\n", $ENV{'BINARY'}); |
85 | printf O ("Binary size: %s\n", filesize($ENV{'BINARY'})); | 85 | printf O ("Binary size: %s\n", filesize($ENV{'BINARY'})); |
86 | printf O ("Actual size: %s\n", filesize("apps/rockbox.bin")); | 86 | |
87 | printf O ("RAM usage: %s\n", mapscan("apps/rockbox.map")); | 87 | if ($ENV{'APPSDIR'} =~ /\/apps$/) { |
88 | printf O ("Features: %s\n", features("apps/features")); | 88 | printf O ("Actual size: %s\n", filesize("apps/rockbox.bin")); |
89 | printf O ("RAM usage: %s\n", mapscan("apps/rockbox.map")); | ||
90 | printf O ("Features: %s\n", features("apps/features")); | ||
91 | } elsif ($ENV{'APPSDIR'} =~ /\/bootloader$/) { | ||
92 | printf O ("Actual size: %s\n", filesize("bootloader/bootloader.bin")); | ||
93 | printf O ("RAM usage: %s\n", mapscan("bootloader/bootloader.map")); | ||
94 | } | ||
89 | 95 | ||
90 | # Variables identifying tool and build environment details | 96 | # Variables identifying tool and build environment details |
91 | printf O ("gcc: %s\n", cmd1line("$ENV{'CC'} --version")); | 97 | printf O ("gcc: %s\n", cmd1line("$ENV{'CC'} --version")); |