From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 25 Jul 2022 16:42:35 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oFzI4-003GGX-KH for lore@lore.pengutronix.de; Mon, 25 Jul 2022 16:42:35 +0200 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 1oFzI3-0003Jn-5J; Mon, 25 Jul 2022 16:42:35 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oFzHH-0003Jd-6a for ptxdist@pengutronix.de; Mon, 25 Jul 2022 16:41:47 +0200 From: Alexander Dahl To: ptxdist@pengutronix.de Date: Mon, 25 Jul 2022 16:41:45 +0200 Message-ID: <15979690.J2xNbxXsf2@ada> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Clacks-Overhead: GNU Terry Pratchett 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 autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] Build U-Boot against host-openssl fails 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 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 Hei hei, although claiming it's optional latest U-Boot versions require OpenSSL on t= he=20 host.=B9 I added an option to build host-openssl with commit=20 0c779a60e50c40d522b1e9c20b5c75b2e57fde5a ("u-boot: Add option to depend on= =20 host-openssl") but ptxdist u-boot package still fails to link to host opens= sl=20 package, message is always missing some openssl symbols. I tried the same thing as barebox now in rules/u-boot.make like this: +# use host pkg-config for host tools +U_BOOT_PATH :=3D PATH=3D$(HOST_PATH) This does not help.=20 I'm somehow suspecting the wrong pkg-config is called. Affected is not the= =20 target image, but the host tools (like mkimage) built alongside with the=20 target stuff (which you 1) can not disable to build and 2) need for certain= =20 parts of the ptxdist package anyways, so not building those is no option). I tried each combination of PTXCONF_U_BOOT_NEEDS_HOST_OPENSSL and=20 CONFIG_TOOLS_LIBCRYPTO in U-Boot kconfig, all fail. buildroot has a fix for building against host-openssl, but I don't understa= nd=20 it, and I'm not sure if the same approach would work in ptxdist. Any ideas? (Disclaimer: this only happens on a quite recent U-Boot, e.g. from 2022.) (More disclaimer: it does not happen if libssl-dev is installed on the buil= d=20 host.) Greets Alex =B9 I consider this a bug, and I'm not the only one, but several attempts t= o fix=20 this in upstream U-Boot did not lead to merge any fix.