diff options
| author | ruki <[email protected]> | 2022-09-28 20:50:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-28 20:50:46 +0800 |
| commit | 0d2b60e8732d531a1e75e0a298b8235f1b3cc0da (patch) | |
| tree | 0c208d02b10022eb66e497e54d334c661a2494b3 | |
| parent | 26c5d075ccd201ba9a8b4e57a80af05d0220e917 (diff) | |
| parent | 9edef99a1d49ddf1a315da77ae138529c561881e (diff) | |
Merge pull request #2881 from Someonesz/linux-driver
Fix Linux driver multi-target build error
| -rw-r--r-- | xmake/rules/platform/linux/driver/driver_modules.lua | 4 |
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 3dae19523..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 = target:plat() .. target:arch() + 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") @@ -179,6 +179,8 @@ module_exit(hello_exit); end os.tryrm(tmpdir) memcache.set2("linux.driver", key, "cflags", cflags or false) + memcache.set2("linux.driver", key, "ldflags_o", ldflags_o or false) + memcache.set2("linux.driver", key, "ldflags_ko", ldflags_ko or false) end return cflags or nil, ldflags_o or nil, ldflags_ko or nil end |
