|
@@ -170,13 +170,13 @@ target("air10x")
|
|
|
io.writefile("$(buildir)/out/"..TARGET_NAME..".list", os.iorun(sdk_dir .. "bin/csky-elfabiv2-objdump -h -S $(buildir)/out/"..TARGET_NAME..".elf"))
|
|
io.writefile("$(buildir)/out/"..TARGET_NAME..".list", os.iorun(sdk_dir .. "bin/csky-elfabiv2-objdump -h -S $(buildir)/out/"..TARGET_NAME..".elf"))
|
|
|
io.writefile("$(buildir)/out/"..TARGET_NAME..".size", os.iorun(sdk_dir .. "bin/csky-elfabiv2-size $(buildir)/out/"..TARGET_NAME..".elf"))
|
|
io.writefile("$(buildir)/out/"..TARGET_NAME..".size", os.iorun(sdk_dir .. "bin/csky-elfabiv2-size $(buildir)/out/"..TARGET_NAME..".elf"))
|
|
|
io.cat("$(buildir)/out/"..TARGET_NAME..".size")
|
|
io.cat("$(buildir)/out/"..TARGET_NAME..".size")
|
|
|
- if TARGET_NAME == "AIR101" then
|
|
|
|
|
|
|
+ -- if TARGET_NAME == "AIR101" then
|
|
|
|
|
+ -- os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b $(buildir)/out/"..TARGET_NAME..".bin -fc 0 -it 1 -ih 8020000 -ra 8020400 -ua 8010000 -nh 0 -un 0 -vs G01.00.02 -o $(buildir)/out/"..TARGET_NAME.."")
|
|
|
|
|
+ -- os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b ./tools/xt804/xt804_secboot.bin -fc 0 -it 0 -ih 8002000 -ra 8002400 -ua 8010000 -nh 8020000 -un 0 -o ./tools/xt804/"..TARGET_NAME.."_secboot")
|
|
|
|
|
+ -- elseif TARGET_NAME == "AIR103" then
|
|
|
os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b $(buildir)/out/"..TARGET_NAME..".bin -fc 0 -it 1 -ih 8020000 -ra 8020400 -ua 8010000 -nh 0 -un 0 -vs G01.00.02 -o $(buildir)/out/"..TARGET_NAME.."")
|
|
os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b $(buildir)/out/"..TARGET_NAME..".bin -fc 0 -it 1 -ih 8020000 -ra 8020400 -ua 8010000 -nh 0 -un 0 -vs G01.00.02 -o $(buildir)/out/"..TARGET_NAME.."")
|
|
|
os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b ./tools/xt804/xt804_secboot.bin -fc 0 -it 0 -ih 8002000 -ra 8002400 -ua 8010000 -nh 8020000 -un 0 -o ./tools/xt804/"..TARGET_NAME.."_secboot")
|
|
os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b ./tools/xt804/xt804_secboot.bin -fc 0 -it 0 -ih 8002000 -ra 8002400 -ua 8010000 -nh 8020000 -un 0 -o ./tools/xt804/"..TARGET_NAME.."_secboot")
|
|
|
- elseif TARGET_NAME == "AIR103" then
|
|
|
|
|
- os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b $(buildir)/out/"..TARGET_NAME..".bin -fc 0 -it 1 -ih 8020000 -ra 8020400 -ua 8010000 -nh 0 -un 0 -vs G01.00.02 -o $(buildir)/out/"..TARGET_NAME.."")
|
|
|
|
|
- os.exec("./tools/xt804/wm_tool"..(is_plat("windows") and ".exe" or "").." -b ./tools/xt804/xt804_secboot.bin -fc 0 -it 0 -ih 8002000 -ra 8002400 -ua 8010000 -nh 8020000 -un 0 -o ./tools/xt804/"..TARGET_NAME.."_secboot")
|
|
|
|
|
- end
|
|
|
|
|
|
|
+ -- end
|
|
|
os.cp("./tools/xt804/"..TARGET_NAME.."_secboot.img", "$(buildir)/out/"..TARGET_NAME..".fls")
|
|
os.cp("./tools/xt804/"..TARGET_NAME.."_secboot.img", "$(buildir)/out/"..TARGET_NAME..".fls")
|
|
|
local img = io.readfile("$(buildir)/out/"..TARGET_NAME..".img", {encoding = "binary"})
|
|
local img = io.readfile("$(buildir)/out/"..TARGET_NAME..".img", {encoding = "binary"})
|
|
|
local fls = io.open("$(buildir)/out/"..TARGET_NAME..".fls", "a+")
|
|
local fls = io.open("$(buildir)/out/"..TARGET_NAME..".fls", "a+")
|
|
@@ -205,7 +205,7 @@ target("air10x")
|
|
|
end
|
|
end
|
|
|
if path7z then
|
|
if path7z then
|
|
|
os.cp("./soc_tools/"..TARGET_NAME..".json", "./soc_tools/info.json")
|
|
os.cp("./soc_tools/"..TARGET_NAME..".json", "./soc_tools/info.json")
|
|
|
- os.exec(path7z.." a LuatOS-SoC_"..AIR10X_VERSION.."_"..TARGET_NAME..".7z -pLuat!1802s# ./soc_tools/air101_flash.exe ./soc_tools/info.json ./soc_tools/"..TARGET_NAME..".fls")
|
|
|
|
|
|
|
+ os.exec(path7z.." a LuatOS-SoC_"..AIR10X_VERSION.."_"..TARGET_NAME..".7z ./soc_tools/air101_flash.exe ./soc_tools/info.json ./soc_tools/"..TARGET_NAME..".fls")
|
|
|
os.mv("LuatOS-SoC_"..AIR10X_VERSION.."_"..TARGET_NAME..".7z", "$(buildir)/out/LuatOS-SoC_"..AIR10X_VERSION.."_"..TARGET_NAME..".soc")
|
|
os.mv("LuatOS-SoC_"..AIR10X_VERSION.."_"..TARGET_NAME..".7z", "$(buildir)/out/LuatOS-SoC_"..AIR10X_VERSION.."_"..TARGET_NAME..".soc")
|
|
|
os.rm("./soc_tools/info.json")
|
|
os.rm("./soc_tools/info.json")
|
|
|
os.rm("./soc_tools/"..TARGET_NAME..".fls")
|
|
os.rm("./soc_tools/"..TARGET_NAME..".fls")
|