summaryrefslogtreecommitdiffstats
path: root/meta/classes/uboot-sign.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-09 09:58:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-11 10:28:22 +0100
commita70886aea34bb2f59e83263862b0877f8f7d0cda (patch)
tree19cd7bc9eb4ad2e305e4abf2648ba24ca8a3b647 /meta/classes/uboot-sign.bbclass
parent9ba9938b1bc26e5e803c11f78da81d7a90c0284c (diff)
downloadpoky-a70886aea34bb2f59e83263862b0877f8f7d0cda.tar.gz
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] (From OE-Core rev: d219c97bdf5d30be89795fbf9b66ddc367bef384) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/uboot-sign.bbclass')
-rw-r--r--meta/classes/uboot-sign.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass
index 4ca8118eb2..31ffe1f472 100644
--- a/meta/classes/uboot-sign.bbclass
+++ b/meta/classes/uboot-sign.bbclass
@@ -134,6 +134,8 @@ concat_dtb_helper() {
134 134
135 if [ -n "${UBOOT_CONFIG}" ] 135 if [ -n "${UBOOT_CONFIG}" ]
136 then 136 then
137 i=0
138 j=0
137 for config in ${UBOOT_MACHINE}; do 139 for config in ${UBOOT_MACHINE}; do
138 i=$(expr $i + 1); 140 i=$(expr $i + 1);
139 for type in ${UBOOT_CONFIG}; do 141 for type in ${UBOOT_CONFIG}; do