How to change version string of the kernel?

后端 未结 1 1466
感动是毒
感动是毒 2021-01-02 01:06

I\'m very new to Linux and very new to building/compiling my own kernel. For starters, I\'m just trying to figure out how to change the version string of my kernel. For inst

相关标签:
1条回答
  • 2021-01-02 01:12

    At the top of the top-level Makefile, there are four lines

    VERSION = 3
    PATCHLEVEL = 18
    SUBLEVEL = 7
    EXTRAVERSION =
    

    The values are different for different kernel versions, of course. These are used to construct the version string, so changing them before building the kernel changes the version string of the kernel you build.

    Additionally, there's a configuration option CONFIG_LOCALVERSION, to be found under General Setup -> Local version - append to kernel release in make menuconfig that is appended to this.

    0 讨论(0)
提交回复
热议问题