buildroot - how to change kernel version string

痴心易碎 提交于 2019-12-05 17:30:57

You have a .config? Look in there for the value assigned to 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 #.

The default shall be:

#CONFIG_LOCALVERSION is not set

In this case the main reason was : scripts/setlocalversion line >170:

# 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

I commented this part out.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!