diff options
author | Simon Glass | 2014-06-02 22:04:53 -0600 |
---|---|---|
committer | Tom Rini | 2014-06-11 16:25:46 -0400 |
commit | a9468115699de562f08796bf2eabd832435bedec (patch) | |
tree | a5c4ad46d6492738cdb1f7dd867f88ba4368fd90 /tools/fit_check_sign.c | |
parent | ef0af64b1c45b8ee28db12c16c4ee881ee328e44 (diff) |
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_check_sign.c')
-rw-r--r-- | tools/fit_check_sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fit_check_sign.c b/tools/fit_check_sign.c index 357650d526e..af257cc8a2a 100644 --- a/tools/fit_check_sign.c +++ b/tools/fit_check_sign.c @@ -62,10 +62,10 @@ int main(int argc, char **argv) break; } - ffd = mmap_fdt(cmdname, fdtfile, &fit_blob, &fsbuf, false); + ffd = mmap_fdt(cmdname, fdtfile, 0, &fit_blob, &fsbuf, false); if (ffd < 0) return EXIT_FAILURE; - kfd = mmap_fdt(cmdname, keyfile, &key_blob, &ksbuf, false); + kfd = mmap_fdt(cmdname, keyfile, 0, &key_blob, &ksbuf, false); if (ffd < 0) return EXIT_FAILURE; |