diff options
| author | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
|---|---|---|
| committer | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
| commit | f75224a8435d0eb9cdda79f8bc571eeef25a8e33 (patch) | |
| tree | 278e00b17c8f5558df1c1a21f1204078ea62a58f /xmake/rules/platform/linux/driver/driver_modules.lua | |
| parent | ca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff) | |
Fix grammar
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
| -rw-r--r-- | xmake/rules/platform/linux/driver/driver_modules.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua index 09b4c72a0..67fbb8d22 100644 --- a/xmake/rules/platform/linux/driver/driver_modules.lua +++ b/xmake/rules/platform/linux/driver/driver_modules.lua @@ -194,7 +194,7 @@ module_exit(hello_exit); end function load(target) - -- we need only need binary kind, because we will rewrite on_link + -- we only need binary kind, because we will rewrite on_link target:set("kind", "binary") target:set("extension", ".ko") end @@ -213,7 +213,7 @@ function config(target) assert(not target:rule(rulename), "target(%s) is linux driver module, it need not rule(%s)!", target:name(), rulename) end - -- we need disable includedirs from add_packages("linux-headers") + -- we need to disable includedirs from add_packages("linux-headers") if target:pkg("linux-headers") then target:pkg("linux-headers"):set("includedirs", nil) target:pkg("linux-headers"):set("sysincludedirs", nil) @@ -272,7 +272,7 @@ function link(target, opt) io.writefile(targetfile_mod, table.concat(objectfiles, "\n") .. "\n\n") -- generate .sourcename.o.cmd - -- we need only touch an empty file, otherwise modpost command will raise error. + -- we only need to touch an empty file, otherwise modpost command will raise error. for _, objectfile in ipairs(objectfiles) do local objectdir = path.directory(objectfile) local objectname = path.filename(objectfile) |
