projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
efi_loader: add EFI_MEMORY_SP to memory attributes
[oweals/u-boot.git]
/
cmd
/
lzmadec.c
diff --git
a/cmd/lzmadec.c
b/cmd/lzmadec.c
index c78df825e84b6c6ea2a0300142d88de75f5fda81..3b8db0a8538584f7520392e600f85d9af8809e97 100644
(file)
--- a/
cmd/lzmadec.c
+++ b/
cmd/lzmadec.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2013 Patrice Bouchand <pbfwdlist_gmail_com>
* lzma uncompress command in Uboot
/*
* (C) Copyright 2013 Patrice Bouchand <pbfwdlist_gmail_com>
* lzma uncompress command in Uboot
@@
-6,18
+7,18
@@
*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
*/
#include <common.h>
#include <command.h>
+#include <env.h>
#include <mapmem.h>
#include <asm/io.h>
#include <lzma/LzmaTools.h>
#include <mapmem.h>
#include <asm/io.h>
#include <lzma/LzmaTools.h>
-static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_lzmadec(struct cmd_tbl *cmdtp, int flag, int argc,
+ char *const argv[])
{
unsigned long src, dst;
SizeT src_len = ~0UL, dst_len = ~0UL;
{
unsigned long src, dst;
SizeT src_len = ~0UL, dst_len = ~0UL;
@@
-42,7
+43,7
@@
static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
return 1;
printf("Uncompressed size: %ld = %#lX\n", (ulong)src_len,
(ulong)src_len);
return 1;
printf("Uncompressed size: %ld = %#lX\n", (ulong)src_len,
(ulong)src_len);
-
setenv
_hex("filesize", src_len);
+
env_set
_hex("filesize", src_len);
return 0;
}
return 0;
}