Re: [PATCH] kbuild: fix single directory build

From: David Sterba
Date: Fri Oct 14 2022 - 17:19:02 EST


On Sat, Oct 15, 2022 at 05:18:11AM +0900, Masahiro Yamada wrote:
> 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@xxxxxxx>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>

Now it works, thanks.

Tested-by: David Sterba <dsterba@xxxxxxxx>