diff options
-rw-r--r-- | classes/toradex-kernel-localversion.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/toradex-kernel-localversion.bbclass b/classes/toradex-kernel-localversion.bbclass index 6792d18..766bd0a 100644 --- a/classes/toradex-kernel-localversion.bbclass +++ b/classes/toradex-kernel-localversion.bbclass @@ -23,6 +23,9 @@ kernel_do_configure_append() { # Add GIT revision to the local version if [ -n "${SRCREV_machine}" -a "${SRCREV_machine}" != "INVALID" ]; then head=`git --git-dir=${S}/.git rev-parse --verify --short ${SRCREV_machine} 2> /dev/null` + elif [ -n "${SRCREV}" -a "${SRCREV}" = "AUTOINC" ]; then + branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD` + head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null` elif [ -n "${SRCREV}" -a "${SRCREV}" != "INVALID" ]; then head=`git --git-dir=${S}/.git rev-parse --verify --short ${SRCREV} 2> /dev/null` else |