From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 03 Aug 2022 15:11:46 +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 1oJEA4-00A3Dj-E9 for lore@lore.pengutronix.de; Wed, 03 Aug 2022 15:11:46 +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 1oJEA5-0005rN-Sk; Wed, 03 Aug 2022 15:11:45 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oJE9b-0005n1-Qk for ptxdist@pengutronix.de; Wed, 03 Aug 2022 15:11:17 +0200 Received: from adahl by ada.ifak-system.com with local (Exim 4.92) (envelope-from ) id 1oJE9a-0001lB-HZ for ptxdist@pengutronix.de; Wed, 03 Aug 2022 15:11:14 +0200 From: Alexander Dahl To: ptxdist@pengutronix.de Date: Wed, 3 Aug 2022 15:11:14 +0200 Message-Id: <20220803131114.6722-1-ada@thorsis.com> Content-Transfer-Encoding: 8bit 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] [PATCH] u-boot: Use host pkg-config to find host tool dependencies 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 Since U-Boot version 2015.07 U-Boot host tools might require host-openssl, depending on options set in U-Boot Kconfig. An option to depend on host openssl was added to ptxdist with commit 0c779a60e50c ("u-boot: Add option to depend on host-openssl") already. This is not enough however, because 'sysroot-cross/bin/pkg-config' is used instead of 'sysroot-host/bin/pkg-config' to discover libssl dependencies. This might not lead to build failures right away because U-Boot has a fallback in its tools/Makefile masking the problem. The problem might also be masked if a libssl-dev is installed on the build host (outside of ptxdist). Using the same approach as barebox package template does since commit 1d7a4f8374d0 ("template-barebox-make: make sure the correct pkg-config is used") lets ptxdist call the correct pkg-config. Note: you can not backport this change to ptxdist lower than 2018.09.0, see link below for detailed discussion. Signed-off-by: Alexander Dahl Link: https://lore.ptxdist.org/ptxdist/10086649.DBdDmKp7kz@ada/T/#t --- rules/u-boot.make | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/u-boot.make b/rules/u-boot.make index ac5a7786b..cadca4a6b 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -49,6 +49,9 @@ U_BOOT_ENV_IMAGE_CUSTOM_SRC := $(call ptx/in-platformconfigdir, \ $(call ptx/cfghash-file, U_BOOT, $(U_BOOT_ENV_IMAGE_CUSTOM_SRC)) endif +# use host pkg-config for host tools +U_BOOT_PATH := PATH=$(HOST_PATH) + U_BOOT_WRAPPER_BLACKLIST := \ $(PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST) base-commit: faf247a8448d4d9caae487beb54d285ac3a6a1b8 -- 2.30.2