Browse Source

add:去掉debug编译逻辑,已不需要

Dozingfiretruck 4 years ago
parent
commit
93c6102f82
1 changed files with 16 additions and 16 deletions
  1. 16 16
      xmake.lua

+ 16 - 16
xmake.lua

@@ -332,21 +332,21 @@ target("air10x")
         local img = io.readfile("$(buildir)/out/"..TARGET_NAME..".img", {encoding = "binary"})
         local fls = io.open("$(buildir)/out/"..TARGET_NAME..".fls", "a+")
         if fls then fls:write(img) fls:close() end
-        if is_mode("debug") then
-            os.cd("./mklfs")
-            os.exec("./luac_536_32bits.exe -s -o ./disk/main.luac ../main.lua")
-            os.exec("./mklfs.exe -size 112")
-            os.cd("../")
-            os.mv("./mklfs/disk.fs", "$(buildir)/out/script.bin")
-            if TARGET_NAME == "AIR101" then
-                os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b  $(buildir)/out/script.bin -it 1 -fc 0 -ih 20008000 -ra 81E0000 -ua 0 -nh 0  -un 0 -o $(buildir)/out/script")
-            else
-                os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b  $(buildir)/out/script.bin -it 1 -fc 0 -ih 20008000 -ra 80E0000 -ua 0 -nh 0  -un 0 -o $(buildir)/out/script")
-            end
-            local script = io.readfile("$(buildir)/out/script.img", {encoding = "binary"})
-            local fls = io.open("$(buildir)/out/"..TARGET_NAME..".fls", "a+")
-            if fls then fls:write(script) fls:close() end
-        elseif is_mode("release") then
+        -- if is_mode("debug") then
+        --     os.cd("./mklfs")
+        --     os.exec("./luac_536_32bits.exe -s -o ./disk/main.luac ../main.lua")
+        --     os.exec("./mklfs.exe -size 112")
+        --     os.cd("../")
+        --     os.mv("./mklfs/disk.fs", "$(buildir)/out/script.bin")
+        --     if TARGET_NAME == "AIR101" then
+        --         os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b  $(buildir)/out/script.bin -it 1 -fc 0 -ih 20008000 -ra 81E0000 -ua 0 -nh 0  -un 0 -o $(buildir)/out/script")
+        --     else
+        --         os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b  $(buildir)/out/script.bin -it 1 -fc 0 -ih 20008000 -ra 80E0000 -ua 0 -nh 0  -un 0 -o $(buildir)/out/script")
+        --     end
+        --     local script = io.readfile("$(buildir)/out/script.img", {encoding = "binary"})
+        --     local fls = io.open("$(buildir)/out/"..TARGET_NAME..".fls", "a+")
+        --     if fls then fls:write(script) fls:close() end
+        -- elseif is_mode("release") then
             import("lib.detect.find_file")
             os.cp("$(buildir)/out/"..TARGET_NAME..".fls", "./soc_tools/"..TARGET_NAME..".fls")
             local path7z = "7z.exe"
@@ -385,7 +385,7 @@ target("air10x")
                 return
             end
             
-        end
+        -- end
         os.rm("./ld/air101_103.ld")
         -- os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b $(buildir)/out/AIR101.img -fc 1 -it 1 -ih 80D0000 -ra 80D0400 -ua 8010000 -nh 0 -un 0 -vs G01.00.02 -o $(buildir)/out/AIR101")
         -- os.mv("$(buildir)/out/AIR101_gz.img", "$(buildir)/out/AIR101_ota.img")