Search notes:

include/generated/

include/generated is created when the kernel is made and contains the configuration files that are used for building the kernel. (Compare with include/config/)
A prominent file in this directory is autoconf.h.
utsrelease.h defines the macro UTS_RELEASE (for example to the value "6.5.0-rc7-00018-g89bf6209cad6")
utsversion.h defines the macro UTS_VERSION (for example to the value "#2 SMP PREEMPT_DYNAMIC Wed Aug 23 12:35:17 CEST 2023")
uapi/linux/version.h defines the macros LINUX_VERSION_CODE, LINUX_VERSION_MAJOR, LINUX_VERSION_PATCHLEVEL and LINUX_VERSION_SUBLEVEL.

See also

scripts/kconfig/conf --syncconfig

Index