summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/driver/driver_modules.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-29 22:30:38 +0800
committerruki <[email protected]>2021-12-29 22:30:38 +0800
commit70e03f735c6f27e5e0d97c2c0bbeb03d239a6574 (patch)
tree150506d5d79abad272ee56a7bda293244317e62b /xmake/rules/platform/linux/driver/driver_modules.lua
parente1ef31c2ab61b06a31adac981cfd67c873b33829 (diff)
improve toolchain and linux driver
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
-rw-r--r--xmake/rules/platform/linux/driver/driver_modules.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua
index 121f391ba..b9c48e163 100644
--- a/xmake/rules/platform/linux/driver/driver_modules.lua
+++ b/xmake/rules/platform/linux/driver/driver_modules.lua
@@ -192,6 +192,9 @@ function load(target)
-- we need only need binary kind, because we will rewrite on_link
target:set("kind", "binary")
target:set("extension", ".ko")
+end
+
+function config(target)
-- get and save linux-headers sdk
local linux_headers = _get_linux_headers_sdk(target)