From patchwork Tue Jul 19 19:00:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1658181 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LnSqk6VMKz9sFr for ; Wed, 20 Jul 2022 05:01:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6DD03827CA; Tue, 19 Jul 2022 19:01:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6DD03827CA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90JTp741NPPI; Tue, 19 Jul 2022 19:01:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 85A3A8270B; Tue, 19 Jul 2022 19:01:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 85A3A8270B X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7E9B01BF580 for ; Tue, 19 Jul 2022 19:01:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5F2388270B for ; Tue, 19 Jul 2022 19:01:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5F2388270B X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q2IhUSctygX0 for ; Tue, 19 Jul 2022 19:01:46 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6806C81306 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by smtp1.osuosl.org (Postfix) with ESMTPS id 6806C81306 for ; Tue, 19 Jul 2022 19:01:46 +0000 (UTC) Received: by mail-ed1-x530.google.com with SMTP id y4so20900526edc.4 for ; Tue, 19 Jul 2022 12:01:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0duXxbVNPgUy0+XRtpQg9wkcQ8lanIgDihHvuFEJegQ=; b=iIGwFUxxHKEtep20EnVpaCzxpSxPewaIQ7G09T5x9f9Jow25Nhirl7+D++jX5VwbgO moRs5DcgDZDRUPCKhr8QxavPfRoS/EVYksSeBJqhwKZ7df1J1ASGJtrsXl4x2bx/UmED YLsJ/69fbDGqz0qVVmL/YPIhjeAMvjVGZ33v4WXvtHEydlfZZ1jgJLPSMwX4425WriVa YWvYoDRsRMGYNJSfC/o+0ks/RpNMrnb2urJsMHC7mVw9z6CPHIA7v/b08qQCdVHwJUG2 AkyV3CIMxeP7P2/Ulzps7A06Bv68kzmVFhQyLFo78WdbL1HYAfOZdnqTpadKaTu8ZHM2 DdcA== X-Gm-Message-State: AJIora/JP3apgM+rn5KGA+Oo1EgbzduHVFRd2FGYgxh8aCUxM6gPczih X2kLY1hz5bkZ8T4Lc1tevJRGoKeYLe8= X-Google-Smtp-Source: AGRyM1urPOLMWXNZV8GqTeOxyMj800i4KHH6JvncOETRZrWvpvMynR0gpHXi7DM+fPhK5IIXenGB4Q== X-Received: by 2002:a05:6402:2554:b0:43a:902b:d31f with SMTP id l20-20020a056402255400b0043a902bd31fmr45647720edb.416.1658257303785; Tue, 19 Jul 2022 12:01:43 -0700 (PDT) Received: from hthiery.fritz.box ([2a02:810b:5a40:2a43:8e16:45ff:fe22:ad85]) by smtp.gmail.com with ESMTPSA id kb1-20020a170907924100b0072b1bc9b37fsm6967010ejb.22.2022.07.19.12.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 12:01:43 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Tue, 19 Jul 2022 21:00:50 +0200 Message-Id: <20220719190051.555180-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0duXxbVNPgUy0+XRtpQg9wkcQ8lanIgDihHvuFEJegQ=; b=ZMLC+c33hA2931USQgNh8KkKaX3uyyJunj47vhmrqoSkMI4q0Jptav63RaCR2kCgwd +PYgMWecJIdidfHpkOLDQqvtopW2PeWmGqZn6rKFVmF2FbQ3bpswU9VLkRe9T+WPg+F+ Vs6DF/6v/1s3w9RYvOGJ5zOfScsaYSem9g5BZxyBEJT7oeGf+RVF6lM4iEzLjOldBDEY cYkKhUVpNr+xRbYf3IygnO5ZBWxPRDHoYjvGZl7ScrI3YMDS6kVnCDJYyvqg/5Kzp6h1 i23sJ2iHJqdMmKRdoIoC5d4ANMVKHMoIBnbj9kzBLmu0FsZSGby5lH2rSerGGkOfVLrI j56g== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ZMLC+c33 Subject: [Buildroot] [PATCH 1/3] boot/uboot: add BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX option X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Since U-Boot 2022.04 a host dependency to util-linux (-luuid) is required if the U-Boot board configuration has CONFIG_TOOLS_MKEFICAPSULE enabled. So introduce a new BR U-Boot config option BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX to solve this problem. Signed-off-by: Heiko Thiery --- boot/uboot/Config.in | 8 ++++++++ boot/uboot/uboot.mk | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index 91d98c7e63..340b2d17ff 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -190,6 +190,14 @@ config BR2_TARGET_UBOOT_NEEDS_GNUTLS typically the case when the board configuration has CONFIG_TOOLS_MKEFICAPSULE enabled. +config BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX + bool "U-Boot needs util-linux" + help + Select this option if your U-Boot board configuration + requires util-linux (-luuid) to be available on the host. This is + typically the case when the board configuration has + CONFIG_TOOLS_MKEFICAPSULE enabled. + config BR2_TARGET_UBOOT_NEEDS_ATF_BL31 bool "U-Boot needs ATF BL31" depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 5808e30818..70d4d585f7 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -231,6 +231,10 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_GNUTLS),y) UBOOT_DEPENDENCIES += host-gnutls endif +ifeq ($(BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX),y) +UBOOT_DEPENDENCIES += host-util-linux +endif + # prior to u-boot 2013.10 the license info was in COPYING. Copy it so # legal-info finds it define UBOOT_COPY_OLD_LICENSE_FILE From patchwork Tue Jul 19 19:00:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1658182 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LnSrD42tYz9sFr for ; Wed, 20 Jul 2022 05:02:20 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0C786414CA; Tue, 19 Jul 2022 19:02:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0C786414CA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6LBHoDweMtHH; Tue, 19 Jul 2022 19:02:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id BC34C40921; Tue, 19 Jul 2022 19:02:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org BC34C40921 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 586501BF580 for ; Tue, 19 Jul 2022 19:02:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 32C7E81297 for ; Tue, 19 Jul 2022 19:02:13 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 32C7E81297 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iDYf366gGBXu for ; Tue, 19 Jul 2022 19:02:12 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6BC748128C Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by smtp1.osuosl.org (Postfix) with ESMTPS id 6BC748128C for ; Tue, 19 Jul 2022 19:02:12 +0000 (UTC) Received: by mail-ej1-x633.google.com with SMTP id ez10so28916545ejc.13 for ; Tue, 19 Jul 2022 12:02:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I5ps6DuAMMoafwNvV7ektfvZRcKVRvPgWG6COfl6+gM=; b=MxSMGxLFLPnJLarMm3NX9/wSoHu44pHcES5WxyTX6oayOEC/KWgbURuB47Va5WEjax NyrXdZh7pODaKdYLrZkDmgEV2k8mfPjTDCJqjUGVqqz1H8FYmi9nw8Njz5igl70PRQ9j oa69utGZ4LnunqLeaYFmaOZc6HbFz4EC12RmrPDDQE2cCg9ZUY20L48WT/KUxgqyujPj JeN/sq3PoPZbgcMY7uNluiK/zz43saNjKlQyLztzrMFiWrYlJN3W6Pt2JgHnL344+fGc RkVMGismTr/15suS154ZrapZSq5OJsRfEbmk0oBVaCnqI7Tq7IiF7YB3JHWwnzSZha2I mCsg== X-Gm-Message-State: AJIora/VsNred7DOLHmoYeshHHWILCc+s4YIkMybpa8Fsx6ZtPGg+sOy 627OnDFWdN6hAfDo7maYNolP8mRyEys= X-Google-Smtp-Source: AGRyM1vyaMJwwbhmLjgXhIPRDburSMD2DTheSZRNsSKMq2wfD/qpRATcUeXjMGYlPWY8OlfZs6crQg== X-Received: by 2002:a17:906:c152:b0:72f:3a21:7c35 with SMTP id dp18-20020a170906c15200b0072f3a217c35mr9406453ejc.476.1658257329911; Tue, 19 Jul 2022 12:02:09 -0700 (PDT) Received: from hthiery.fritz.box ([2a02:810b:5a40:2a43:8e16:45ff:fe22:ad85]) by smtp.gmail.com with ESMTPSA id kb1-20020a170907924100b0072b1bc9b37fsm6967010ejb.22.2022.07.19.12.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 12:02:09 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Tue, 19 Jul 2022 21:00:52 +0200 Message-Id: <20220719190051.555180-2-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719190051.555180-1-heiko.thiery@gmail.com> References: <20220719190051.555180-1-heiko.thiery@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I5ps6DuAMMoafwNvV7ektfvZRcKVRvPgWG6COfl6+gM=; b=FpFCJDr67SEP3OdbQlOs4xCFF1Fe2BSloNE8e4W/rf8835/vkcDXiyincmcE09Ffhc TKFACpTxPTEJLfH5hUptSrlQizk9wiSb0YUORy1eVL66eObrswsfMJnhLkKJvyXK7W5B U2NgYK4EPlu/k9KmM2k8x5Y2g6dLaoooxVtS6UGHs9npUUs/hsBHlXYliNPb7H09s/WQ pZSoRYbOTBkBV21xFLqRriVTrDlBoowAH0WR5PjbTX5/lQhy4SoGZPgEkxkqXPH5aUAw 75Jlv1KsGzTVTN4H6S21kpCJg2u7FiJX/U/EmbKPlhHUDzivS9cpReV1aNZOjT6WwnbB 7vGg== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=FpFCJDr6 Subject: [Buildroot] [PATCH 2/3] configs/kontron_pitx_imx8m_defconfig: add BR2_TARGET_UBOOT_NEEDS_GNUTLS X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" With U-Boot 2022.04 libuuid is required for building the host tool mkeficapsule. The lib is included in the util-linux package. Thus the BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX config is needed. Signed-off-by: Heiko Thiery --- configs/kontron_pitx_imx8m_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron_pitx_imx8m_defconfig b/configs/kontron_pitx_imx8m_defconfig index 7448f27980..ac03871682 100644 --- a/configs/kontron_pitx_imx8m_defconfig +++ b/configs/kontron_pitx_imx8m_defconfig @@ -48,6 +48,7 @@ BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31_BIN=y BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE=y +BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="flash.bin" BR2_TARGET_UBOOT_SPL=y From patchwork Tue Jul 19 19:00:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1658183 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LnSrT5gD8z9sFr for ; Wed, 20 Jul 2022 05:02:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 31BEA61153; Tue, 19 Jul 2022 19:02:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 31BEA61153 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cF92aI6A6cDX; Tue, 19 Jul 2022 19:02:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 46C9360C06; Tue, 19 Jul 2022 19:02:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 46C9360C06 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C73A81BF580 for ; Tue, 19 Jul 2022 19:02:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A050C4154F for ; Tue, 19 Jul 2022 19:02:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A050C4154F X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ycdd-Fryvb_C for ; Tue, 19 Jul 2022 19:02:22 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 54A144154A Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by smtp4.osuosl.org (Postfix) with ESMTPS id 54A144154A for ; Tue, 19 Jul 2022 19:02:22 +0000 (UTC) Received: by mail-ej1-x635.google.com with SMTP id sz17so28938983ejc.9 for ; Tue, 19 Jul 2022 12:02:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZUVrW2bdfBmIoDKm5WvpvOJOQfi4xm6ylpGlQaYbX8Y=; b=KrgctHKb+Hvu+x+w64hBn2CMzmiCOxiIV+V5zL2P0ckKdSxuHeviHpeskFReVFD4Fp W69djfq80oV0VdMyxUbP1UTTkbbFqARes+ncGeOZOrWzD6JAOIcBmiXTElQkRUgtZnJq +Y71hRTSV0bGhwJrFn5QOiVnc8v2arsA+yDJ10CKi1xlOCMq1J9yCLGrliUHEH+cX4E4 T9CC2ShwYEVC2WdWl1a0jsX5N3/ARSAm5/Paf3MZGLCROUacxGkpZkhJy4wpamwOGshX gKlfrScb82qAiAiV0aJPEjjhXUKzXo7prhMXcqybopfYJDd7ODO7dv2ou/96VbMstDTc 9Dpg== X-Gm-Message-State: AJIora/iiH9NfFmHF34xOOb7nNgvngc/hO6WqgbDVT9Y/fg0Pr+lm3vi GldiPhf32gayMDwKlovxT8QcPBt+cmc= X-Google-Smtp-Source: AGRyM1sSUCX2I7q+mhAtxOAOpp6rUDtkXiVlosH697TGLSHcq8sax/aJeb7KWkYLomkqJIXPd861HQ== X-Received: by 2002:a17:906:7308:b0:72f:3294:8002 with SMTP id di8-20020a170906730800b0072f32948002mr10800742ejc.311.1658257339504; Tue, 19 Jul 2022 12:02:19 -0700 (PDT) Received: from hthiery.fritz.box ([2a02:810b:5a40:2a43:8e16:45ff:fe22:ad85]) by smtp.gmail.com with ESMTPSA id kb1-20020a170907924100b0072b1bc9b37fsm6967010ejb.22.2022.07.19.12.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 12:02:18 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Tue, 19 Jul 2022 21:00:54 +0200 Message-Id: <20220719190051.555180-3-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719190051.555180-1-heiko.thiery@gmail.com> References: <20220719190051.555180-1-heiko.thiery@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZUVrW2bdfBmIoDKm5WvpvOJOQfi4xm6ylpGlQaYbX8Y=; b=ifekcrpKbdw+bC0JopQXzqKeWjQPxefJIFs3xqYzp++3qfqsLnloW6Htxn6Quf/8HD pxBhcSjGjDdZcXP9LoOX1BsRT19pgPKnVDuwD5Q1ifAmHerdVLzNoT7LJneu5zW6Z2FP YNhAPXsRrPAUekQLsLDNgU9C5f5RCy1neDiXpjEftAt/L8CshReVTxLsi7zJzsMnNfmU gX/ZN43GUyZmS6LcvSRSGk+Zsi3nBJIfzCxm/EYBkc/SqDVzzFmGS+W6NM7awkK8ExwG 1XHZPibVXB8OqgNZ3V31VC7agBKehutPhlAbpaMt1f3VjVRPwPSTCakqXgU/sjSbIfH8 dWhA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ifekcrpK Subject: [Buildroot] [PATCH 3/3] board/kontron/pitx-imx8m: add U-Boot 2022.04 patch X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The patch is required to fix an issue in U-Boot for linking the mkeficapsule tool against -luuid and -lgnutls. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/2720001065 Signed-off-by: Heiko Thiery --- ...le-use-pkg-config-to-get-luuid-and-l.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 board/kontron/pitx-imx8m/patches/uboot/2022.04/0001-tools-mkeficapsule-use-pkg-config-to-get-luuid-and-l.patch diff --git a/board/kontron/pitx-imx8m/patches/uboot/2022.04/0001-tools-mkeficapsule-use-pkg-config-to-get-luuid-and-l.patch b/board/kontron/pitx-imx8m/patches/uboot/2022.04/0001-tools-mkeficapsule-use-pkg-config-to-get-luuid-and-l.patch new file mode 100644 index 0000000000..9530a45efe --- /dev/null +++ b/board/kontron/pitx-imx8m/patches/uboot/2022.04/0001-tools-mkeficapsule-use-pkg-config-to-get-luuid-and-l.patch @@ -0,0 +1,33 @@ +From f3523977e8f5f6b2173708777001332431ebc609 Mon Sep 17 00:00:00 2001 +From: Heiko Thiery +Date: Tue, 19 Jul 2022 16:17:09 +0200 +Subject: [PATCH 1/2] tools: mkeficapsule: use pkg-config to get -luuid and -lgnutls + +Instead of hardcoding -luuid -lgnutls as the flags needed to build +mkeficapsule, use pkg-config when available. + +We gracefully fallback on the previous behavior of hardcoding -luuid +-lgnutls if pkg-config is not available or fails with an error. + +Signed-off-by: Heiko Thiery +--- + tools/Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tools/Makefile b/tools/Makefile +index 9f2339666a..9f6b282ad8 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -242,7 +242,8 @@ hostprogs-$(CONFIG_MIPS) += mips-relocs + hostprogs-$(CONFIG_ASN1_COMPILER) += asn1_compiler + HOSTCFLAGS_asn1_compiler.o = -idirafter $(srctree)/include + +-HOSTLDLIBS_mkeficapsule += -lgnutls -luuid ++HOSTLDLIBS_mkeficapsule += \ ++ $(shell pkg-config --libs gnutls uuid 2> /dev/null || echo "-lgnutls -luuid") + hostprogs-$(CONFIG_TOOLS_MKEFICAPSULE) += mkeficapsule + + # We build some files with extra pedantic flags to try to minimize things +-- +2.30.2 +