diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-12-21 14:19:51 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-04-13 15:56:43 -0400 |
commit | 710b99385c389f5959a33a8e239f7f029e196125 (patch) | |
tree | 3b515b96c57085347e0997f187dcc175b769c957 /common | |
parent | a641b9794bc240b272008edf0309eb9dc9187bbc (diff) | |
download | u-boot-imx-710b99385c389f5959a33a8e239f7f029e196125.zip u-boot-imx-710b99385c389f5959a33a8e239f7f029e196125.tar.gz u-boot-imx-710b99385c389f5959a33a8e239f7f029e196125.tar.bz2 |
crc32: make command optional
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_mem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 4b524cf..4f64bda 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -1077,6 +1077,8 @@ mod_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const argv[]) return 0; } +#ifdef CONFIG_CMD_CRC32 + #ifndef CONFIG_CRC32_VERIFY int do_mem_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) @@ -1161,6 +1163,8 @@ usage: } #endif /* CONFIG_CRC32_VERIFY */ +#endif + #ifdef CONFIG_CMD_MD5SUM int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -1277,6 +1281,8 @@ U_BOOT_CMD( "[.b, .w, .l] addr1 addr2 count" ); +#ifdef CONFIG_CMD_CRC32 + #ifndef CONFIG_CRC32_VERIFY U_BOOT_CMD( @@ -1296,6 +1302,8 @@ U_BOOT_CMD( #endif /* CONFIG_CRC32_VERIFY */ +#endif + U_BOOT_CMD( base, 2, 1, do_mem_base, "print or set address offset", |