Skip to contentSkip to conversation

u-boot-*: Rework LOCALVERSION depending on SRCBRANCH

PATCH New Daiane Angolini 1 participant 4 messages Nov 20, 2014 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 u-boot-*: Rework LOCALVERSION depending on SRCBRANCH

From: Daiane Angolini <[email protected]>

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.

---
 recipes-bsp/u-boot/u-boot-imx_2009.08.bb | 2 +-
 recipes-bsp/u-boot/u-boot-imx_2014.04.bb | 2 +-
 recipes-bsp/u-boot/u-boot-ls1.inc        | 2 ++
 recipes-bsp/u-boot/u-boot-ls1_2013.10.bb | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot-imx_2009.08.bb +1 -1
index c067999..5a831ec 100644
@@ -56,7 +56,7 @@ EXTRA_OEMAKE += 'HOSTSTRIP=true'
 
 inherit fsl-u-boot-localversion
 
-LOCALVERSION = "+imx"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 do_compile_prepend() {
 	if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
recipes-bsp/u-boot/u-boot-imx_2014.04.bb +1 -1
index 0c9c143..bb48044 100644
@@ -16,7 +16,7 @@ S = "${WORKDIR}/git"
 
 inherit fsl-u-boot-localversion
 
-LOCALVERSION = "+imx"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "(mx6)"
recipes-bsp/u-boot/u-boot-ls1.inc +2 -0
index 371773f..9e10ea5 100644
@@ -12,4 +12,6 @@ SRCBRANCH = "LS1-dev"
 SRC_URI = "git://git.freescale.com/layerscape/ls1021a/u-boot.git;branch=${SRCBRANCH}"
 SRCREV = "50d684801cd05ed6b77d52d1ca9ed00fefeac469"
 
+LOCALVERSION ?= "-${SRCBRANCH}"
+
 S = "${WORKDIR}/git"
recipes-bsp/u-boot/u-boot-ls1_2013.10.bb +1 -1
index f50c144..06f6d2f 100644
@@ -2,7 +2,7 @@ require recipes-bsp/u-boot/u-boot.inc
 require u-boot-ls1.inc
 inherit fsl-u-boot-localversion
 
-LOCALVERSION ?= "+ls1"
+LOCALVERSION ?= "-SDK-V1.3"
 
 DEPENDS += "u-boot-ls1-tools-native"
 PROVIDES += "u-boot"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 u-boot: Rework LOCALVERSION depending on SRCBRANCH

From: Daiane Angolini <[email protected]>

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.

---
 recipes-bsp/u-boot/u-boot-imx_2009.08.bb | 2 +-
 recipes-bsp/u-boot/u-boot-imx_2014.04.bb | 2 +-
 recipes-bsp/u-boot/u-boot-ls1.inc        | 2 ++
 recipes-bsp/u-boot/u-boot-ls1_2013.10.bb | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot-imx_2009.08.bb +1 -1
index c067999..5a831ec 100644
@@ -56,7 +56,7 @@ EXTRA_OEMAKE += 'HOSTSTRIP=true'
 
 inherit fsl-u-boot-localversion
 
-LOCALVERSION = "+imx"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 do_compile_prepend() {
 	if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
recipes-bsp/u-boot/u-boot-imx_2014.04.bb +1 -1
index 0c9c143..bb48044 100644
@@ -16,7 +16,7 @@ S = "${WORKDIR}/git"
 
 inherit fsl-u-boot-localversion
 
-LOCALVERSION = "+imx"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "(mx6)"
recipes-bsp/u-boot/u-boot-ls1.inc +2 -0
index 371773f..9e10ea5 100644
@@ -12,4 +12,6 @@ SRCBRANCH = "LS1-dev"
 SRC_URI = "git://git.freescale.com/layerscape/ls1021a/u-boot.git;branch=${SRCBRANCH}"
 SRCREV = "50d684801cd05ed6b77d52d1ca9ed00fefeac469"
 
+LOCALVERSION ?= "-${SRCBRANCH}"
+
 S = "${WORKDIR}/git"
recipes-bsp/u-boot/u-boot-ls1_2013.10.bb +1 -1
index f50c144..06f6d2f 100644
@@ -2,7 +2,7 @@ require recipes-bsp/u-boot/u-boot.inc
 require u-boot-ls1.inc
 inherit fsl-u-boot-localversion
 
-LOCALVERSION ?= "+ls1"
+LOCALVERSION ?= "-SDK-V1.3"
 
 DEPENDS += "u-boot-ls1-tools-native"
 PROVIDES += "u-boot"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 linux-*: Rework LOCALVERSION depending on SRCBRANCH

In reply to Daiane Angolini

From: Daiane Angolini <[email protected]>

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.

---
 recipes-kernel/linux/linux-ls1.inc           | 2 +-
 recipes-kernel/linux/linux-timesys_3.0.15.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ls1.inc +1 -1
index 19614fd..72be738 100644
@@ -2,7 +2,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
 inherit kernel fsl-kernel-localversion
-LOCALVERSION ?= "+ls1"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 SRC_URI = "git://git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH} \
     file://defconfig \
recipes-kernel/linux/linux-timesys_3.0.15.bb +1 -1
index 24ea076..25fd9e5 100644
@@ -15,6 +15,6 @@ SRC_URI_append_twr-vf65gs10 = "file://0001-mvf_fec.c-Fix-mac-address-read-to-mat
 
 SRCBRANCH = "3.0.15_vybrid-twr"
 SRCREV = "50c4c848d6b8743894cfcec166db475ef6140504"
-LOCALVERSION = "-3.0-mvf+yocto"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 COMPATIBLE_MACHINE = "(vf60)"
Signature · 1 line
1.9.1
#3 lore raw

PATCH 2/2 linux: Rework LOCALVERSION depending on SRCBRANCH

In reply to Daiane Angolini

From: Daiane Angolini <[email protected]>

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.

---
 recipes-kernel/linux/linux-ls1.inc           | 2 +-
 recipes-kernel/linux/linux-timesys_3.0.15.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ls1.inc +1 -1
index 19614fd..72be738 100644
@@ -2,7 +2,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
 inherit kernel fsl-kernel-localversion
-LOCALVERSION ?= "+ls1"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 SRC_URI = "git://git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH} \
     file://defconfig \
recipes-kernel/linux/linux-timesys_3.0.15.bb +1 -1
index 24ea076..25fd9e5 100644
@@ -15,6 +15,6 @@ SRC_URI_append_twr-vf65gs10 = "file://0001-mvf_fec.c-Fix-mac-address-read-to-mat
 
 SRCBRANCH = "3.0.15_vybrid-twr"
 SRCREV = "50c4c848d6b8743894cfcec166db475ef6140504"
-LOCALVERSION = "-3.0-mvf+yocto"
+LOCALVERSION ?= "-${SRCBRANCH}"
 
 COMPATIBLE_MACHINE = "(vf60)"
Signature · 1 line
1.9.1