diff options
author | Tom Rini <trini@konsulko.com> | 2021-01-23 09:55:35 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-23 09:55:35 -0500 |
commit | 757cec3a0314e88ca90bcc43589a065b7f76a57e (patch) | |
tree | 2cb185c23e27ea7b8586b165c3455bf747d53ed8 /common | |
parent | b577bc1c5fac9b15a075459a9841ef9ede1f1b80 (diff) | |
parent | 09779488a924dbc4eb3b4ae145632f22b7f5a36c (diff) |
Merge branch '2021-01-22-tool-updates'
- Assorted updates to the tools/ code
Diffstat (limited to 'common')
-rw-r--r-- | common/image-fit-sig.c | 14 | ||||
-rw-r--r-- | common/image-fit.c | 15 |
2 files changed, 15 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 * diff --git a/common/image-fit.c b/common/image-fit.c index 21c44bdf691..8660c3fd819 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -112,6 +112,21 @@ int fit_parse_subimage(const char *spec, ulong addr_curr, } #endif /* !USE_HOSTCC */ +#ifdef USE_HOSTCC +/* Host tools use these implementations for Cipher and Signature support */ +static void *host_blob; + +void image_set_host_blob(void *blob) +{ + host_blob = blob; +} + +void *image_get_host_blob(void) +{ + return host_blob; +} +#endif /* USE_HOSTCC */ + static void fit_get_debug(const void *fit, int noffset, char *prop_name, int err) { |