]> 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)
commit4d4633ae3d235d3508f34440458aa9cdccd0ecfe
treec2129d3d4a9e426ff7fee5bfe139a0c28e8916bc
parent9943ab57fafb2048a0ab1054b61180d3832d7c34
kbuild: fix single directory build

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