Linux kernel images are being built with "-dirty" on the end of the version string:
1. add .scmversion file
content is the version name
2. compile append flag : make -j2 LOCALVERSION="-customstring"
to get the custom string
Linux/U-boot version with "-dirty"
原文:https://www.cnblogs.com/hutiann/p/14377240.html