diff options
| author | ruki <[email protected]> | 2021-12-24 17:55:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-24 17:55:50 +0800 |
| commit | 0d82f76c3bd485409592b30c98be6b4f43b01a75 (patch) | |
| tree | c82af441daea7edf149916d80b09f7464b500af9 /xmake/rules/platform/linux/driver/driver_modules.lua | |
| parent | fc2d6099553595f692864a82c8037fe074ac64c7 (diff) | |
Update driver_modules.lua
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
| -rw-r--r-- | xmake/rules/platform/linux/driver/driver_modules.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua index eeed180ad..c22d92cc0 100644 --- a/xmake/rules/platform/linux/driver/driver_modules.lua +++ b/xmake/rules/platform/linux/driver/driver_modules.lua @@ -130,6 +130,10 @@ module_exit(hello_exit); arch = "arm" elseif target:is_arch("arm64", "arm64-v8a") then arch = "arm64" + elseif target:is_arch("mips") then + arch = "mips" + elseif target:is_arch("ppc", "powerpc") then + arch = "powerpc" end assert(arch, "unknown arch(%s)!", target:arch()) local cc = target:tool("cc") @@ -211,6 +215,10 @@ function load(target) archsubdir = path.join(sdkdir, "arch", "arm") elseif target:is_arch("arm64", "arm64-v8a") then archsubdir = path.join(sdkdir, "arch", "arm64") + elseif target:is_arch("mips") then + archsubdir = path.join(sdkdir, "arch", "mips") + elseif target:is_arch("ppc", "powerpc") then + archsubdir = path.join(sdkdir, "arch", "powerpc") else raise("rule(platform.linux.driver): unsupported arch(%s)!", target:arch()) end |
