summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/image.h1
-rw-r--r--lib_generic/Makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index d2e78fe..dcf3a7b 100644
--- a/include/image.h
+++ b/include/image.h
@@ -56,6 +56,7 @@
#include <libfdt.h>
#include <fdt_support.h>
#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 c17179c..4b8ed3a 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