diff options
author | Tom Rini | 2022-06-17 16:24:32 -0400 |
---|---|---|
committer | Tom Rini | 2022-07-05 17:04:01 -0400 |
commit | 5aad0a14bacc22b9d36956f12fa9480e3c0c672f (patch) | |
tree | 748cfb403c1bcee3ebd794a1301df1f1f69af3a4 /board | |
parent | 540b73a7be6dbe87a2f0c9e86d1d9178bc7f7b76 (diff) |
fsl_validate: Migrate SPL_UBOOT_KEY_HASH to Kconfig
Move setting of SPL_UBOOT_KEY_HASH to a non-NULL value to Kconfig. As
part of this, change fsl_secboot_validate(...) to check that it is
passed a non-empty string, rather than non-NULL.
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Kshitiz Varshney <kshitiz.varshney@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/common/fsl_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c index 34875d0b8f2..f1a0b0cfc34 100644 --- a/board/freescale/common/fsl_validate.c +++ b/board/freescale/common/fsl_validate.c @@ -871,7 +871,7 @@ int fsl_secboot_validate(uintptr_t haddr, char *arg_hash_str, int ret, i, hash_cmd = 0; u32 srk_hash[8]; - if (arg_hash_str != NULL) { + if (strlen(arg_hash_str) != 0) { const char *cp = arg_hash_str; int i = 0; |