Makefile
in the root of the Linux kernel source tree is essentially used to build vmlinux
(the resident kernel image), and
Documentation/output
from files under Documentation/
)
Makefile
includes arch/$SRCARCH/Makefile
which supplies architecture-specific information to the top Makefile
. Makefile
defines a few version related variables: VERSION = 6 PATCHLEVEL = 5 SUBLEVEL = 0 EXTRAVERSION = -rc7 NAME = Hurr durr I'ma ninja sloth
$ make -s kernelversion 6.5.0-rc7
include/config/kernel.release
(if it exists) and include/generated/uapi/linux/version.h
(if it exists).