From f467d71abc40d4fee6e896d7a0b8e4f5be7e16db Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 17 Jul 2026 23:49:52 +0800 Subject: add batchcmds:call and transform for bin2obj/c --- xmake/rules/utils/bin2obj/xmake.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'xmake/rules/utils/bin2obj/xmake.lua') diff --git a/xmake/rules/utils/bin2obj/xmake.lua b/xmake/rules/utils/bin2obj/xmake.lua index 760b9d536..58ec87a90 100644 --- a/xmake/rules/utils/bin2obj/xmake.lua +++ b/xmake/rules/utils/bin2obj/xmake.lua @@ -24,15 +24,9 @@ rule("utils.bin2obj") on_buildcmd_file(function (target, batchcmds, sourcefile_bin, opt) import("rules.utils.bin2obj.utils", {alias = "bin2obj_utils", rootdir = os.programdir()}) - -- get zeroend (default: false) - -- check file-level config first, then rule-level config - local fileconfig = target:fileconfig(sourcefile_bin) - local zeroend = (fileconfig and fileconfig.zeroend) or target:extraconf("rules", "utils.bin2obj", "zeroend") or false - -- convert binary file to object file local objectfile = bin2obj_utils.generate_objectfile(target, batchcmds, sourcefile_bin, { progress = opt.progress, - zeroend = zeroend }) -- add deps -- cgit v1.3.1