summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZhongfu Luo <zhongfu.luo@amlogic.com>2017-06-09 14:19:49 +0800
committerXiaobo Gu <xiaobo.gu@amlogic.com>2017-07-21 20:53:18 +0800
commit0c66c418949c6933bb0988be600df7c52dce74b8 (patch)
treeb288ebe88e6a0ff7b090fec963d21ff4105161d7 /lib
parentc84ed15645cce0011b5f648b2c8bfbeaa7913172 (diff)
downloadu-boot-odroid-c1-0c66c418949c6933bb0988be600df7c52dce74b8.tar.gz
Add amlogic hardware sha2 function
usege: add "#define CONFIG_AML_HW_SHA2" in header file of board Bandwidth up to 180 MB/s when compute 1 MB data Change-Id: I6a72db137a02d93c6809283e424c34fa194854b1
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 07d175f45e..a963d6eb41 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -35,8 +35,12 @@ obj-y += net_utils.o
obj-$(CONFIG_PHYSMEM) += physmem.o
obj-y += qsort.o
obj-$(CONFIG_SHA1) += sha1.o
+
+ifndef CONFIG_AML_HW_SHA2
obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
obj-$(CONFIG_SHA256) += sha256.o
+endif
+
obj-y += strmhz.o
obj-$(CONFIG_TPM) += tpm.o
obj-$(CONFIG_RBTREE) += rbtree.o