linux-*: Rework LOCALVERSION depending on SRCBRANCH

LOCALVERSION is used in FSL Community BSP Release Notes and should highlight
which are the _release version_ for that particular provider.

In addition LOCALVERSION makes it easy to track where the binary running on a
target is from.

Both reasons make LOCALVERSION a very important information.

The overall rule is that LOCALVERSION would point to SRCBRANCH, unless in a
case of explicit exception.

Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Daiane Angolini 2014-11-20 17:18:51 -02:00 committed by Otavio Salvador
parent 9404b049d7
commit 4f5b8713c1
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ DEPENDS += "lzop-native bc-native"
SRCBRANCH ?= "linux-linaro-lsk-v3.14-mx6"
SRCREV = "4a2f77e014b8cdd10af1aac0db40f582be027f51"
LOCALVERSION = "-cubox-i+yocto"
LOCALVERSION ?= "-${SRCBRANCH}"
SRC_URI = "git://github.com/SolidRun/linux-imx6-3.14.git;branch=${SRCBRANCH} \
file://defconfig"

View File

@ -19,4 +19,4 @@ SRCBRANCH ?= "master"
SRC_URI = "git://git.denx.de/linux-denx.git;branch=${SRCBRANCH} \
file://defconfig"
LOCALVERSION = "-denx"
LOCALVERSION = "-master"

View File

@ -8,10 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
require recipes-kernel/linux/linux-imx.inc
# Put a local version until we have a true SRCREV to point to
LOCALVERSION ?= "+yocto"
SCMVERSION ?= "y"
SRCBRANCH ??= "master"
LOCALVERSION ?= "-${SRCBRANCH}"
# Allow override of WANDBOARD_GITHUB_MIRROR to make use of
# local repository easier