Currently these (board agnostic) commands cannot be selected using
menuconfig and friends. Fix this the obvious way.

Signed-off-by: Daniel Thompson <daniel.thomp...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to