From: Andre Przywara Date: Wed, 15 Mar 2017 01:19:05 +0000 Subject: [U-Boot] [PATCH 2/4] Kconfig: introduce md5sum command selection In-Reply-To: <1489540747-8829-1-git-send-email-andre.przywara@arm.com> References: <1489540747-8829-1-git-send-email-andre.przywara@arm.com> Message-ID: <1489540747-8829-3-git-send-email-andre.przywara@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- cmd/Kconfig | 14 ++++++++++++++ lib/Kconfig | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index ef53156..25e3b78 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 b16062f..65c0157 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" -- 2.8.2