如何更改Linux内核版本

如何更改Linux内核版本

我已经下载并解压了 Linux 内核。内核源文件中的哪些文件负责在 uname 中显示版本字符串?我想将版本设置为 10,不带点 10.0.5

# uname -r
Linux 10

答案1

它在顶层进行了描述Makefile

例如,从这里,

VERSION = 4
PATCHLEVEL = 5
SUBLEVEL = 0
EXTRAVERSION = -rc6
NAME = Blurry Fish Butt

# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading this file.

相关内容