]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP
authorgaurav rana <gaurav.rana@freescale.com>
Fri, 27 Feb 2015 03:40:06 +0000 (09:10 +0530)
committerYork Sun <yorksun@freescale.com>
Thu, 5 Mar 2015 20:04:59 +0000 (12:04 -0800)
Remove dependency of rsa_mod_exp from CONFIG_FIT_SIGNATURE.
As rsa modular exponentiation is an independent module
and can be invoked independently.

Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com>
Acked-by: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/crypto/rsa_mod_exp/Makefile
lib/rsa/Makefile

index 915b751dbe110ae7bc41e397658dadb74467913b..ae3dcf3d7ae9843c9eec402daeacc88fdcfd3f71 100644 (file)
@@ -4,4 +4,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-$(CONFIG_RSA) += mod_exp_uclass.o mod_exp_sw.o
+obj-$(CONFIG_RSA) += mod_exp_uclass.o
+obj-$(CONFIG_RSA_SOFTWARE_EXP) += mod_exp_sw.o
index cc25b3ce6d9232c60ff0b848632265b8a2788626..6867e5054c098c20a64b18cecb128cae9b548079 100644 (file)
@@ -7,4 +7,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-$(CONFIG_FIT_SIGNATURE) += rsa-verify.o rsa-checksum.o rsa-mod-exp.o
+obj-$(CONFIG_FIT_SIGNATURE) += rsa-verify.o rsa-checksum.o
+obj-$(CONFIG_RSA_SOFTWARE_EXP) += rsa-mod-exp.o