summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot/u-boot.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/u-boot/u-boot.inc')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index ae53b9019c..6bbe457dfa 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -16,6 +16,11 @@ python () {
16 raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set") 16 raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set")
17} 17}
18 18
19# Allow setting an additional version string that will be picked up by the
20# u-boot build system and appended to the u-boot version. If the .scmversion
21# file already exists it will not be overwritten.
22UBOOT_LOCALVERSION ?= ""
23
19# Some versions of u-boot use .bin and others use .img. By default use .bin 24# Some versions of u-boot use .bin and others use .img. By default use .bin
20# but enable individual recipes to change this value. 25# but enable individual recipes to change this value.
21UBOOT_SUFFIX ?= "bin" 26UBOOT_SUFFIX ?= "bin"
@@ -40,6 +45,13 @@ do_compile () {
40 unset LDFLAGS 45 unset LDFLAGS
41 unset CFLAGS 46 unset CFLAGS
42 unset CPPFLAGS 47 unset CPPFLAGS
48
49 if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
50 then
51 echo ${UBOOT_LOCALVERSION} > ${B}/.scmversion
52 echo ${UBOOT_LOCALVERSION} > ${S}/.scmversion
53 fi
54
43 oe_runmake ${UBOOT_MACHINE} 55 oe_runmake ${UBOOT_MACHINE}
44 oe_runmake ${UBOOT_MAKE_TARGET} 56 oe_runmake ${UBOOT_MAKE_TARGET}
45} 57}