utsrelease.h 包含svn信息

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"

原文地址:https://www.cnblogs.com/zxc2man/p/4381383.html