kbuild: fix single directory build
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 14 Oct 2022 20:18:11 +0000 (05:18 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 16 Oct 2022 17:03:52 +0000 (02:03 +0900)
commit3753af778dd9d0d5199d6a7d01b0ead33135d095
treec2129d3d4a9e426ff7fee5bfe139a0c28e8916bc
parentc67a85bee78db74c6889a5ca645c3763ad23d863
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>
Makefile