首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Linux内核版本号中的+是什么意思?

问Linux内核版本号中的+是什么意思?
EN

Stack Overflow用户
提问于 2021-07-25 07:51:03
回答 1查看 62关注 0票数 2

我的NAS上的Linux内核将自身报告为版本4.19.165+。

代码语言:javascript
复制
/boot/bzImage: Linux kernel x86 boot executable bzImage, version 4.19.165+ (root@developer) #56 SMP Fri Apr 2 17:16:25 CST 2021, RO-rootFS, swap_dev 0x28, Normal VGA

+在Linux内核版本号中是什么意思?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-07-25 10:27:33

在构建时负责生成本地版本字符串的shell脚本中对此进行了描述,该脚本为scripts/setlocalversion

代码语言:javascript
复制
# scm version string if not at a tagged commit
if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
    # full scm version string
    res="$res$(scm_version)"
else
    # append a plus sign if the repository is not in a clean
    # annotated or signed tagged state (as git describe only
    # looks at signed or annotated tags - git tag -a/-s) and
    # LOCALVERSION= is not specified
    if test "${LOCALVERSION+set}" != "set"; then
        scm=$(scm_version --short)
        res="$res${scm:++}"
    fi
fi

因此,这很可能意味着在构建Git存储库时,脚本认为它是“脏的”,即:没有签出已签名或带注释的标记(有关含义,请参阅git-tag documentation )。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68514583

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档