summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc')
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc22
1 files changed, 20 insertions, 2 deletions
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
index 58ee6525..0b8025f4 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
@@ -106,8 +106,26 @@ UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
106UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" 106UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
107 107
108do_compile:append:k3r5 () { 108do_compile:append:k3r5 () {
109 if ! [ -f ${B}/${UBOOT_BINARY} ]; then 109 if [ -n "${UBOOT_CONFIG}" ];
110 ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} 110 then
111 for config in ${UBOOT_MACHINE}; do
112 i=$(expr $i + 1);
113 for type in ${UBOOT_CONFIG}; do
114 j=$(expr $j + 1);
115 if [ $j -eq $i ];
116 then
117 if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
118 ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
119 fi
120 fi
121 done
122 unset j
123 done
124 unset i
125 else
126 if ! [ -f ${B}/${UBOOT_BINARY} ]; then
127 ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
128 fi
111 fi 129 fi
112} 130}
113 131