diff options
author | Ryan Eatmon <reatmon@ti.com> | 2023-10-09 16:35:08 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-10-09 16:43:03 -0500 |
commit | 00a43c3ee446fa9b1eaa3903112b026e70c44c27 (patch) | |
tree | 3a00e6a7444987dbb4314244282ec8210e619401 /meta-ti-bsp | |
parent | 33176434a7beaf7270bc6c34fd9e9afa4c34ccae (diff) | |
download | meta-ti-00a43c3ee446fa9b1eaa3903112b026e70c44c27.tar.gz |
u-boot-ti: Correctly fix SPL binary name for SD/MMC media on HS boardscicd.master.202310120100
The previous patch is incorrectly accepted and released. This patch
applies the logic that was discussed on the mailing list.
- Create a new variable grouping for SPL_HS_MLO
- Update the install/deploy code to reference the new variables.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp')
-rw-r--r-- | meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 33 |
1 files changed, 30 insertions, 3 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 e46f5e30..af7cb19d 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 | |||
@@ -81,15 +81,19 @@ SPL_UART_BINARY:k3r5 = "" | |||
81 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | 81 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" |
82 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | 82 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" |
83 | 83 | ||
84 | SPL_HS_MLO_BINARY = "u-boot-spl_HS_MLO" | ||
85 | SPL_HS_MLO_IMAGE = "u-boot-spl_HS_MLO-${MACHINE}-${PV}-${PR}" | ||
86 | SPL_HS_MLO_SYMLINK = "u-boot-spl_HS_MLO-${MACHINE}" | ||
87 | |||
84 | # HS XLD | 88 | # HS XLD |
85 | UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER" | 89 | UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER" |
86 | UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${PV}-${PR}" | 90 | UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${PV}-${PR}" |
87 | UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}" | 91 | UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}" |
88 | 92 | ||
89 | # HS MLO | 93 | # HS MLO |
90 | UBOOT_HS_MLO_BINARY = "u-boot-spl_HS_MLO" | 94 | UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" |
91 | UBOOT_HS_MLO_IMAGE = "u-boot-spl_HS_MLO-${MACHINE}-${PV}-${PR}" | 95 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" |
92 | UBOOT_HS_MLO_SYMLINK = "u-boot-spl_HS_MLO-${MACHINE}" | 96 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" |
93 | 97 | ||
94 | # HS ISSW | 98 | # HS ISSW |
95 | UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW" | 99 | UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW" |
@@ -121,6 +125,11 @@ do_install:append () { | |||
121 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} | 125 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} |
122 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} | 126 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} |
123 | fi | 127 | fi |
128 | if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then | ||
129 | install ${B}/${config}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}-${type} | ||
130 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}-${type} | ||
131 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY} | ||
132 | fi | ||
124 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | 133 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then |
125 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} | 134 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} |
126 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} | 135 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} |
@@ -151,6 +160,10 @@ do_install:append () { | |||
151 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | 160 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} |
152 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | 161 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} |
153 | fi | 162 | fi |
163 | if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then | ||
164 | install ${B}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE} | ||
165 | ln -sf ${SPL_HS_MLO_IMAGE} ${D}/boot/${SPL_HS_MLO_BINARY} | ||
166 | fi | ||
154 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | 167 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then |
155 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} | 168 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} |
156 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} | 169 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} |
@@ -202,6 +215,14 @@ do_deploy:append () { | |||
202 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}-${type} | 215 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}-${type} |
203 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK} | 216 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK} |
204 | fi | 217 | fi |
218 | if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then | ||
219 | install ${B}/${config}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}-${type} | ||
220 | rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK} | ||
221 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}-${type} | ||
222 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK} | ||
223 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}-${type} | ||
224 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY} | ||
225 | fi | ||
205 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | 226 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then |
206 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}-${type} | 227 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}-${type} |
207 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | 228 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} |
@@ -247,6 +268,12 @@ do_deploy:append () { | |||
247 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_BINARY} | 268 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_BINARY} |
248 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_SYMLINK} | 269 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_SYMLINK} |
249 | fi | 270 | fi |
271 | if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then | ||
272 | install ${B}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE} | ||
273 | rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK} | ||
274 | ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_SYMLINK} | ||
275 | ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_BINARY} | ||
276 | fi | ||
250 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | 277 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then |
251 | install ${B}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE} | 278 | install ${B}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE} |
252 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | 279 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} |