build: Bundle the main .map files into the zip file

This covers the rockbox binary (or bootloader), which increases the zip
file by 60-80k depending on the target.

It currently *excludes* codecs and plugins, which can add over 1MB to
the zip file.  We can revisit this when/if we move to distributing 7zip
files instead.

Change-Id: Iec72dd3aa634ceca716975c13b7fa8707a485d30
This commit is contained in:
Solomon Peachy 2026-08-01 08:53:44 -04:00
parent 20f4f9539a
commit 2d2b03d314

View file

@ -692,6 +692,13 @@ sub buildzip {
# copy the .lua files
glob_mkdir("$temp_dir/rocks/viewers/lua/");
glob_copy('apps/plugins/lua/*.lua', "$temp_dir/rocks/viewers/lua/");
# finally, bundle map files for debug
glob_mkdir("$temp_dir/debug");
glob_copy("*.map", "$temp_dir/debug");
# codecs and plugin maps add up
# find(find_copyfile(qr/\.(map)/, abs_path("$temp_dir/debug")), 'lib');
# find(find_copyfile(qr/\.(map)/, abs_path("$temp_dir/debug")), 'apps/plugins');
}
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =