summaryrefslogtreecommitdiff
path: root/images
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-24 02:22:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-24 02:32:13 +0300
commit48512cf7bc96ee0cec85bc149b4183b9ca565855 (patch)
treeed929505a0bc8ebb63e0468290029d108e2eae8a /images
parent60195fbe54c9c60f3b9a77c35bea6fafa7cdd788 (diff)
Turn dtbs platform variable into array
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'images')
-rw-r--r--images/FIT.sh6
-rw-r--r--images/srec.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/images/FIT.sh b/images/FIT.sh
index e085a8a..2205b44 100644
--- a/images/FIT.sh
+++ b/images/FIT.sh
@@ -47,7 +47,7 @@ EOF
local dtb
- for dtb in $dtbs ; do
+ for dtb in ${dtbs[@]} ; do
local src=${dtb/:*/}
local dst=${dtb/*:/}
dst=${dst/*\//}
@@ -69,14 +69,14 @@ EOF
EOF
done
- local config=$(echo $dtbs | sed 's/.*[:/]//')
+ local config=$(echo ${dtbs[0]} | sed 's/.*[:/]//')
cat <<EOF >> $kernel_its
};
configurations {
default = "${fit_conf_prefix}${config}";
EOF
- for dtb in $dtbs ; do
+ for dtb in ${dtbs[@]} ; do
local dst=${dtb/*:/}
dst=${dst/*\//}
diff --git a/images/srec.sh b/images/srec.sh
index 282567c..798a256 100644
--- a/images/srec.sh
+++ b/images/srec.sh
@@ -7,7 +7,7 @@ make_srec_image() {
objcopy -I binary -O srec --srec-forceS3 --srec-len 516 \
$image.xz $image.xz.srec
- for dtb in $dtbs ; do
+ for dtb in ${dtbs[0]} ; do
local src=${dtb/:*/}
objcopy -I binary -O srec --srec-forceS3 --srec-len 516 \