aboutsummaryrefslogtreecommitdiffstats
path: root/common/image-fit-sig.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2020-12-08 14:42:14 +1030
committerTom Rini <trini@konsulko.com>2021-01-22 16:17:52 -0500
commit93af80f3e8fb6fcbfb851a6dc384999a61ddaedb (patch)
treef1e481358764352b0d2a81b3489f0ccbf2f3c829 /common/image-fit-sig.c
parent5d40d5f12edac9ffccce955509f4cb4a7aa763a2 (diff)
downloadu-boot-93af80f3e8fb6fcbfb851a6dc384999a61ddaedb.tar.gz
image-fit: Fix FIT_CIPHER linking
When CONFIG_FIT_CIPHER=y and CONFIG_FIT_SIGNATURE=n is there is no implementation of image_get_host_blob for mkimage/dumpimage: /usr/bin/ld: tools/common/image-cipher.o: in function `fit_image_decrypt_data': image-cipher.c:(.text+0x9a): undefined reference to `image_get_host_blob' Move the implementation to a common file so it can be shaed between image-cipher.c and image-fit-sig.c. Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'common/image-fit-sig.c')
-rw-r--r--common/image-fit-sig.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c
index 5401d9411b9..d39741e9058 100644
--- a/common/image-fit-sig.c
+++ b/common/image-fit-sig.c
@@ -19,20 +19,6 @@ DECLARE_GLOBAL_DATA_PTR;
#define IMAGE_MAX_HASHED_NODES 100
-#ifdef USE_HOSTCC
-void *host_blob;
-
-void image_set_host_blob(void *blob)
-{
- host_blob = blob;
-}
-
-void *image_get_host_blob(void)
-{
- return host_blob;
-}
-#endif
-
/**
* fit_region_make_list() - Make a list of image regions
*