All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA'
@ 2018-04-21 12:00 Eugeniu Rosca
  2018-04-25  5:01 ` Simon Glass
  2018-04-28 22:20 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Eugeniu Rosca @ 2018-04-21 12:00 UTC (permalink / raw)
  To: u-boot

RSA_SOFTWARE_EXP and RSA_FREESCALE_EXP are wrapped inside:

if RSA
	...
endif

So, remove the redundant "depends on RSA" from their depends expression.
In addition, move SPL_RSA into the same "if RSA ... endif" block, since
its only direct dependeny is CONFIG_RSA. This tidies up and simplifies
reading of lib/rsa/Kconfig.

No functional change intended.

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
---
 lib/rsa/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig
index fde1ac108d0f..2b33f323bccc 100644
--- a/lib/rsa/Kconfig
+++ b/lib/rsa/Kconfig
@@ -13,14 +13,14 @@ config RSA
 	  option. The software based modular exponentiation is built into
 	  mkimage irrespective of this option.
 
+if RSA
+
 config SPL_RSA
 	bool "Use RSA Library within SPL"
-	depends on RSA
 
-if RSA
 config RSA_SOFTWARE_EXP
 	bool "Enable driver for RSA Modular Exponentiation in software"
-	depends on DM && RSA
+	depends on DM
 	help
 	  Enables driver for modular exponentiation in software. This is a RSA
 	  algorithm used in FIT image verification. It required RSA Key as
@@ -29,7 +29,7 @@ config RSA_SOFTWARE_EXP
 
 config RSA_FREESCALE_EXP
 	bool "Enable RSA Modular Exponentiation with FSL crypto accelerator"
-	depends on DM && RSA && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
+	depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
 	help
 	Enables driver for RSA modular exponentiation using Freescale cryptographic
 	accelerator - CAAM.
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA'
  2018-04-21 12:00 [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA' Eugeniu Rosca
@ 2018-04-25  5:01 ` Simon Glass
  2018-04-28 22:20 ` [U-Boot] " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2018-04-25  5:01 UTC (permalink / raw)
  To: u-boot

On 21 April 2018 at 06:00, Eugeniu Rosca <roscaeugeniu@gmail.com> wrote:
> RSA_SOFTWARE_EXP and RSA_FREESCALE_EXP are wrapped inside:
>
> if RSA
>         ...
> endif
>
> So, remove the redundant "depends on RSA" from their depends expression.
> In addition, move SPL_RSA into the same "if RSA ... endif" block, since
> its only direct dependeny is CONFIG_RSA. This tidies up and simplifies
> reading of lib/rsa/Kconfig.
>
> No functional change intended.
>
> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
> ---
>  lib/rsa/Kconfig | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] lib/rsa: Kconfig: Remove superfluous 'depends on RSA'
  2018-04-21 12:00 [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA' Eugeniu Rosca
  2018-04-25  5:01 ` Simon Glass
@ 2018-04-28 22:20 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2018-04-28 22:20 UTC (permalink / raw)
  To: u-boot

On Sat, Apr 21, 2018 at 02:00:10PM +0200, Eugeniu Rosca wrote:

> RSA_SOFTWARE_EXP and RSA_FREESCALE_EXP are wrapped inside:
> 
> if RSA
> 	...
> endif
> 
> So, remove the redundant "depends on RSA" from their depends expression.
> In addition, move SPL_RSA into the same "if RSA ... endif" block, since
> its only direct dependeny is CONFIG_RSA. This tidies up and simplifies
> reading of lib/rsa/Kconfig.
> 
> No functional change intended.
> 
> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180428/8d00aca3/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-28 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-21 12:00 [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA' Eugeniu Rosca
2018-04-25  5:01 ` Simon Glass
2018-04-28 22:20 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.