summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-05-07 06:11:54 +0000
committerTom Rini <trini@ti.com>2013-05-14 15:37:25 -0400
commit604f23dde0b9e6d554b0445a89a809ebd398d515 (patch)
tree239eb0a5cb23d6dd50f5d1f471207fee5443713c /include/image.h
parent53fbb7e885d387426296d367969e2f22fa576705 (diff)
downloadu-boot-imx-604f23dde0b9e6d554b0445a89a809ebd398d515.zip
u-boot-imx-604f23dde0b9e6d554b0445a89a809ebd398d515.tar.gz
u-boot-imx-604f23dde0b9e6d554b0445a89a809ebd398d515.tar.bz2
image: Move HOSTCC image code to tools/
This code is never compiled into U-Boot, so move it into a separate file in tools/ to avoid the large #ifdef. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 7149cba..21d9213 100644
--- a/include/image.h
+++ b/include/image.h
@@ -636,6 +636,9 @@ void fit_conf_print(const void *fit, int noffset, const char *p);
int fit_check_ramdisk(const void *fit, int os_noffset,
uint8_t arch, int verify);
+int calculate_hash(const void *data, int data_len, const char *algo,
+ uint8_t *value, int *value_len);
+
#ifndef USE_HOSTCC
static inline int fit_image_check_target_arch(const void *fdt, int node)
{