buildroot - how to change kernel version string

后端 未结 2 610
既然无缘
既然无缘 2021-01-13 11:47

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 e

2条回答
  •  情歌与酒
    2021-01-13 12:44

    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.

提交回复
热议问题