The plus sign at the end of your version string is there as an indicator that the kernel was built from modified sources (that is, there were non-committed changes). This is also indicated by the comments in scripts/setlocalversion
.
To avoid the '+' being appended despite having a dirty working directory, simply set LOCALVERSION explicityly when running make
:
make LOCALVERSION=
You may also have to change the configuration option CONFIG_LOCALVERSION_AUTO
to n
in your kernel config (.config
) before building:
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" .config
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…