diff options
Diffstat (limited to 'classes/fsl-kernel-localversion.bbclass')
| -rw-r--r-- | classes/fsl-kernel-localversion.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass index 98fcfa056..f7e0908fd 100644 --- a/classes/fsl-kernel-localversion.bbclass +++ b/classes/fsl-kernel-localversion.bbclass | |||
| @@ -25,8 +25,9 @@ do_kernel_localversion() { | |||
| 25 | 25 | ||
| 26 | if [ "${SCMVERSION}" = "y" ]; then | 26 | if [ "${SCMVERSION}" = "y" ]; then |
| 27 | # Add GIT revision to the local version | 27 | # Add GIT revision to the local version |
| 28 | head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null` | 28 | head=`git --git-dir=${S}/.git rev-parse --verify --short ${SRCREV} 2> /dev/null` |
| 29 | printf "%s%s" +g $head > ${S}/.scmversion | 29 | patches=`git --git-dir=${S}/.git rev-list --count ${SRCREV}..HEAD 2> /dev/null` |
| 30 | printf "%s%s%s%s" +g $head +p $patches > ${S}/.scmversion | ||
| 30 | 31 | ||
| 31 | sed -i -e "/CONFIG_LOCALVERSION_AUTO[ =]/d" ${B}/.config | 32 | sed -i -e "/CONFIG_LOCALVERSION_AUTO[ =]/d" ${B}/.config |
| 32 | echo "CONFIG_LOCALVERSION_AUTO=y" >> ${B}/.config | 33 | echo "CONFIG_LOCALVERSION_AUTO=y" >> ${B}/.config |
