| * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| * SPDX-License-Identifier: GPL-2.0+ |
| static int do_unzip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| unsigned long src_len = ~0UL, dst_len = ~0UL; |
| dst_len = simple_strtoul(argv[3], NULL, 16); |
| src = simple_strtoul(argv[1], NULL, 16); |
| dst = simple_strtoul(argv[2], NULL, 16); |
| if (gunzip((void *) dst, dst_len, (void *) src, &src_len) != 0) |
| printf("Uncompressed size: %ld = 0x%lX\n", src_len, src_len); |
| setenv_hex("filesize", src_len); |
| "srcaddr dstaddr [dstsize]" |