diff mbox

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

Message ID 1424432742-12026-1-git-send-email-gaurav.rana@freescale.com
State Superseded
Delegated to: York Sun
Headers show

Commit Message

gaurav rana Feb. 20, 2015, 11:45 a.m. UTC
Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com>
CC: Simon Glass <sjg@chromium.org>
---
 drivers/crypto/rsa_mod_exp/Makefile | 3 ++-
 lib/rsa/Makefile                    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Comments

Simon Glass Feb. 23, 2015, 6:15 p.m. UTC | #1
On 20 February 2015 at 04:45, Gaurav Rana <gaurav.rana@freescale.com> wrote:
> Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com>
> CC: Simon Glass <sjg@chromium.org>

Reviewed-by: Simon Glass <sjg@chromium.org>

(please always add a commit message)

> ---
>  drivers/crypto/rsa_mod_exp/Makefile | 3 ++-
>  lib/rsa/Makefile                    | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>
> 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
> --
> 1.8.1.4
>
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