diff options
author | Denys Dmytriyenko <denys@ti.com> | 2017-06-08 03:15:45 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2017-06-10 14:30:26 -0400 |
commit | 00fad775e15b59d0da91c97b2dc19b9583073b02 (patch) | |
tree | 35cdb648c87344d52dfefdefec39ab27d6478a9c /recipes-bsp/u-boot | |
parent | ebc6dc52fb2da5f1ab61a01b0ea31b40c7d15d98 (diff) | |
download | meta-ti-00fad775e15b59d0da91c97b2dc19b9583073b02.tar.gz |
u-boot-ti: add support for u-boot-spl_HS_2ND images
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 | 28 |
1 files changed, 28 insertions, 0 deletions
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" | |||
83 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" | 83 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" |
84 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" | 84 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" |
85 | 85 | ||
86 | # HS 2ND | ||
87 | UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" | ||
88 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" | ||
89 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" | ||
90 | |||
86 | do_install_append () { | 91 | do_install_append () { |
87 | if [ -n "${UBOOT_CONFIG}" ] | 92 | if [ -n "${UBOOT_CONFIG}" ] |
88 | then | 93 | then |
@@ -107,6 +112,11 @@ do_install_append () { | |||
107 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} | 112 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} |
108 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} | 113 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} |
109 | fi | 114 | fi |
115 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
116 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type} | ||
117 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type} | ||
118 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
119 | fi | ||
110 | fi | 120 | fi |
111 | done | 121 | done |
112 | unset j | 122 | unset j |
@@ -125,6 +135,10 @@ do_install_append () { | |||
125 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | 135 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} |
126 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | 136 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} |
127 | fi | 137 | fi |
138 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
139 | install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE} | ||
140 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
141 | fi | ||
128 | fi | 142 | fi |
129 | } | 143 | } |
130 | 144 | ||
@@ -162,6 +176,14 @@ do_deploy_append () { | |||
162 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} | 176 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} |
163 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} | 177 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} |
164 | fi | 178 | fi |
179 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
180 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE}-${type} | ||
181 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
182 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type} | ||
183 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK} | ||
184 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type} | ||
185 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY} | ||
186 | fi | ||
165 | fi | 187 | fi |
166 | done | 188 | done |
167 | unset j | 189 | unset j |
@@ -187,6 +209,12 @@ do_deploy_append () { | |||
187 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | 209 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} |
188 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | 210 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} |
189 | fi | 211 | fi |
212 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
213 | install ${B}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE} | ||
214 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
215 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK} | ||
216 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY} | ||
217 | fi | ||
190 | fi | 218 | fi |
191 | } | 219 | } |
192 | 220 | ||