Skip to content

Commit

Permalink
Makefile: Make kernelrelease target work with M=
Browse files Browse the repository at this point in the history
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: 1cb86b6 ("kbuild: save overridden KERNELRELEASE in include/config/kernel.release")
Signed-off-by: Tzafrir Cohen <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
tzafrir-mellanox authored and masahir0y committed Mar 15, 2023
1 parent ee06a3e commit c753ccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c753ccb

Please sign in to comment.