diff mbox

[U-Boot,v2] rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

Message ID 1425008406-13603-1-git-send-email-gaurav.rana@freescale.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

gaurav rana Feb. 27, 2015, 3:40 a.m. UTC
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>
Reviewed-by: Simon Glass <sjg@chromium.org>
CC: Simon Glass <sjg@chromium.org>
---
Changes in v2:
add elaborated commit message.

 drivers/crypto/rsa_mod_exp/Makefile | 3 ++-
 lib/rsa/Makefile                    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Comments

Simon Glass March 2, 2015, 6:55 p.m. UTC | #1
On 26 February 2015 at 20:40, Gaurav Rana <gaurav.rana@freescale.com> wrote:
> 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>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> CC: Simon Glass <sjg@chromium.org>
> ---
> Changes in v2:
> add elaborated commit message.
>
>  drivers/crypto/rsa_mod_exp/Makefile | 3 ++-
>  lib/rsa/Makefile                    | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>
York Sun March 5, 2015, 8:12 p.m. UTC | #2
On 02/26/2015 07:40 PM, Gaurav Rana wrote:
> 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>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> CC: Simon Glass <sjg@chromium.org>
> ---
> Changes in v2:
> add elaborated commit message.
> 


Applied to u-boot-mpc85xx master, awaiting for upstream.

York
diff mbox

Patch

diff --git a/drivers/crypto/rsa_mod_exp/Makefile b/drivers/crypto/rsa_mod_exp/Makefile
index 915b751..ae3dcf3 100644
--- a/drivers/crypto/rsa_mod_exp/Makefile
+++ b/drivers/crypto/rsa_mod_exp/Makefile
@@ -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
diff --git a/lib/rsa/Makefile b/lib/rsa/Makefile
index cc25b3c..6867e50 100644
--- a/lib/rsa/Makefile
+++ b/lib/rsa/Makefile
@@ -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