summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/u-boot')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc21
1 files changed, 11 insertions, 10 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 48be71d2ef..3ba866de01 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -50,8 +50,9 @@ UBOOT_ELF_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_ELF_SUFFIX}"
50# deploy directory. For those versions they can set the following variables 50# deploy directory. For those versions they can set the following variables
51# to allow packaging the SPL. 51# to allow packaging the SPL.
52SPL_BINARY ?= "" 52SPL_BINARY ?= ""
53SPL_IMAGE ?= "${SPL_BINARY}-${MACHINE}-${PV}-${PR}" 53SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY", True))}"
54SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}" 54SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
55SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
55 56
56# Additional environment variables or a script can be installed alongside 57# Additional environment variables or a script can be installed alongside
57# u-boot to be used automatically on boot. This file, typically 'uEnv.txt' 58# u-boot to be used automatically on boot. This file, typically 'uEnv.txt'
@@ -166,8 +167,8 @@ do_install () {
166 if [ $j -eq $i ] 167 if [ $j -eq $i ]
167 then 168 then
168 install ${S}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR} 169 install ${S}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR}
169 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARY}-${type} 170 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}-${type}
170 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARY} 171 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}
171 fi 172 fi
172 done 173 done
173 unset j 174 unset j
@@ -175,7 +176,7 @@ do_install () {
175 unset i 176 unset i
176 else 177 else
177 install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} 178 install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}
178 ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARY} 179 ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARYNAME}
179 fi 180 fi
180 fi 181 fi
181 182
@@ -257,9 +258,9 @@ do_deploy () {
257 if [ $j -eq $i ] 258 if [ $j -eq $i ]
258 then 259 then
259 install ${S}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR} 260 install ${S}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR}
260 rm -f ${DEPLOYDIR}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_SYMLINK}-${type} 261 rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}-${type}
261 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARY}-${type} 262 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}-${type}
262 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARY} 263 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}
263 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_SYMLINK}-${type} 264 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_SYMLINK}-${type}
264 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_SYMLINK} 265 ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_SYMLINK}
265 fi 266 fi
@@ -269,8 +270,8 @@ do_deploy () {
269 unset i 270 unset i
270 else 271 else
271 install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} 272 install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}
272 rm -f ${DEPLOYDIR}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_SYMLINK} 273 rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}
273 ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARY} 274 ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARYNAME}
274 ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} 275 ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK}
275 fi 276 fi
276 fi 277 fi