Nie dodawaj „+” do wersji jądra Linuksa

Buduję jądro Linuksa, jeśli moje jądro pod git, a następnie wersja jądra za każdym razem to:

Image Name:   Linux-2.6.39+

Jeśli nie używam git, wszystko jest w porządku bez żadnego plusa na końcu.

Wiem, że to robią skrypty / skrypt setlocalversion:

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

Więc możliwe jest, że bez zmian kodu powiedzmy zbudować system, który nie wymaga dodawania „+” na końcu linii wersji?

questionAnswers(4)

yourAnswerToTheQuestion