uboot-sign: Fix potential index error issues
PATCH 1/1 uboot-sign: Fix potential index error issues
Someone reported that if some other shell function has left i or j set, the concat_dtb_helper function could fail. Add a small tweak to avoid this.
[YOCTO #14815]
Signed-off-by Richard Purdie <[email protected]>
--- meta/classes/uboot-sign.bbclass | 2 ++ 1 file changed, 2 insertions(+)
meta/classes/uboot-sign.bbclass +2 -0
@@ -134,6 +134,8 @@ concat_dtb_helper() { if [ -n "${UBOOT_CONFIG}" ] then + i=0 + j=0 for config in ${UBOOT_MACHINE}; do i=$(expr $i + 1); for type in ${UBOOT_CONFIG}; do
Signature · 1 line
2.34.1