Skip to content

Commit 3753af7

Browse files
committed
kbuild: fix single directory build
Commit f110e5a ("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: f110e5a ("kbuild: refactor single builds of *.ko") Reported-by: David Sterba <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Tested-by: David Sterba <[email protected]>
1 parent c67a85b commit 3753af7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,6 +1978,8 @@ endif
19781978

19791979
single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
19801980

1981+
KBUILD_MODULES := 1
1982+
19811983
endif
19821984

19831985
# Preset locale variables to speed up the build process. Limit locale

0 commit comments

Comments
 (0)