From: Tzafrir Cohen Date: Tue, 14 Mar 2023 13:02:48 +0000 (+0200) Subject: Makefile: Make kernelrelease target work with M= X-Git-Tag: v6.6.17~5285^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c753ccb2629f536b8c4feae5c223d5873c814d23;p=platform%2Fkernel%2Flinux-rpi.git Makefile: Make kernelrelease target work with M= That commit required the use of filechk_kernel.release for the kernelrelease Makefile target. It is currently only being set when KBUILD_EXTMOD is not set. Make sure it is set in that case as well. Fixes: 1cb86b6c3136 ("kbuild: save overridden KERNELRELEASE in include/config/kernel.release") Signed-off-by: Tzafrir Cohen Signed-off-by: Masahiro Yamada --- diff --git a/Makefile b/Makefile index d7bd0eb..d0a0ba8 100644 --- a/Makefile +++ b/Makefile @@ -1886,6 +1886,8 @@ endif else # KBUILD_EXTMOD +filechk_kernel.release = echo $(KERNELRELEASE) + ### # External module support. # When building external modules the kernel used as basis is considered