Skip to content
Commit 48ad68de authored by Tom Rini's avatar Tom Rini
Browse files

hash.c: Conditionally compile hash_command, static hash_show



The function hash_show is now only called by hash_command, so mark it as
static (and drop from hash.h).  We only call hash_command when any of
CONFIG_CMD_CRC32, CONFIG_CMD_SHA1SUM or CONFIG_CMD_HASH are set.  Since
hash.c is linked in unconditionally we must take extra care with
functions that bring in read-only strings as these will not be
discarded.

Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent d29892ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment