gpt4 book ai didi

linux-kernel - buildroot - 如何更改内核版本字符串

转载 作者:行者123 更新时间:2023-12-04 23:25:56 25 4
gpt4 key购买 nike

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

这个字符串是在哪里创建的?

最佳答案

您有一个 .config ?在那里查找分配给 CONFIG_LOCALVERSION 的值.

要在内核版本中不指定本地版本,请删除 CONFIG_LOCALVERSION或者通过以 # 开始包含它的行来注释掉它.

默认值为:

#CONFIG_LOCALVERSION is not set

关于linux-kernel - buildroot - 如何更改内核版本字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12910969/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com