diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2021-07-14 17:05:44 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-16 15:39:29 -0400 |
commit | 8be1818a4f0c9ec14d04a244196c6e265fd973b7 (patch) | |
tree | cd1c6fe4ae27f39bae01406e3329f3e3e258b55c /include/image.h | |
parent | 92c960bc1d4c8f702171fea0d87e86f317d4b597 (diff) | |
download | u-boot-8be1818a4f0c9ec14d04a244196c6e265fd973b7.tar.gz |
image: Eliminate IMAGE_ENABLE_VERIFY macro
This macro is no longer needed for code flow or #ifdefs. Remove it.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/image.h b/include/image.h index d4c453428c..64663c591b 100644 --- a/include/image.h +++ b/include/image.h @@ -1196,19 +1196,16 @@ int calculate_hash(const void *data, int data_len, const char *algo, #if defined(USE_HOSTCC) # if defined(CONFIG_FIT_SIGNATURE) # define IMAGE_ENABLE_SIGN 1 -# define IMAGE_ENABLE_VERIFY 1 # define IMAGE_ENABLE_VERIFY_ECDSA 1 # define FIT_IMAGE_ENABLE_VERIFY 1 # include <openssl/evp.h> # else # define IMAGE_ENABLE_SIGN 0 -# define IMAGE_ENABLE_VERIFY 0 # define IMAGE_ENABLE_VERIFY_ECDSA 0 # define FIT_IMAGE_ENABLE_VERIFY 0 # endif #else # define IMAGE_ENABLE_SIGN 0 -# define IMAGE_ENABLE_VERIFY CONFIG_IS_ENABLED(RSA_VERIFY) # define IMAGE_ENABLE_VERIFY_ECDSA 0 # define FIT_IMAGE_ENABLE_VERIFY CONFIG_IS_ENABLED(FIT_SIGNATURE) #endif @@ -1260,7 +1257,7 @@ struct image_region { int size; }; -#if IMAGE_ENABLE_VERIFY +#if FIT_IMAGE_ENABLE_VERIFY # include <u-boot/hash-checksum.h> #endif struct checksum_algo { |