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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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