diff options
author | Denys Dmytriyenko <denys@ti.com> | 2019-02-26 03:55:02 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2019-02-25 22:27:01 +0000 |
commit | afe0350facda1d0a94e3c5d83ddfa5ce1f4ca73c (patch) | |
tree | ffc57d9d41975c63fb508725a98eeacfb6697180 /recipes-bsp/u-boot | |
parent | d03495a8ff4b234eb5d1e390c012712e83a81ed4 (diff) | |
download | meta-ti-afe0350facda1d0a94e3c5d83ddfa5ce1f4ca73c.tar.gz |
u-boot-ti: K2 HS platforms do not support 2-stage boot from SPI
Hence install and deploy UBOOT_SPI_BINARY conditionally, similar to
UBOOT_SPI_SPL_BINARY and UBOOT_SPI_GPH_BINARY.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 9d827117..b66a7a6f 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -67,6 +67,10 @@ UBOOT_SPI_SPL_BINARY_k2hk-hs-evm = "" | |||
67 | UBOOT_SPI_SPL_BINARY_k2g-hs-evm = "" | 67 | UBOOT_SPI_SPL_BINARY_k2g-hs-evm = "" |
68 | UBOOT_SPI_SPL_BINARY_k2l-hs-evm = "" | 68 | UBOOT_SPI_SPL_BINARY_k2l-hs-evm = "" |
69 | UBOOT_SPI_BINARY = "u-boot.img" | 69 | UBOOT_SPI_BINARY = "u-boot.img" |
70 | UBOOT_SPI_BINARY_k2e-hs-evm = "" | ||
71 | UBOOT_SPI_BINARY_k2hk-hs-evm = "" | ||
72 | UBOOT_SPI_BINARY_k2g-hs-evm = "" | ||
73 | UBOOT_SPI_BINARY_k2l-hs-evm = "" | ||
70 | UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph" | 74 | UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph" |
71 | UBOOT_SPI_GPH_BINARY_k2e-hs-evm = "" | 75 | UBOOT_SPI_GPH_BINARY_k2e-hs-evm = "" |
72 | UBOOT_SPI_GPH_BINARY_k2hk-hs-evm = "" | 76 | UBOOT_SPI_GPH_BINARY_k2hk-hs-evm = "" |
@@ -269,9 +273,11 @@ do_install_append_keystone () { | |||
269 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_SPL_BINARY} | 273 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_SPL_BINARY} |
270 | fi | 274 | fi |
271 | 275 | ||
272 | install ${B}/${config}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE}-${type} | 276 | if [ "x${UBOOT_SPI_BINARY}" != "x" ]; then |
273 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_BINARY}-${type} | 277 | install ${B}/${config}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE}-${type} |
274 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_BINARY} | 278 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_BINARY}-${type} |
279 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_BINARY} | ||
280 | fi | ||
275 | 281 | ||
276 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | 282 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then |
277 | install ${B}/${config}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE}-${type} | 283 | install ${B}/${config}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE}-${type} |
@@ -289,8 +295,10 @@ do_install_append_keystone () { | |||
289 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY} | 295 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY} |
290 | fi | 296 | fi |
291 | 297 | ||
292 | install ${B}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE} | 298 | if [ "x${UBOOT_SPI_BINARY}" != "x" ]; then |
293 | ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY} | 299 | install ${B}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE} |
300 | ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY} | ||
301 | fi | ||
294 | 302 | ||
295 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | 303 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then |
296 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE} | 304 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE} |
@@ -317,12 +325,14 @@ do_deploy_append_keystone () { | |||
317 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${UBOOT_SPI_SPL_BINARY} | 325 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${UBOOT_SPI_SPL_BINARY} |
318 | fi | 326 | fi |
319 | 327 | ||
320 | install ${B}/${config}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE}-${type} | 328 | if [ "x${UBOOT_SPI_BINARY}" != "x" ]; then |
321 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} | 329 | install ${B}/${config}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE}-${type} |
322 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_SYMLINK}-${type} | 330 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} |
323 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_SYMLINK} | 331 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_SYMLINK}-${type} |
324 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_BINARY}-${type} | 332 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_SYMLINK} |
325 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_BINARY} | 333 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_BINARY}-${type} |
334 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_BINARY} | ||
335 | fi | ||
326 | 336 | ||
327 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | 337 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then |
328 | install ${B}/${config}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE}-${type} | 338 | install ${B}/${config}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE}-${type} |
@@ -345,10 +355,12 @@ do_deploy_append_keystone () { | |||
345 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY} | 355 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY} |
346 | fi | 356 | fi |
347 | 357 | ||
348 | install ${B}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE} | 358 | if [ "x${UBOOT_SPI_BINARY}" != "x" ]; then |
349 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} | 359 | install ${B}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE} |
350 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK} | 360 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} |
351 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY} | 361 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK} |
362 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY} | ||
363 | fi | ||
352 | 364 | ||
353 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | 365 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then |
354 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE} | 366 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE} |