diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-17 09:05:34 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-22 12:38:22 -0400 |
commit | d70f919e49c9105c49427786a1731feae322cb7a (patch) | |
tree | 28f8a708b6cab47b90b3a7c5564809c11d7de930 /common/hash.c | |
parent | 551c3934466503e6c8702df412e2a9ce574557e9 (diff) | |
download | u-boot-d70f919e49c9105c49427786a1731feae322cb7a.tar.gz |
Kconfig: Add CONFIG_HASH to enable hashing API
At present CONFIG_CMD_HASH enables the 'hash' command which also brings
in the hashing API. Some boards may wish to enable the API without the
command. Add a separate CONFIG to permit this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/hash.c')
-rw-r--r-- | common/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/hash.c b/common/hash.c index b645298afc..a0eded98d0 100644 --- a/common/hash.c +++ b/common/hash.c @@ -473,5 +473,5 @@ int hash_command(const char *algo_name, int flags, cmd_tbl_t *cmdtp, int flag, return 0; } -#endif -#endif +#endif /* CONFIG_CMD_HASH || CONFIG_CMD_SHA1SUM || CONFIG_CMD_CRC32) */ +#endif /* !USE_HOSTCC */ |