meta-digi-arm: fix u-boot version string

Building u-boot with Yocto does not show the version string in the
u-boot header. This is due to how Yocto compiles u-boot. It creates a
.scmversion file which may contain LOCALVERSION strings but in our case
it's empty. Later at build time u-boot's setlocalversion script detects
that file exists and exits with no further action (because it assumes
the file contains the version string).

https://jira.digi.com/browse/DEL-1007

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-03-25 15:42:12 +01:00
parent 26a3cef1b2
commit 3f17dd091e
3 changed files with 12 additions and 0 deletions

View File

@ -20,5 +20,9 @@ DEPENDS_mxs += "elftosb-native imx-bootlets-dey"
EXTRA_OEMAKE += 'HOSTSTRIP=true'
EXTRA_OEMAKE_append_mxs = ' BOOTLETS_DIR=${STAGING_DIR_TARGET}/boot'
do_compile_prepend() {
${S}/tools/setlocalversion --save-scmversion ${S}
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mxs|mx5)"

View File

@ -15,5 +15,9 @@ S = "${WORKDIR}/git"
DEPENDS_mxs += "elftosb-native"
do_compile_prepend() {
${S}/tools/setlocalversion --save-scmversion ${S}
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mxs)"

View File

@ -11,5 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
S = "${WORKDIR}/git"
do_compile_prepend() {
${S}/tools/setlocalversion --save-scmversion ${S}
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mx6)"