aboutsummaryrefslogtreecommitdiff
path: root/scripts/uboot-script-gen
diff options
context:
space:
mode:
authorBrian Woods2021-09-02 16:52:16 -0700
committerStefano Stabellini2021-09-03 11:01:25 -0700
commit5c1faa5b84d22aea0995da9b53503b213528afd5 (patch)
treec24c6b156f2826fc3816b04e39c98dddf8d6b133 /scripts/uboot-script-gen
parent23d6776753e27a88e2d8dedf96602026471deb39 (diff)
Add support for EFI in config
Make it so that EFI enablement can be configured in the config file for uboot-script gen. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Diffstat (limited to 'scripts/uboot-script-gen')
-rwxr-xr-xscripts/uboot-script-gen9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
index 14bf988..a911238 100755
--- a/scripts/uboot-script-gen
+++ b/scripts/uboot-script-gen
@@ -329,7 +329,7 @@ while getopts ":c:t:d:ho:k:u:ef" opt; do
FIT_ENC_UB_DTB=$OPTARG
;;
e )
- efi=y
+ efi_opt=y
;;
f )
fit_opt=y
@@ -424,6 +424,11 @@ do
i=$(( $i + 1 ))
done
+if test "$efi_opt"
+then
+ EFI="y"
+fi
+
if test "$fit_opt" && ! test "$FIT"
then
FIT="${UBOOT_SOURCE%.source}.fit"
@@ -585,7 +590,7 @@ device_tree_editing $device_tree_addr
# disable device tree reloation
echo "setenv fdt_high 0xffffffffffffffff" >> $UBOOT_SOURCE
-if test "$efi" && test "$efi" = "y"
+if test "$EFI" && test "$EFI" != "n" && test "$EFI" != "no" && test "$EFI" != "false"
then
echo "bootefi $xen_addr $device_tree_addr" >> $UBOOT_SOURCE
else