Commit 3753af77 authored by Masahiro Yamada's avatar Masahiro Yamada

kbuild: fix single directory build

Commit f110e5a2 ("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: f110e5a2 ("kbuild: refactor single builds of *.ko")
Reported-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Tested-by: default avatarDavid Sterba <dsterba@suse.com>
parent c67a85be
...@@ -1978,6 +1978,8 @@ endif ...@@ -1978,6 +1978,8 @@ endif
single-goals := $(addprefix $(build-dir)/, $(single-no-ko)) single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
KBUILD_MODULES := 1
endif endif
# Preset locale variables to speed up the build process. Limit locale # Preset locale variables to speed up the build process. Limit locale
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment