diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-02 22:04:53 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-11 16:25:46 -0400 |
commit | a9468115699de562f08796bf2eabd832435bedec (patch) | |
tree | a5c4ad46d6492738cdb1f7dd867f88ba4368fd90 /tools/fit_common.h | |
parent | ef0af64b1c45b8ee28db12c16c4ee881ee328e44 (diff) | |
download | u-boot-imx-a9468115699de562f08796bf2eabd832435bedec.zip u-boot-imx-a9468115699de562f08796bf2eabd832435bedec.tar.gz u-boot-imx-a9468115699de562f08796bf2eabd832435bedec.tar.bz2 |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/fit_common.h b/tools/fit_common.h index adcee6d..b8d8438 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_ */ |