summaryrefslogtreecommitdiff
path: root/tools/imagetool.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-23 05:55:52 (GMT)
committerTom Rini <trini@konsulko.com>2016-03-14 23:18:29 (GMT)
commitfb4cce0f98ea0784130ff544d7c85d0841bea2e6 (patch)
treef02ef53bf63df97448e0831b68d4581dad44839f /tools/imagetool.h
parent8e35bb07eb68e524804f2ef53dd18c7cec0b06fc (diff)
downloadu-boot-fb4cce0f98ea0784130ff544d7c85d0841bea2e6.tar.xz
mkimage: Support adding device tree files to a FIT
To make the auto-FIT feature useful we need to be able to provide a list of device tree files on the command line for mkimage to add into the FIT. Add support for this feature. So far there is no support for hashing or verified boot using this method. For those cases, a .its file must still be provided. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/imagetool.h')
-rw-r--r--tools/imagetool.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h
index 4f426e4..3d30fbe 100644
--- a/tools/imagetool.h
+++ b/tools/imagetool.h
@@ -27,6 +27,13 @@
#define IH_ARCH_DEFAULT IH_ARCH_INVALID
+/* Information about a file that needs to be placed into the FIT */
+struct content_info {
+ struct content_info *next;
+ int type; /* File type (IH_TYPE_...) */
+ const char *fname;
+};
+
/*
* This structure defines all such variables those are initialized by
* mkimage and dumpimage main core and need to be referred by image
@@ -63,6 +70,8 @@ struct image_tool_params {
int orig_file_size; /* Original size for file before padding */
bool auto_its; /* Automatically create the .its file */
int fit_image_type; /* Image type to put into the FIT */
+ struct content_info *content_head; /* List of files to include */
+ struct content_info *content_tail;
};
/*