diff options
| author | ruki <[email protected]> | 2022-01-05 22:13:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-05 22:13:43 +0800 |
| commit | b02472adabaeae71c2ee1d07de5b326960e49993 (patch) | |
| tree | d7e6853db5e04763bc76415300e63c62c9828925 /xmake/rules/platform/linux/driver/driver_modules.lua | |
| parent | 1d3a6b0e2b4f91d376899c11390f90c7f259b0ca (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 | 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 69a51d80d..a333f5f6e 100644 --- a/xmake/rules/platform/linux/driver/driver_modules.lua +++ b/xmake/rules/platform/linux/driver/driver_modules.lua @@ -115,7 +115,7 @@ module_exit(hello_exit); local has_cflag = false if cflag:startswith("-f") or cflag:startswith("-m") or (cflag:startswith("-W") and not cflag:startswith("-Wp,-MMD,") and not cflag:startswith("-Wp,-MD,")) - or (cflag:startswith("-D") and not cflag:startswith("-DKBUILD_")) then + or (cflag:startswith("-D") and not cflag:find("KBUILD_MODNAME=") not cflag:find("KBUILD_BASENAME=")) then has_cflag = true elseif cflag == "-I" or cflag == "-isystem" or cflag == "-include" then include_cflag = cflag |
