diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-14 22:18:11 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-16 19:03:52 +0200 |
commit | 3753af778dd9d0d5199d6a7d01b0ead33135d095 (patch) | |
tree | c2129d3d4a9e426ff7fee5bfe139a0c28e8916bc /Makefile | |
parent | kbuild: add -fno-discard-value-names to cmd_cc_ll_c (diff) | |
download | linux-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 '')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |