diff options
author | York Sun <york.sun@nxp.com> | 2017-09-28 08:42:11 -0700 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-10-09 08:48:44 -0700 |
commit | b65ac633f52da596cfa573bb4a597e2edd2318c8 (patch) | |
tree | 827ade974e2168095f7378d67004c170377c2f9d /cmd/spl.c | |
parent | d1fc0a31b5f307c92b7a047d4f90d5ad2e54cdcc (diff) | |
download | u-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |