summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTzafrir Cohen <nvidia@cohens.org.il>2023-03-14 16:02:48 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-03-15 09:14:59 +0300
commitc753ccb2629f536b8c4feae5c223d5873c814d23 (patch)
treee377b9e28cb66f3424042cca03f7bde895a6fb2c /Makefile
parentee06a3ef7e3cddb62b90ac40aa661d3c12f7cabc (diff)
downloadlinux-c753ccb2629f536b8c4feae5c223d5873c814d23.tar.xz
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 <nvidia@cohens.org.il> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d7bd0eb9b346..d0a0ba8e5a2e 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