diff mbox series

lib: rsa: consider CONFIG_SPL_RSA

Message ID 20200119082622.62912-1-xypron.glpk@gmx.de
State Accepted
Commit 1b27753a963071165e12afa4a7516096881184be
Headers show
Series lib: rsa: consider CONFIG_SPL_RSA | expand

Commit Message

Heinrich Schuchardt Jan. 19, 2020, 8:26 a.m. UTC
CONFIG_SPL_RSA is meant to control if lib/rsa/* is used for SPL. Adjust
lib/Makefile to consider this setting.

This was correctly setup with commit 51c14cd128f4 ("verified-boot: Minimal
support for booting U-Boot proper from SPL") and got lost with commit
089df18bfe9d ("lib: move hash CONFIG options to Kconfig").

Fixes: 089df18bfe9d ("lib: move hash CONFIG options to Kconfig")
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
There currently is no CONFIG_TPL_RSA. I guess it is save to leave the
TPL case unchanged.
---
 lib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.24.1

Comments

Tom Rini Jan. 25, 2020, 5:09 p.m. UTC | #1
On Sun, Jan 19, 2020 at 09:26:22AM +0100, Heinrich Schuchardt wrote:

> CONFIG_SPL_RSA is meant to control if lib/rsa/* is used for SPL. Adjust
> lib/Makefile to consider this setting.
> 
> This was correctly setup with commit 51c14cd128f4 ("verified-boot: Minimal
> support for booting U-Boot proper from SPL") and got lost with commit
> 089df18bfe9d ("lib: move hash CONFIG options to Kconfig").
> 
> Fixes: 089df18bfe9d ("lib: move hash CONFIG options to Kconfig")
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/lib/Makefile b/lib/Makefile
index 51eba80b89..15259d0473 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -58,7 +58,7 @@  obj-$(CONFIG_TPM_V1) += tpm-v1.o
 obj-$(CONFIG_TPM_V2) += tpm-v2.o
 endif

-obj-$(CONFIG_RSA) += rsa/
+obj-$(CONFIG_$(SPL_)RSA) += rsa/
 obj-$(CONFIG_SHA1) += sha1.o
 obj-$(CONFIG_SHA256) += sha256.o