From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 30 Nov 2021 18:08:06 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ms6bu-0003r0-GA for lore@lore.pengutronix.de; Tue, 30 Nov 2021 18:08:06 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ms6bu-0004es-3P; Tue, 30 Nov 2021 18:08:06 +0100 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ms6bF-0004eZ-1k for ptxdist@pengutronix.de; Tue, 30 Nov 2021 18:07:26 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id 882662A8A for ; Tue, 30 Nov 2021 18:07:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZPccInTzNq5i for ; Tue, 30 Nov 2021 18:07:18 +0100 (CET) Received: by mail.thorsis.com (Postfix, from userid 109) id 4AE932A80; Tue, 30 Nov 2021 18:07:18 +0100 (CET) From: Alexander Dahl To: ptxdist@pengutronix.de Date: Tue, 30 Nov 2021 18:07:00 +0100 Message-Id: <20211130170700.92877-1-ada@thorsis.com> X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] u-boot: Add option to depend on host-openssl X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl , Christian Melki MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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 --- 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