From: Masahiro Yamada Date: Fri, 14 Oct 2022 20:18:11 +0000 (+0900) Subject: kbuild: fix single directory build X-Git-Tag: v6.1-rc5~152^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3753af778dd9d0d5199d6a7d01b0ead33135d095;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Masahiro Yamada Tested-by: David Sterba --- diff --git a/Makefile b/Makefile index 85a63a1..48a005f 100644 --- a/Makefile +++ b/Makefile @@ -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