summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/driver/driver_modules.lua
diff options
context:
space:
mode:
authorxi4oyu <[email protected]>2023-11-10 20:58:43 +0800
committerxi4oyu <[email protected]>2023-11-10 20:58:43 +0800
commit10da5140d816dd5d653c059967420c53ef0557bc (patch)
treede700b59dcd90c4ae8315dc7275cefd4b902ed2f /xmake/rules/platform/linux/driver/driver_modules.lua
parent8eefa03ee2cadf0d89126e18173c1e179bebc3c5 (diff)
fix modpost parameter of linux driver rule
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
-rw-r--r--xmake/rules/platform/linux/driver/driver_modules.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua
index 845404504..25acc6581 100644
--- a/xmake/rules/platform/linux/driver/driver_modules.lua
+++ b/xmake/rules/platform/linux/driver/driver_modules.lua
@@ -283,9 +283,9 @@ function link(target, opt)
-- generate target.mod.c
local orderfile = path.join(path.directory(targetfile_o), "modules.order")
local symversfile = path.join(path.directory(targetfile_o), "Module.symvers")
- argv = {"-m", "-a", "-o", symversfile, "-e", "-N", "-w", "-T", "-"}
+ argv = {"-m", "-a", "-o", symversfile, "-e", "-N", "-w", "-T", orderfile}
io.writefile(orderfile, targetfile_o .. "\n")
- os.vrunv(modpost, argv, {stdin = orderfile})
+ os.vrunv(modpost, argv)
-- compile target.mod.c
local targetfile_mod_c = targetfile_o:gsub("%.o$", ".mod.c")