From: Mike Frysinger Date: Mon, 18 Jan 2010 02:08:00 +0000 (-0500) Subject: sha1: add dedicated config option X-Git-Tag: v2010.03-rc1~128 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dac4d7e8849d275023ea2fcae6caf941db91c042;p=u-boot sha1: add dedicated config option The sha1 code is currently compiled for everyone, but in reality, it's only used by the FIT code. So make it optional just like MD5. Signed-off-by: Mike Frysinger --- diff --git a/include/image.h b/include/image.h index d2e78fe298..dcf3a7bb18 100644 --- a/include/image.h +++ b/include/image.h @@ -56,6 +56,7 @@ #include #include #define CONFIG_MD5 /* FIT images need MD5 support */ +#define CONFIG_SHA1 /* and SHA1 */ #endif /* diff --git a/lib_generic/Makefile b/lib_generic/Makefile index c17179cbc8..4b8ed3ad50 100644 --- a/lib_generic/Makefile +++ b/lib_generic/Makefile @@ -42,7 +42,7 @@ COBJS-y += lmb.o COBJS-y += ldiv.o COBJS-$(CONFIG_MD5) += md5.o COBJS-y += net_utils.o -COBJS-y += sha1.o +COBJS-$(CONFIG_SHA1) += sha1.o COBJS-$(CONFIG_SHA256) += sha256.o COBJS-y += string.o COBJS-y += strmhz.o