kbuild: fix single directory build
PATCH 1/1 kbuild: fix single directory build
Commit f110e5a250e3 ("kbuild: refactor single builds of *.ko") was wrong.
KBUILD_MODULES _is_ needed for single builds.
Otherwise, "make foo/bar/baz/" does not build module objects at all.
Fixes f110e5a250e3 ("kbuild: refactor single builds of *.ko")
Reported-by David Sterba <[email protected]>
Signed-off-by Masahiro Yamada <[email protected]>
---
Makefile | 2 ++ 1 file changed, 2 insertions(+)
Makefile +2 -0
@@ -1978,6 +1978,8 @@ endif single-goals := $(addprefix $(build-dir)/, $(single-no-ko)) +KBUILD_MODULES := 1 + endif # Preset locale variables to speed up the build process. Limit locale
Signature · 1 line
2.34.1
Quoted 9 lines · Masahiro Yamada
Commit
f110e5a250e3("kbuild: refactor single builds of *.ko") was wrong.
KBUILD_MODULES_is_ needed for single builds.Otherwise, "make foo/bar/baz/" does not build module objects at all.
Fixes f110e5a250e3 ("kbuild: refactor single builds of *.ko")Reported-by David Sterba <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>
Now it works, thanks.
Tested-by David Sterba <[email protected]>