summaryrefslogtreecommitdiffstats
path: root/tools/fit_common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-02 22:04:53 -0600
committerTom Rini <trini@ti.com>2014-06-11 16:25:46 -0400
commita9468115699de562f08796bf2eabd832435bedec (patch)
treea5c4ad46d6492738cdb1f7dd867f88ba4368fd90 /tools/fit_common.h
parentef0af64b1c45b8ee28db12c16c4ee881ee328e44 (diff)
downloadblackbird-obmc-uboot-a9468115699de562f08796bf2eabd832435bedec.tar.gz
blackbird-obmc-uboot-a9468115699de562f08796bf2eabd832435bedec.zip
mkimage: Automatically make space in FDT when full
When adding hashes or signatures, the target FDT may be full. Detect this and automatically try again after making 1KB of space. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fit_common.h')
-rw-r--r--tools/fit_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/fit_common.h b/tools/fit_common.h
index adcee6df64..b8d8438717 100644
--- a/tools/fit_common.h
+++ b/tools/fit_common.h
@@ -21,12 +21,13 @@ int fit_check_image_types(uint8_t type);
*
* @cmdname: Tool name (for displaying with error messages)
* @fname: Filename containing FDT
+ * @size_inc: Amount to increase size by (0 = leave it alone)
* @blobp: Returns pointer to FDT blob
* @sbuf: File status information is stored here
* @delete_on_error: true to delete the file if we get an error
* @return 0 if OK, -1 on error.
*/
-int mmap_fdt(const char *cmdname, const char *fname, void **blobp,
- struct stat *sbuf, bool delete_on_error);
+int mmap_fdt(const char *cmdname, const char *fname, size_t size_inc,
+ void **blobp, struct stat *sbuf, bool delete_on_error);
#endif /* _FIT_COMMON_H_ */
OpenPOWER on IntegriCloud