From cbbca053c40ed4daf539ce920dcfc0289c0e5398 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 30 Jan 2018 11:31:11 +0100 Subject: FIT: Allow to open buffer as FIT image This adds fit_open_buf() which can open a buffer as FIT image. Signed-off-by: Sascha Hauer --- include/image-fit.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/image-fit.h b/include/image-fit.h index 79b8101b83..fc0883b5dc 100644 --- a/include/image-fit.h +++ b/include/image-fit.h @@ -22,7 +22,8 @@ #include struct fit_handle { - void *fit; + const void *fit; + void *fit_alloc; size_t size; bool verbose; @@ -35,6 +36,8 @@ struct fit_handle { struct fit_handle *fit_open(const char *filename, bool verbose, enum bootm_verify verify); +struct fit_handle *fit_open_buf(const void *buf, size_t len, bool verbose, + enum bootm_verify verify); void *fit_open_configuration(struct fit_handle *handle, const char *name); int fit_has_image(struct fit_handle *handle, void *configuration, const char *name); -- cgit v1.2.3