summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-10-31 00:59:17 +0000
committerDave Chapman <dave@dchapman.com>2008-10-31 00:59:17 +0000
commitaac586d1128cd0c57844ea3fcf653f5154f23b44 (patch)
tree72f70cb39a13a16a16c01364e221eed388a85be3
parenta8a61ee991f2644e1a7e71d04bd4a052d5a287e0 (diff)
downloadrockbox-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
-rwxr-xr-xtools/mkinfo.pl12
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'});
printf O ("Version: %s\n", $ENV{'VERSION'});
printf O ("Binary: %s\n", $ENV{'BINARY'});
printf O ("Binary size: %s\n", filesize($ENV{'BINARY'}));
-printf O ("Actual size: %s\n", filesize("apps/rockbox.bin"));
-printf O ("RAM usage: %s\n", mapscan("apps/rockbox.map"));
-printf O ("Features: %s\n", features("apps/features"));
+
+if ($ENV{'APPSDIR'} =~ /\/apps$/) {
+ printf O ("Actual size: %s\n", filesize("apps/rockbox.bin"));
+ printf O ("RAM usage: %s\n", mapscan("apps/rockbox.map"));
+ printf O ("Features: %s\n", features("apps/features"));
+} elsif ($ENV{'APPSDIR'} =~ /\/bootloader$/) {
+ printf O ("Actual size: %s\n", filesize("bootloader/bootloader.bin"));
+ printf O ("RAM usage: %s\n", mapscan("bootloader/bootloader.map"));
+}
# Variables identifying tool and build environment details
printf O ("gcc: %s\n", cmd1line("$ENV{'CC'} --version"));