diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-09 09:58:35 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-22 23:46:28 +0100 |
| commit | 60774248a5570899a66f9f88e597cc4f723d6278 (patch) | |
| tree | 0d938b14db01106dd0d0a82991b3af2ad095a2d5 /meta/classes/uboot-sign.bbclass | |
| parent | a6344dc61af446a0b67a285230ece08266f95dec (diff) | |
| download | poky-60774248a5570899a66f9f88e597cc4f723d6278.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: ea280917fc16a61b50738ddd03a6f85305f82cb0)
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>
(cherry picked from commit d219c97bdf5d30be89795fbf9b66ddc367bef384)
Signed-off-by: Steve Sakoman <steve@sakoman.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.bbclass | 2 |
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 |
