From 7a542d4685631c369bcc65a632a15799543fc292 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Sun, 19 May 2019 20:26:48 +0300
Subject: Convert all shell variables to lowercase

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 images/CrOS.sh   |  2 +-
 images/FIT.sh    | 10 +++++-----
 images/srec.sh   |  2 +-
 images/uImage.sh |  2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

(limited to 'images')

diff --git a/images/CrOS.sh b/images/CrOS.sh
index eb9ff05..b79e9a4 100644
--- a/images/CrOS.sh
+++ b/images/CrOS.sh
@@ -30,7 +30,7 @@ make_CrOS_image() {
 	if [[ -f $opt_cmdline_file ]] ; then
 		config=$opt_cmdline_file
 	else
-		echo "$CMDLINE" > $boot_dir/cmdline
+		echo "$cmdline" > $boot_dir/cmdline
 		config=$boot_dir/cmdline
 	fi
 
diff --git a/images/FIT.sh b/images/FIT.sh
index 0ed5482..f56ccba 100644
--- a/images/FIT.sh
+++ b/images/FIT.sh
@@ -17,8 +17,8 @@ make_FIT_image() {
 			arch = "$arch";
 			os = "linux";
 			compression = "none";
-			load = <$LOADADDR>;
-			entry = <$LOADADDR>;
+			load = <$loadaddr>;
+			entry = <$loadaddr>;
 			hash-1 {
 				algo = "crc32";
 			};
@@ -30,7 +30,7 @@ EOF
 
 	local dtb
 
-	for dtb in $DTBS ; do
+	for dtb in $dtbs ; do
 		local src=${dtb/:*/}
 		local dst=${dtb/*:/}
 		dst=${dst/*\//}
@@ -52,14 +52,14 @@ EOF
 EOF
 	done
 
-	local config=$(echo $DTBS | sed 's/.*[:/]//')
+	local config=$(echo $dtbs | sed 's/.*[:/]//')
 	cat <<EOF >> $kernel_its
 	};
 
 	configurations {
 		default = "conf-$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 6f89b92..a9e9b0c 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 ; do
 		local src=${dtb/:*/}
 
 		objcopy -I binary -O srec --srec-forceS3 --srec-len 516 \
diff --git a/images/uImage.sh b/images/uImage.sh
index 40e7cf3..716900e 100644
--- a/images/uImage.sh
+++ b/images/uImage.sh
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0+
 
 make_uImage_image() {
-	mkimage -A $arch -O linux -T kernel -C none -a $LOADADDR -e $LOADADDR \
+	mkimage -A $arch -O linux -T kernel -C none -a $loadaddr -e $loadaddr \
 		-n "Linux-${version}" -d $output_dir/arch/$arch/boot/$kernel_image \
 		$output_dir/arch/$arch/boot/uImage
 }
-- 
cgit v1.2.3