From 2d2b03d314455112afa7dd8d369874ae0233a3e1 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 1 Aug 2026 08:53:44 -0400 Subject: [PATCH] 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 --- tools/buildzip.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/buildzip.pl b/tools/buildzip.pl index e10396dac7..0613be1484 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -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) =