]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit878f23eb4527a4b18993300f3cafe88f41d60035
treec2129d3d4a9e426ff7fee5bfe139a0c28e8916bc
parentc344c76b77d10248ebfd6d9da751fd8195d8391b
kbuild: fix single directory build

Commit 9dc90593de8f ("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: 9dc90593de8f ("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