utsrelease.h是一个自动生成的文件,没有办法修改,但这个数据是根据Makefile和.config的内容进行生成的,通过修改这两个文件的内容,可以改变!
/usr/src/linux/Makefile:
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 39
EXTRAVERSION = -gentoo-r3
......
/usr/src/linux/.config:
CONFIG_LOCALVERSION="-debug"
然后,执行make时:
localhost linux # make
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
对应的utsrelease.h的内容为:
#define UTS_RELEASE "2.6.39-gentoo-r3-debug"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-08-17
  • 2021-12-24
猜你喜欢
  • 2021-06-14
  • 2021-07-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-10-17
相关资源
相似解决方案