summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2015-03-17 12:53:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-20 11:45:55 +0100
commitb0be99fc10e50c41b75647a2486c05f9bd47f1c3 (patch)
tree575f7363bca1870aeafaf9a43ea005bfdb7210f0 /commands/Kconfig
parentdf4b6f133b5e63d33e1029b21cd6998ff51b5be3 (diff)
downloadbarebox-b0be99fc10e50c41b75647a2486c05f9bd47f1c3.tar.gz
barebox-b0be99fc10e50c41b75647a2486c05f9bd47f1c3.tar.xz
command: add generic digest command
That can be used for digest calculation and verify Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig12
1 files changed, 11 insertions, 1 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 49709ded67..2618eda2f6 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -14,7 +14,7 @@ if COMMAND_SUPPORT
config COMPILE_HASH
tristate
- select DIGEST
+ select CMD_DIGEST
help
Turns on compilation of digest.c
@@ -842,6 +842,16 @@ config CMD_CMP
Returns successfully if the two files are the same, return with an error if not
+config CMD_DIGEST
+ tristate
+ select DIGEST
+ prompt "digest"
+ help
+ Usage: digest -a <algo> [-k <key> | -K <file>] [-s <sig> | -S <file>] FILE|AREA
+
+ Calculate a digest over a FILE or a memory area with the possibility
+ to checkit.
+
config CMD_DIRNAME
tristate
prompt "dirname"