u-boot: Add UBOOT_LOCALVERSION to control version string
authorChase Maupin <Chase.Maupin@ti.com>
Thu, 11 Apr 2013 13:03:13 +0000 (08:03 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Apr 2013 13:45:03 +0000 (14:45 +0100)
commit275bcd43099dc40e7f5158e1046a3f65a56f86c6
tree511c11421b242cc47cf61c45f4d5c68eecfc8c90
parent1249e0169597668e80a67754d15c912a2130cab8
u-boot: Add UBOOT_LOCALVERSION to control version string

* Add a variable called UBOOT_LOCALVERSION which when set will
  place a version string in the .scmversion file of the u-boot
  sources.  This string will be picked up by the u-boot Makefile
  and will be appended to the u-boot version.  This is done to
  make it easier to identify what revision of the u-boot sources
  are being run.  For example you can use a setting like the
  following to add the short commit id to the u-boot version
  string:

UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"

(From OE-Core rev: 566298409408c6103f7a9871bb13ae5449c4fd64)

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/u-boot/u-boot.inc