tools: Update mkinfo to handle the echor1 target's symbols

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Mon, 27 Jul 2026 20:28:48 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 5f129ef29936be3f0145f3efabf6e14098d9abc5
Author: Solomon Peachy <[email protected]>
Date:   Mon Jul 27 20:24:57 2026 -0400

    tools:  Update mkinfo to handle the echor1 target's symbols
    
    With this change, RAM size is computed (and reported) properly.
    
    Change-Id: I4ead8f677c69b78141b137e05d9da942dd4d8138

diff --git a/tools/mkinfo.pl b/tools/mkinfo.pl
index 463a10005e..0e85b57415 100755
--- a/tools/mkinfo.pl
+++ b/tools/mkinfo.pl
@@ -48,11 +48,11 @@ sub mapscan {
     my $start, $end;
     open(M, "<$f");
     while(<M>) {
-        if($_ =~ / +0x([0-9a-f]+) *_end = \./) {
+        if($_ =~ / +0x([0-9a-f]+) *_(bss)?end = \./) {
             $end = $1;
             last;
         }
-        elsif($_ =~ / +0x([0-9a-f]+) *_loadaddress = \./) {
+        elsif($_ =~ / +0x([0-9a-f]+) *_?loadaddress = \./) {
             $start = $1;
         }
         elsif($_ =~ / +0x([0-9a-f]+) *_dramcopystart = \./) {
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs