diff options
| author | Nikita Shubin <[email protected]> | 2022-12-19 11:05:27 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-12-20 09:48:16 -0500 |
| commit | 05e8e2403c533cc9e7a2a548486e2e41dfd5ce53 (patch) | |
| tree | 61cd0128797144f13175b6ac340462ce8620d729 /cmd/ximg.c | |
| parent | f7655af980dc376783bbdac833e450a86e3255f4 (diff) | |
imxtract: specify max gunzip size
Specify max gunzip size from config to override SYS_XIMG_LEN
default value wich is 0x800000. In case we have a large portion of FIT
image, for example gzipped kernel with decompressed size large than
0x800000 we should enlarge imxract area, otherwise extracting it will
fail.
It used to be a hardcoded define in cmd/ximg.c and we are moving it to
config.
Signed-off-by: Nikita Shubin <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/ximg.c')
| -rw-r--r-- | cmd/ximg.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/ximg.c b/cmd/ximg.c index a50dd20b19a..0e7eead8d19 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c @@ -27,11 +27,6 @@ #include <asm/cache.h> #include <asm/io.h> -#ifndef CFG_SYS_XIMG_LEN -/* use 8MByte as default max gunzip size */ -#define CFG_SYS_XIMG_LEN 0x800000 -#endif - static int do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { @@ -52,7 +47,7 @@ do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) size_t fit_len; #endif #ifdef CONFIG_GZIP - uint unc_len = CFG_SYS_XIMG_LEN; + uint unc_len = CONFIG_SYS_XIMG_LEN; #endif uint8_t comp; |
