diff options
| author | Paul-Erwan Rio <[email protected]> | 2023-12-21 08:26:11 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-01-11 22:09:11 -0500 |
| commit | 03e598263e3878b6f5d58f5525577903edadc644 (patch) | |
| tree | 22ac5da5ccb9298e7046389802af067937c23ac9 /include/image.h | |
| parent | b646a1053fda188bfb054acc98aa73bb23b158b1 (diff) | |
tools: fix build without LIBCRYPTO support
Commit cb9faa6f98ae ("tools: Use a single target-independent config to
enable OpenSSL") introduced a target-independent configuration to build
crypto features in host tools.
But since commit 2c21256b27d7 ("hash: Use Kconfig to enable hashing in
host tools and SPL") the build without OpenSSL is broken, due to FIT
signature/encryption features. Add missing conditional compilation
tokens to fix this.
Signed-off-by: Paul-Erwan Rio <[email protected]>
Tested-by: Alexander Dahl <[email protected]>
Cc: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/image.h')
| -rw-r--r-- | include/image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h index 432ec927b1f..21de70f0c9e 100644 --- a/include/image.h +++ b/include/image.h @@ -1465,7 +1465,7 @@ int calculate_hash(const void *data, int data_len, const char *algo, * device */ #if defined(USE_HOSTCC) -# if defined(CONFIG_FIT_SIGNATURE) +# if CONFIG_IS_ENABLED(FIT_SIGNATURE) # define IMAGE_ENABLE_SIGN 1 # define FIT_IMAGE_ENABLE_VERIFY 1 # include <openssl/evp.h> |
