diff options
author | Simon Glass <sjg@chromium.org> | 2020-03-18 11:44:03 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-01 07:45:09 -0600 |
commit | c3aa81e35cc53fcd825e89510cd648288e0b6b92 (patch) | |
tree | 8181f82b6c7a2cb3a35809f1bb7d1caa1da3c649 /tools/image-host.c | |
parent | 8a9d03732e6d0f68107c80919096e7cf956dcb3d (diff) | |
download | u-boot-c3aa81e35cc53fcd825e89510cd648288e0b6b92.zip u-boot-c3aa81e35cc53fcd825e89510cd648288e0b6b92.tar.gz u-boot-c3aa81e35cc53fcd825e89510cd648288e0b6b92.tar.bz2 |
fit_check_sign: Allow selecting the configuration to verify
This tool always verifies the default configuration. It is useful to be
able to verify a specific one. Add a command-line flag for this and plumb
the logic through.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/image-host.c')
-rw-r--r-- | tools/image-host.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/image-host.c b/tools/image-host.c index b3ec197..dfea48e 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -1025,12 +1025,13 @@ int fit_add_verification_data(const char *keydir, void *keydest, void *fit, } #ifdef CONFIG_FIT_SIGNATURE -int fit_check_sign(const void *fit, const void *key) +int fit_check_sign(const void *fit, const void *key, + const char *fit_uname_config) { int cfg_noffset; int ret; - cfg_noffset = fit_conf_get_node(fit, NULL); + cfg_noffset = fit_conf_get_node(fit, fit_uname_config); if (!cfg_noffset) return -1; @@ -1039,6 +1040,7 @@ int fit_check_sign(const void *fit, const void *key) ret = fit_config_verify(fit, cfg_noffset); if (ret) return ret; + printf("Verified OK, loading images\n"); ret = bootm_host_load_images(fit, cfg_noffset); return ret; |