Ver código fonte

add: 将map文件打包进soc文件,方便排查客户的疑难bug

Wendal Chen 3 anos atrás
pai
commit
3cc8119246
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      xmake.lua

+ 2 - 1
xmake.lua

@@ -432,7 +432,8 @@ end
             os.cp("./project/air105/info.json", "$(buildir)/out/info.json")
             os.cp("./project/air105/soc_download.exe", "$(buildir)/out/soc_download.exe")
             os.cd("$(buildir)/out")
-            os.run(path7z.." a LuatOS-SoC_"..AIR105_VERSION.."_AIR105.soc info.json bootloader.bin app.bin soc_download.exe")
+            os.run(path7z .. " a -mx=9 maps.7z app.map bootloader.map")
+            os.run(path7z.." a LuatOS-SoC_"..AIR105_VERSION.."_AIR105.soc info.json bootloader.bin app.bin soc_download.exe maps.7z")
             os.rm("$(buildir)/out/info.json")
             os.rm("$(buildir)/out/soc_download.exe")
         else