aboutsummaryrefslogtreecommitdiff
path: root/scripts/uboot-script-gen
diff options
context:
space:
mode:
authorBrian Woods2021-09-02 16:52:18 -0700
committerStefano Stabellini2021-09-03 11:09:15 -0700
commita3162777b1baec1a4df5919156f51fef492b0f6f (patch)
treee95e724aa80b6fd19b52236d3ef92a5a0ed1b18a /scripts/uboot-script-gen
parentcb376bb3ad07ab88a0c02d6a241e5847510ce1be (diff)
Add FIT signing options to config
Also add [-f] to the help message as it was missing. 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-gen14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
index e3f2753..3677b20 100755
--- a/scripts/uboot-script-gen
+++ b/scripts/uboot-script-gen
@@ -272,7 +272,7 @@ function print_help
{
script=`basename "$0"`
echo "usage:"
- echo " $script -c CONFIG_FILE -d DIRECTORY [-t LOAD_CMD] [-o FILE] [-k KEY_DIR/HINT [-u U-BOOT_DTB]] [-e]"
+ echo " $script -c CONFIG_FILE -d DIRECTORY [-t LOAD_CMD] [-o FILE] [-k KEY_DIR/HINT [-u U-BOOT_DTB]] [-e] [-f]"
echo " $script -h"
echo "where:"
echo " CONFIG_FILE - configuration file"
@@ -323,10 +323,10 @@ while getopts ":c:t:d:ho:k:u:ef" opt; do
UBOOT_SCRIPT_ARG=$OPTARG
;;
k )
- FIT_ENC_KEY_DIR=$OPTARG
+ fits_keyd_opt=$OPTARG
;;
u )
- FIT_ENC_UB_DTB=$OPTARG
+ fits_dtb_opt=$OPTARG
;;
e )
efi_opt=y
@@ -444,6 +444,14 @@ then
FIT="${UBOOT_SOURCE%.source}.fit"
fi
+if test "$fits_keyd_opt"
+then
+ FIT_ENC_KEY_DIR="$fits_keyd_opt"
+fi
+if test "$fits_dtb_opt"
+then
+ FIT_ENC_UB_DTB="$fits_dtb_opt"
+fi
fit_algo=$'hash {\n algo = "md5";\n };'
if test "$FIT_ENC_KEY_DIR" || test "$FIT_ENC_UB_DTB"
then