Commit 710b99385c389f5959a33a8e239f7f029e196125
1 parent
a641b9794b
Exists in
master
and in
54 other branches
crc32: make command optional
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Showing 3 changed files with 11 additions and 1 deletions Side-by-side Diff
README
common/cmd_mem.c
... | ... | @@ -1077,6 +1077,8 @@ |
1077 | 1077 | return 0; |
1078 | 1078 | } |
1079 | 1079 | |
1080 | +#ifdef CONFIG_CMD_CRC32 | |
1081 | + | |
1080 | 1082 | #ifndef CONFIG_CRC32_VERIFY |
1081 | 1083 | |
1082 | 1084 | int do_mem_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
... | ... | @@ -1161,6 +1163,8 @@ |
1161 | 1163 | } |
1162 | 1164 | #endif /* CONFIG_CRC32_VERIFY */ |
1163 | 1165 | |
1166 | +#endif | |
1167 | + | |
1164 | 1168 | #ifdef CONFIG_CMD_MD5SUM |
1165 | 1169 | int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
1166 | 1170 | { |
... | ... | @@ -1277,6 +1281,8 @@ |
1277 | 1281 | "[.b, .w, .l] addr1 addr2 count" |
1278 | 1282 | ); |
1279 | 1283 | |
1284 | +#ifdef CONFIG_CMD_CRC32 | |
1285 | + | |
1280 | 1286 | #ifndef CONFIG_CRC32_VERIFY |
1281 | 1287 | |
1282 | 1288 | U_BOOT_CMD( |
... | ... | @@ -1295,6 +1301,8 @@ |
1295 | 1301 | ); |
1296 | 1302 | |
1297 | 1303 | #endif /* CONFIG_CRC32_VERIFY */ |
1304 | + | |
1305 | +#endif | |
1298 | 1306 | |
1299 | 1307 | U_BOOT_CMD( |
1300 | 1308 | base, 2, 1, do_mem_base, |
include/config_cmd_defaults.h
1 | 1 | /* |
2 | 2 | * config_cmd_defaults.h - sane defaults for everyone |
3 | 3 | * |
4 | - * Copyright (c) 2010 Analog Devices Inc. | |
4 | + * Copyright (c) 2010-2011 Analog Devices Inc. | |
5 | 5 | * |
6 | 6 | * Licensed under the GPL-2 or later. |
7 | 7 | */ |
... | ... | @@ -10,6 +10,7 @@ |
10 | 10 | #define _CONFIG_CMD_DEFAULTS_H_ |
11 | 11 | |
12 | 12 | #define CONFIG_CMD_BOOTM 1 |
13 | +#define CONFIG_CMD_CRC32 1 | |
13 | 14 | #define CONFIG_CMD_EXPORTENV 1 |
14 | 15 | #define CONFIG_CMD_GO 1 |
15 | 16 | #define CONFIG_CMD_IMPORTENV 1 |