summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-08-17 10:34:39 +0000
committerGerald Van Baren <gvb@unssw.com>2012-10-15 19:20:32 -0400
commit8ac88f2d2818c8efc1558626a4e7fb47dcc18987 (patch)
tree928169789e6ea5816e500bab395e6fd5bd3051d7 /include/image.h
parent8805beec8f51e861996860db71a831e4c263cf4c (diff)
downloadu-boot-imx-8ac88f2d2818c8efc1558626a4e7fb47dcc18987.zip
u-boot-imx-8ac88f2d2818c8efc1558626a4e7fb47dcc18987.tar.gz
u-boot-imx-8ac88f2d2818c8efc1558626a4e7fb47dcc18987.tar.bz2
fdt: Check for a token to skip auto-hash validation
Allow the itb file to declare to u-boot that its hash should not be checked automatically on bootm or iminfo. This allows an image to either be checked automatically or to include a script which may check it otherwise (such as after part of the itb has been relocated to RAM by the script). Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index e5f6649..4e5863f 100644
--- a/include/image.h
+++ b/include/image.h
@@ -511,6 +511,7 @@ static inline int image_check_target_arch(const image_header_t *hdr)
#define FIT_HASH_NODENAME "hash"
#define FIT_ALGO_PROP "algo"
#define FIT_VALUE_PROP "value"
+#define FIT_IGNORE_PROP "uboot-ignore"
/* image node */
#define FIT_DATA_PROP "data"
@@ -595,6 +596,9 @@ int fit_image_get_data(const void *fit, int noffset,
int fit_image_hash_get_algo(const void *fit, int noffset, char **algo);
int fit_image_hash_get_value(const void *fit, int noffset, uint8_t **value,
int *value_len);
+#ifndef USE_HOSTCC
+int fit_image_hash_get_ignore(const void *fit, int noffset, int *ignore);
+#endif
int fit_set_timestamp(void *fit, int noffset, time_t timestamp);
int fit_set_hashes(void *fit);