summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorDirk Eibach <dirk.eibach@gdsys.cc>2014-07-03 09:28:26 +0200
committerTom Rini <trini@ti.com>2014-07-07 19:47:19 -0400
commit9a4f479b649a611478ff1b983c9a30f9150a696b (patch)
treed2892d9f8dd33ae1567392595327b14cf9b86308 /include/image.h
parent4fb9b41b550c3620c4cd5c2490b8800465c220dd (diff)
downloadu-boot-imx-9a4f479b649a611478ff1b983c9a30f9150a696b.zip
u-boot-imx-9a4f479b649a611478ff1b983c9a30f9150a696b.tar.gz
u-boot-imx-9a4f479b649a611478ff1b983c9a30f9150a696b.tar.bz2
fit: make sha256 support optional
sha256 has some beefy memory footprint. Make it optional for constrained systems. Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 0a072f5..3e8f78d 100644
--- a/include/image.h
+++ b/include/image.h
@@ -72,6 +72,11 @@ struct lmb;
# define IMAGE_ENABLE_SHA256 1
# endif
+#ifdef CONFIG_FIT_DISABLE_SHA256
+#undef CONFIG_SHA256
+#undef IMAGE_ENABLE_SHA256
+#endif
+
#ifndef IMAGE_ENABLE_CRC32
#define IMAGE_ENABLE_CRC32 0
#endif