From 36ec9b6e5cca3d140ceb579193c5913485445a06 Mon Sep 17 00:00:00 2001 From: Chunrong Guo Date: Wed, 10 Jul 2013 03:45:01 +0000 Subject: [PATCH] u-boot: append sdk version into uboot version Signed-off-by: Chunrong Guo --- meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb b/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb index c3aa1053..008e253d 100644 --- a/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb +++ b/meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb @@ -39,6 +39,8 @@ EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc PACKAGE_ARCH = "${MACHINE_ARCH}" +UBOOT_LOCALVERSION = "${@d.getVar('SDK_VERSION', True).partition(' ')[0]}" + USRC ?= "" S = '${@base_conditional("USRC", "", "${WORKDIR}/git", "${USRC}", d)}' @@ -47,6 +49,12 @@ do_compile () { unset CFLAGS unset CPPFLAGS + if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] + then + echo ${UBOOT_LOCALVERSION} > ${B}/.scmversion + echo ${UBOOT_LOCALVERSION} > ${S}/.scmversion + fi + if [ "x${UBOOT_MACHINES}" = "x" ]; then UBOOT_MACHINES=${UBOOT_MACHINE} fi -- 2.40.1