diff options
| author | ruki <[email protected]> | 2022-01-02 16:20:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-01-02 16:20:03 +0800 |
| commit | 2027d01c63ca2c341847664c8abf3ff2cb74085e (patch) | |
| tree | 02956d9046a9e9a09ceec4069a43ec4e05846431 /xmake/rules/platform/linux/driver/driver_modules.lua | |
| parent | 57c342168e37e909741012bb03adfb18f91a10d5 (diff) | |
improve driver modules
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
| -rw-r--r-- | xmake/rules/platform/linux/driver/driver_modules.lua | 2 |
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 8d46c8c55..e9fd394e4 100644 --- a/xmake/rules/platform/linux/driver/driver_modules.lua +++ b/xmake/rules/platform/linux/driver/driver_modules.lua @@ -126,7 +126,7 @@ module_init(hello_init); module_exit(hello_exit); ]]) local argv = {"-C", sdkdir, "V=1", "M=" .. tmpdir, "modules"} - if target:is_plat("cross") then + if not target:is_plat(os.subhost()) then -- e.g. $(MAKE) -C $(KERN_DIR) V=1 ARCH=arm64 CROSS_COMPILE=/mnt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- M=$(PWD) modules local arch if target:is_arch("arm", "armv7") then |
