buildroot-如何更改内核版本字符串 [英] buildroot - how to change kernel version string

查看:318
本文介绍了buildroot-如何更改内核版本字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有buildroot和Armstrong linux(Linux4sam)的SAM9G25 EK板上工作. 我的脚本正在创建linux版本"2.6.39+",而这个"+"令人困惑(/lib/modules文件夹等).我要删除它.我发现只有两个文件.uImage.cmd和kernel.release包含此字符串,但是都生成了.

I work on SAM9G25 EK board with buildroot and Armstrong linux (Linux4sam). My script is creating linux version "2.6.39+" and this "+" is confusing (/lib/modules folder etc.). I want to remove it. I found only two files .uImage.cmd, and kernel.release that contains this string, but both are generated.

此字符串在哪里创建?

推荐答案

您有.config吗?在此处查找分配给CONFIG_LOCALVERSION的值.

You have a .config? Look in there for the value assigned to CONFIG_LOCALVERSION.

要在内核发行版中未指定本地版本,请删除CONFIG_LOCALVERSION或通过用#开始包含它的行将其注释掉.

To have no local version specifed in the kernel's release, either remove CONFIG_LOCALVERSION or comment it out by starting the line containing it by a #.

默认值为:

#CONFIG_LOCALVERSION is not set

这篇关于buildroot-如何更改内核版本字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆