3

I have downloaded and unzipped the Linux Kernel. What file(s) in kernel source file(s) are responsible for displaying Version string ??

Thanks !

newprint
  • 6,936
  • 13
  • 67
  • 109
  • What are you really attempting to achieve. within make menuconfig there is the option to append a string to the version. This is the correct way of changing 'tagging' your own build. – Alistair Feb 17 '13 at 20:25
  • @Alistair I am trying to build kernel with my own version string, not through `make menuconfig` – newprint Feb 17 '13 at 20:30

1 Answers1

5

It's in the first four lines of the top level Makefile.

Andy Ross
  • 11,699
  • 1
  • 34
  • 31
  • And other files or env. variables - e.g. `CONFIG_LOCALVERSION` in .config and `$KBUILD_BUILD_TIMESTAMP` env. variable, see http://stackoverflow.com/questions/19362262/how-to-modify-the-linux-kernel-to-change-the-version-string-that-uname-returns – pevik Feb 10 '14 at 15:20