summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-10-14 22:18:11 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2022-10-16 19:03:52 +0200
commit3753af778dd9d0d5199d6a7d01b0ead33135d095 (patch)
treec2129d3d4a9e426ff7fee5bfe139a0c28e8916bc /Makefile
parentkbuild: add -fno-discard-value-names to cmd_cc_ll_c (diff)
downloadlinux-3753af778dd9d0d5199d6a7d01b0ead33135d095.tar.xz
linux-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>
Diffstat (limited to 'Makefile')
-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