summaryrefslogtreecommitdiff
path: root/tools/mkinfo.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mkinfo.pl')
-rwxr-xr-xtools/mkinfo.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/mkinfo.pl b/tools/mkinfo.pl
index 8d8e12fae4..8d4e618fc6 100755
--- a/tools/mkinfo.pl
+++ b/tools/mkinfo.pl
@@ -48,6 +48,21 @@ sub mapscan {
48 return hex($end) - hex($start); 48 return hex($end) - hex($start);
49} 49}
50 50
51sub features {
52 my ($f)=@_;
53 my $feat;
54 open(M, "<$f");
55 while(<M>) {
56 chomp;
57 if($feat) {
58 $feat.=":";
59 }
60 $feat.=$_;
61 }
62 close(M);
63 return $feat;
64}
65
51if(!$output) { 66if(!$output) {
52 print "Usage: mkinfo.pl <filename>\n"; 67 print "Usage: mkinfo.pl <filename>\n";
53 exit; 68 exit;
@@ -70,6 +85,7 @@ printf O ("Binary: %s\n", $ENV{'BINARY'});
70printf O ("Binary size: %s\n", filesize($ENV{'BINARY'})); 85printf O ("Binary size: %s\n", filesize($ENV{'BINARY'}));
71printf O ("Actual size: %s\n", filesize("apps/rockbox.bin")); 86printf O ("Actual size: %s\n", filesize("apps/rockbox.bin"));
72printf O ("RAM usage: %s\n", mapscan("apps/rockbox.map")); 87printf O ("RAM usage: %s\n", mapscan("apps/rockbox.map"));
88printf O ("Features: %s\n", features("apps/features"));
73 89
74# Variables identifying tool and build environment details 90# Variables identifying tool and build environment details
75printf O ("gcc: %s\n", cmd1line("$ENV{'CC'} --version")); 91printf O ("gcc: %s\n", cmd1line("$ENV{'CC'} --version"));