]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-imx: Use the new fsl-u-boot-localversion class
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 1 Sep 2014 14:20:34 +0000 (11:20 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 1 Sep 2014 15:18:36 +0000 (12:18 -0300)
This uses the new class for LOCALVERSION handling. The local version
is set for '+imx' by default but can be overriden by users of this
.inc file.

While on that move the PACKAGE_ARCH setting, in the 2009.08 recipe, to
the end of file, as done on other recipes.

Change-Id: Ic7e26635908cefe28c340cd9885e1efa0a009a16
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2009.08.bb
meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2013.04.bb

index 393e7f329605aa0d80e2b50df18000842cb7b326..7b31cc8c6952cd291de746746138dc819317dd00 100644 (file)
@@ -54,7 +54,9 @@ UBOOT_MAKE_TARGET = "u-boot.bin"
 S = "${WORKDIR}/git"
 EXTRA_OEMAKE += 'HOSTSTRIP=true'
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
+inherit fsl-u-boot-localversion
+
+LOCALVERSION = "+imx"
 
 do_compile_prepend() {
        if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
@@ -63,3 +65,4 @@ do_compile_prepend() {
 }
 
 COMPATIBLE_MACHINE = "(imx28evk|mx5|mx6)"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
index 1c0f828e1bfa0fe18bc86c42070be8e302a88031..867f0edde58967e31476b02877d0a6a5834f850f 100644 (file)
@@ -14,5 +14,9 @@ SRCREV = "ce0ea2507c492d43bbf88f8609482a171b2d2003"
 
 S = "${WORKDIR}/git"
 
+inherit fsl-u-boot-localversion
+
+LOCALVERSION = "+imx"
+
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "(mx6)"