summaryrefslogtreecommitdiff
path: root/cmd/spl.c
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2017-09-28 08:42:11 -0700
committerYork Sun <york.sun@nxp.com>2017-10-09 08:48:44 -0700
commitb65ac633f52da596cfa573bb4a597e2edd2318c8 (patch)
tree827ade974e2168095f7378d67004c170377c2f9d /cmd/spl.c
parentd1fc0a31b5f307c92b7a047d4f90d5ad2e54cdcc (diff)
downloadu-boot-b65ac633f52da596cfa573bb4a597e2edd2318c8.tar.gz
cmd: spl: fix compiling error when CONFIG_CMD_SPL_WRITE_SIZE not defined
CONFIG_CMD_SPL_WRITE_SIZE is used for writing parameters to non-volatile storage. So far it is only used for NAND. Fix compiling error when this macro is not used for SD. Signed-off-by: York Sun <york.sun@nxp.com> CC: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'cmd/spl.c')
-rw-r--r--cmd/spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/spl.c b/cmd/spl.c
index 4d84492346..3b8992a163 100644
--- a/cmd/spl.c
+++ b/cmd/spl.c
@@ -121,9 +121,11 @@ static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
(void *)images.ft_addr);
env_set_addr("fdtargsaddr", images.ft_addr);
env_set_hex("fdtargslen", fdt_totalsize(images.ft_addr));
+#ifdef CONFIG_CMD_SPL_WRITE_SIZE
if (fdt_totalsize(images.ft_addr) >
CONFIG_CMD_SPL_WRITE_SIZE)
puts("WARN: FDT size > CMD_SPL_WRITE_SIZE\n");
+#endif
break;
#endif
case SPL_EXPORT_ATAGS: