summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/driver/driver_modules.lua
diff options
context:
space:
mode:
authorluna <[email protected]>2022-09-28 20:31:49 +0800
committerluna <[email protected]>2022-09-28 20:31:49 +0800
commit9edef99a1d49ddf1a315da77ae138529c561881e (patch)
tree165575a1321ac9b73c961637ca2e526ed4c17619 /xmake/rules/platform/linux/driver/driver_modules.lua
parent37ae24cdad9f7ab1b1af0f503ae7e3457d4b3a2b (diff)
Cache key add arch
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
-rw-r--r--xmake/rules/platform/linux/driver/driver_modules.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua
index 45f77d3a0..1771341d2 100644
--- a/xmake/rules/platform/linux/driver/driver_modules.lua
+++ b/xmake/rules/platform/linux/driver/driver_modules.lua
@@ -53,7 +53,7 @@ end
-- get cflags from make
function _get_cflags_from_make(target, sdkdir)
- local key = sdkdir
+ local key = sdkdir .. target:arch()
local cflags = memcache.get2("linux.driver", key, "cflags")
local ldflags_o = memcache.get2("linux.driver", key, "ldflags_o")
local ldflags_ko = memcache.get2("linux.driver", key, "ldflags_ko")