Search notes:

init/version.c

Defines linux_banner as "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";, printed in init/main.c (start_kernel).
The values of the macros UTS_RELEASE, LINUX_COMPILE_BY etc. are defined in include/generated/compile.h.

linux_proc_banner

const char linux_proc_banner[] =
        "%s version %s"
        " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
        " (" LINUX_COMPILER ") %s\n";
A symbol linux_banner is defined in init/version-timestamp.c which is included (#include) from init/version.c.

TODO

The file also evaluates macros BUILD_SALT and BUILT_LTO_INFO.

Index