mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] u-boot: Add option to depend on host-openssl
@ 2021-11-30 17:07 Alexander Dahl
  2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2021-11-30 17:07 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl, Christian Melki

Recent U-Boot v2021.10 introduced a target-independent config option to
build host tools with OpenSSL support (for signed images). Because we
can not depend on some of U-Boot's Kconfig options we follow the same
approach as kernel and barebox package and add a menu switch for that.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 platforms/u-boot.in | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 4ddf3b3fb..d5410e4a1 100644
--- a/platforms/u-boot.in
+++ b/platforms/u-boot.in
@@ -2,6 +2,7 @@
 
 menuconfig U_BOOT
 	select BOOTLOADER
+	select HOST_OPENSSL	if U_BOOT_NEEDS_HOST_OPENSSL
 	prompt "U-Boot                        "
 	bool
 
@@ -247,5 +248,17 @@ config U_BOOT_INSTALL_U_BOOT_STM32
 	  platform image directory. Say yes if you are building for STM32MP1
 	  SOCs.
 
+config U_BOOT_NEEDS_HOST_OPENSSL
+	prompt "needs host OpenSSL"
+	bool
+	help
+	  Newer host U-Boot tools can sign images and use OpenSSL for that.
+	  It is most probably needed if your board config does not disable
+	  CONFIG_TOOLS_LIBCRYPTO.
+	
+	  Select this if you're unsure, as it won't hurt.
+	  It might just increase the build time, if no other package has
+	  host openssl selected.
+
 endif
 

base-commit: 70205d7cc77ff2bd36860291bf767f91bb4bc989
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


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

* Re: [ptxdist] [APPLIED] u-boot: Add option to depend on host-openssl
  2021-11-30 17:07 [ptxdist] [PATCH] u-boot: Add option to depend on host-openssl Alexander Dahl
@ 2021-12-10 13:07 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-12-10 13:07 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as 0c779a60e50c40d522b1e9c20b5c75b2e57fde5a.

Michael

[sent from post-receive hook]

On Fri, 10 Dec 2021 14:07:04 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> Recent U-Boot v2021.10 introduced a target-independent config option to
> build host tools with OpenSSL support (for signed images). Because we
> can not depend on some of U-Boot's Kconfig options we follow the same
> approach as kernel and barebox package and add a menu switch for that.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20211130170700.92877-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 4ddf3b3fb02d..d5410e4a16df 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -2,6 +2,7 @@
>  
>  menuconfig U_BOOT
>  	select BOOTLOADER
> +	select HOST_OPENSSL	if U_BOOT_NEEDS_HOST_OPENSSL
>  	prompt "U-Boot                        "
>  	bool
>  
> @@ -247,5 +248,17 @@ config U_BOOT_INSTALL_U_BOOT_STM32
>  	  platform image directory. Say yes if you are building for STM32MP1
>  	  SOCs.
>  
> +config U_BOOT_NEEDS_HOST_OPENSSL
> +	prompt "needs host OpenSSL"
> +	bool
> +	help
> +	  Newer host U-Boot tools can sign images and use OpenSSL for that.
> +	  It is most probably needed if your board config does not disable
> +	  CONFIG_TOOLS_LIBCRYPTO.
> +	
> +	  Select this if you're unsure, as it won't hurt.
> +	  It might just increase the build time, if no other package has
> +	  host openssl selected.
> +
>  endif
>  

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


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

end of thread, other threads:[~2021-12-10 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 17:07 [ptxdist] [PATCH] u-boot: Add option to depend on host-openssl Alexander Dahl
2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox