]> git.karo-electronics.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:18:43 +0000 (14:18 +0200)
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