summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/driver/driver_modules.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-11 00:26:46 +0800
committerruki <[email protected]>2021-12-11 00:26:46 +0800
commit7908560287910061c942125db6f76884aa2e51b2 (patch)
treee3f7bc9cb71184c896c813f29a7275bcf7ea254c /xmake/rules/platform/linux/driver/driver_modules.lua
parente21d37159291bf7d3908307922ed71a5cf95e31e (diff)
remove builtin sysincludedirs
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, 3 insertions, 1 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua
index 0c1f8b9cd..a94319e8e 100644
--- a/xmake/rules/platform/linux/driver/driver_modules.lua
+++ b/xmake/rules/platform/linux/driver/driver_modules.lua
@@ -69,7 +69,9 @@ function load(target)
target:add("includedirs", path.join(includedir, "generated", "uapi"))
target:add("cflags", "-include " .. path.join(includedir, "linux", "kconfig.h"))
target:add("cflags", "-include " .. path.join(includedir, "linux", "compiler_types.h"))
- target:pkg("linux-headers"):set("includedirs", nil) -- TODO
+ -- we need disable includedirs from add_packages("linux-headers")
+ target:pkg("linux-headers"):set("includedirs", nil)
+ target:pkg("linux-headers"):set("sysincludedirs", nil)
-- add compilation flags
target:set("policy", "check.auto_ignore_flags", false)