summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-11 16:00:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-11 16:00:20 +0000
commita8b4c2d73aecf839ac0684f4b988e3c1d42f96ff (patch)
tree1034d04217ebb5a1dd32ba95c997f21ec2a44e48 /tools
parent8a417edb26a0f0a0149391af4e0d5e7e21abb5c3 (diff)
downloadrockbox-a8b4c2d73aecf839ac0684f4b988e3c1d42f96ff.tar.gz
rockbox-a8b4c2d73aecf839ac0684f4b988e3c1d42f96ff.zip
Include the features of this rockbox, target and version in the
rockbox-info.txt file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16054 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-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 {
return hex($end) - hex($start);
}
+sub features {
+ my ($f)=@_;
+ my $feat;
+ open(M, "<$f");
+ while(<M>) {
+ chomp;
+ if($feat) {
+ $feat.=":";
+ }
+ $feat.=$_;
+ }
+ close(M);
+ return $feat;
+}
+
if(!$output) {
print "Usage: mkinfo.pl <filename>\n";
exit;
@@ -70,6 +85,7 @@ 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"));
# Variables identifying tool and build environment details
printf O ("gcc: %s\n", cmd1line("$ENV{'CC'} --version"));