From 00fad775e15b59d0da91c97b2dc19b9583073b02 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Thu, 8 Jun 2017 03:15:45 +0000 Subject: u-boot-ti: add support for u-boot-spl_HS_2ND images Signed-off-by: Denys Dmytriyenko --- recipes-bsp/u-boot/u-boot-ti.inc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'recipes-bsp') diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 04e224dd..c1385f49 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc @@ -83,6 +83,11 @@ UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" +# HS 2ND +UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" +UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" +UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" + do_install_append () { if [ -n "${UBOOT_CONFIG}" ] then @@ -107,6 +112,11 @@ do_install_append () { ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} fi + if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then + install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type} + ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type} + ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY} + fi fi done unset j @@ -125,6 +135,10 @@ do_install_append () { install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} fi + if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then + install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE} + ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY} + fi fi } @@ -162,6 +176,14 @@ do_deploy_append () { ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} fi + if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then + install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE}-${type} + rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} + ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type} + ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK} + ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type} + ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY} + fi fi done unset j @@ -187,6 +209,12 @@ do_deploy_append () { ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} fi + if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then + install ${B}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE} + rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} + ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK} + ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY} + fi fi } -- cgit v1.2.3-54-g00ecf