diff options
author | Andre Przywara <andre.przywara@arm.com> | 2017-03-15 01:19:05 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-03-17 09:09:39 -0400 |
commit | bea79d7d3fde54932747b7592d399bbaf070385e (patch) | |
tree | 4fd7ef434181fd87f1cc0166abde7f0ded75d86b | |
parent | a5b3b2d91f8b15aaf0f870aa0d5f37f76a4df66b (diff) |
Kconfig: introduce md5sum command selection
So far CONFIG_MD5SUM would need to be set by a board's include file.
Since the command is really generic, move it over to Kconfig to allow
it to be defined by either a board's defconfig, menuconfig or some
config snippet merged via mergeconfig.sh.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | cmd/Kconfig | 14 | ||||
-rw-r--r-- | lib/Kconfig | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index ef531563147..25e3b783a87 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -338,6 +338,20 @@ config CMD_CRC32 help Compute CRC32. +config CMD_MD5SUM + bool "md5sum" + default n + select MD5 + help + Compute MD5 checksum. + +config MD5SUM_VERFIY + bool "md5sum -v" + default n + depends on CMD_MD5SUM + help + Add -v option to verify data against an MD5 checksum. + config LOOPW bool "loopw" help diff --git a/lib/Kconfig b/lib/Kconfig index b16062fbe33..65c01573e19 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -101,6 +101,10 @@ config SHA_PROG_HW_ACCEL SHA1/SHA256 progressive hashing. Data can be streamed in a block at a time and the hashing is performed in hardware. + +config MD5 + bool + endmenu menu "Compression Support" |