From: Daniel Thompson <daniel.thompson@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Kconfig: Add support for hash and sha1sum commands
Date: Fri, 19 May 2017 17:26:58 +0100 [thread overview]
Message-ID: <20170519162658.14212-1-daniel.thompson@linaro.org> (raw)
Currently these (board agnostic) commands cannot be selected using
menuconfig and friends. Fix this the obvious way.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
---
cmd/Kconfig | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index d9f7151bacdc..f459f8440346 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -338,6 +338,19 @@ config CMD_CRC32
help
Compute CRC32.
+config CMD_HASH
+ bool "hash"
+ default n
+ help
+ Compute a hash using any algorithm supported by hash_lookup_algo().
+
+config HASH_VERIFY
+ bool "hash -v"
+ default n
+ depends on CMD_HASH
+ help
+ Add -v option to verify data against a hash.
+
config CMD_MD5SUM
bool "md5sum"
default n
@@ -352,6 +365,20 @@ config MD5SUM_VERFIY
help
Add -v option to verify data against an MD5 checksum.
+config CMD_SHA1SUM
+ bool "sha1sum"
+ default n
+ select SHA1
+ help
+ Compute SHA1 checksum.
+
+config SHA1SUM_VERFIY
+ bool "sha1sum -v"
+ default n
+ depends on CMD_SHA1SUM
+ help
+ Add -v option to verify data against an SHA1 checksum.
+
config LOOPW
bool "loopw"
help
--
2.9.4
next reply other threads:[~2017-05-19 16:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 16:26 Daniel Thompson [this message]
2017-05-22 20:26 ` [U-Boot] [PATCH] Kconfig: Add support for hash and sha1sum commands Simon Glass
2017-05-22 21:17 ` Tom Rini
2017-05-23 10:10 ` Daniel Thompson
2017-05-23 11:29 ` Tom Rini
2017-05-27 14:59 ` [U-Boot] [PATCH 1/1] " Tom Rini
2017-05-31 3:50 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170519162658.14212-1-daniel.thompson@linaro.org \
--to=daniel.thompson@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.