aboutsummaryrefslogtreecommitdiff
path: root/tools/image-host.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-01-12 08:34:50 -0500
committerTom Rini <trini@konsulko.com>2024-01-12 08:34:50 -0500
commit547d3dd28a46a18d59e00a153c8becca8d4e8cf9 (patch)
tree79a09ba118b2b4d3001bfd478206734d2727f4f7 /tools/image-host.c
parent2ee7a8ec6f1711abe9619fd8765edc16742be9de (diff)
parent2027e99e61aab6fd8b06e2d752e0e538cff26eb6 (diff)
Merge branch '2024-01-12-assorted-fixes'
- Allow defconfigs to #include files (so we can construct a defconfig from fragments), update phy-mtk-tphy binding, assorted test fixes, allow building host tools without cryptographic libraries again, android_ab bugfix, and make some SPL debugging cases easier.
Diffstat (limited to 'tools/image-host.c')
-rw-r--r--tools/image-host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/image-host.c b/tools/image-host.c
index ca4950312f..90bc9f905f 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -14,8 +14,10 @@
#include <image.h>
#include <version.h>
+#if CONFIG_IS_ENABLED(FIT_SIGNATURE)
#include <openssl/pem.h>
#include <openssl/evp.h>
+#endif
/**
* fit_set_hash_value - set hash value in requested has node
@@ -1131,6 +1133,7 @@ static int fit_config_add_verification_data(const char *keydir,
return 0;
}
+#if CONFIG_IS_ENABLED(FIT_SIGNATURE)
/*
* 0) open file (open)
* 1) read certificate (PEM_read_X509)
@@ -1239,6 +1242,7 @@ int fit_pre_load_data(const char *keydir, void *keydest, void *fit)
out:
return ret;
}
+#endif
int fit_cipher_data(const char *keydir, void *keydest, void *fit,
const char *comment, int require_keys,