Skip to contentSkip to conversation

kbuild: fix single directory build

PATCH In review Masahiro Yamada 2 participants 2 messages Oct 14, 2022 Kbuild

lore
Share & tools
lore
#0 lore raw

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")

---

 Makefile | 2 ++
 1 file changed, 2 insertions(+)
Makefile +2 -0
index 85a63a1d29b3..48a005fc69ca 100644
@@ -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
Tested-by on v1 1/1
#1 lore raw
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")

Now it works, thanks.