summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-10-15 05:18:11 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-10-17 02:03:52 +0900
commit3753af778dd9d0d5199d6a7d01b0ead33135d095 (patch)
treec2129d3d4a9e426ff7fee5bfe139a0c28e8916bc
parentc67a85bee78db74c6889a5ca645c3763ad23d863 (diff)
downloadlinux-stable-3753af778dd9d0d5199d6a7d01b0ead33135d095.tar.gz
linux-stable-3753af778dd9d0d5199d6a7d01b0ead33135d095.tar.bz2
linux-stable-3753af778dd9d0d5199d6a7d01b0ead33135d095.zip
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 <dsterba@suse.cz> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: David Sterba <dsterba@suse.com>
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 85a63a1d29b3..48a005fc69ca 100644
--- a/Makefile
+++ b/Makefile
@@ -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