From patchwork Mon Dec 20 05:02:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 526041 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp3767983imb; Sun, 19 Dec 2021 21:04:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/XjH0RdRonJ1xIFPQ6eTshF1txiz+2OrKLc/yqwxRJZnWc6+6C2ILTh3DGu4m01gnfMc2 X-Received: by 2002:a17:907:3f29:: with SMTP id hq41mr2872335ejc.86.1639976648067; Sun, 19 Dec 2021 21:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639976648; cv=none; d=google.com; s=arc-20160816; b=CAgQlvTwGYuVQ1mHEFCCs5G4CkmkNoXMXs1EIPRzRsXtPAm+O6tMg9DmAK7bVbrfO3 oeRLYGNJtPhJKW2sZwCkHZFGwmCpsWiCM7qCeKFgW0VsV6a5YSxDSzSRXcbzxMRxGuBY tGqUKFmtbmWqswxx8od6Tqtq1XkZYeA13RjtPL9juMq0N6XMf4kXOgS8UUj+Ga0rHJv1 zYysw6GkxY7ObDDL9n8Z1fiu0+dUz3UP7jmzz8sHflILtRFRyrNShptfAvIdVFQMUZvu T7LyW7u/LOiPD66GCYtSj/y+0TWg1kW3eiuQFzDr98tziF5TEE2h4Fha5ljKLpODTLBz gXyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/LTGacDZ6Ga7gtAC9oQtlELkbcJXja4lRH8+FQeVK18=; b=W0ymm3zx5XaiT5iSm37rtD6W8kb5fTnxuTPNN9eTssgX024Uc1LKrDQHiiuR3rNbSw WhxYJz/02W2wtCaS/A1fpPehFis26jMGQg5T+2NbayYDmDj8kOUzEvvA72F2359sVEYm V/DcWpSmWjM20Qkb60vY2jnbHnVligJkmKiknfrtGnAyKYn8sDTXvxgToaGgjZd8grC1 FWVGBlx9NoavcFbVlg/PWmjj4038fAp+Jxfk4LP32XwXdw5BdOW0c4H4T/kSZfPhQ7WU 9adrUHLw22BhYMt2ZYK9zMUwLOKPIhC64WnnFtC+TPCAHO2eyniubb0yO+uU+1CPwt/E BbqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aORUs3hS; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id sd40si1557429ejc.41.2021.12.19.21.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Dec 2021 21:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aORUs3hS; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 304A0831D7; Mon, 20 Dec 2021 06:03:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="aORUs3hS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2F39830A0; Mon, 20 Dec 2021 06:03:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BBD28830A0 for ; Mon, 20 Dec 2021 06:03:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pf1-x42e.google.com with SMTP id m1so6624863pfk.8 for ; Sun, 19 Dec 2021 21:03:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/LTGacDZ6Ga7gtAC9oQtlELkbcJXja4lRH8+FQeVK18=; b=aORUs3hSXE4h9lX5ZJvlh27KSK4qWVcIGg6j+yaHrgAZzgBLmECnaZ6dfn5Yd8MJ7R plDM7D9DLu99rd6SVFtbokpOjjtfASG6PPUMmzVamXD8Hm2rsHCZbZQZDb8mTnEPeFBp oCdnoJHmRAhrjJV4UMiawqtbHQajGMrjnowmEuW1Z4GLqaYL9NIcZwxsFj3C0YKGTRdk iTOCl//dZR1Fqapny3r2AC+lvIzUDDRT2Ii6rVhqoHqPusrjJVuirVbo+OewV00WtXrE ++GWMSLxj6ykn12l5dE4dkPDHVQULJlp1U/TCgYACDj8BCeiKEnXqeGV/PMcnn72VkLi v8Jw== 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=/LTGacDZ6Ga7gtAC9oQtlELkbcJXja4lRH8+FQeVK18=; b=r5xZE2c/Ug74jgA1SqdqcHOf7NZ1qfYlZfooesUqe9ERff2cE13/1VPF6nVd/8FoTX w/tr3lCw+DPBVK7uopLUoGXrHHQwVRUGvpDlYu9/L62OFh0H+o5AF8dAMMmehKi1NxdA OETCkXimri08SAFf2SwErN/7zWPycYvbTUU4NMBsZmA8QkPDpXrIOibgv9Dih4EIF22C xDzje0vNB62/0q7MXpI95PehNmlpUGx3sXbyEuWVcO6Hpg9zCbmPCiK2alKxCuUNE5hK QwLpmNLM9HxRT6N04seyOOZ9XDluhOniqlFhYM4bKUVFxZGeU0OQ7OL9cYitWJEZdXgL v6UA== X-Gm-Message-State: AOAM533l5HPKr1/rI42JYoVI/BiFucGMtCieddLOeXncOkBjeF6HZ225 /5qo/QerhEpx89buaBQEJ+qnGg== X-Received: by 2002:aa7:9249:0:b0:4a2:d1c5:c94b with SMTP id 9-20020aa79249000000b004a2d1c5c94bmr14566053pfp.45.1639976624887; Sun, 19 Dec 2021 21:03:44 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:89bf:be4:468d:12c2]) by smtp.gmail.com with ESMTPSA id mu2sm4581163pjb.43.2021.12.19.21.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Dec 2021 21:03:44 -0800 (PST) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org Cc: ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org, masami.hiramatsu@linaro.org, mark.kettenis@xs4all.nl, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v8 02/12] tools: build mkeficapsule with tools-only_defconfig Date: Mon, 20 Dec 2021 14:02:43 +0900 Message-Id: <20211220050253.31163-3-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211220050253.31163-1-takahiro.akashi@linaro.org> References: <20211220050253.31163-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Add CONFIG_TOOLS_MKEFICAPSULE. Then we want to always build mkeficapsule if tools-only_defconfig is used. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- configs/tools-only_defconfig | 1 + tools/Kconfig | 8 ++++++++ tools/Makefile | 3 +-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configs/tools-only_defconfig b/configs/tools-only_defconfig index f482c9a1c1b0..5427797dd4c3 100644 --- a/configs/tools-only_defconfig +++ b/configs/tools-only_defconfig @@ -31,3 +31,4 @@ CONFIG_I2C_EDID=y # CONFIG_VIRTIO_MMIO is not set # CONFIG_VIRTIO_PCI is not set # CONFIG_VIRTIO_SANDBOX is not set +CONFIG_TOOLS_MKEFICAPSULE=y diff --git a/tools/Kconfig b/tools/Kconfig index 91ce8ae3e516..117c921da3fe 100644 --- a/tools/Kconfig +++ b/tools/Kconfig @@ -90,4 +90,12 @@ config TOOLS_SHA512 help Enable SHA512 support in the tools builds +config TOOLS_MKEFICAPSULE + bool "Build efimkcapsule command" + default y if EFI_CAPSULE_ON_DISK + help + This command allows users to create a UEFI capsule file and, + optionally sign that file. If you want to enable UEFI capsule + update feature on your target, you certainly need this. + endmenu diff --git a/tools/Makefile b/tools/Makefile index 1763f44cac43..766c0674f4a0 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -238,8 +238,7 @@ hostprogs-$(CONFIG_MIPS) += mips-relocs hostprogs-$(CONFIG_ASN1_COMPILER) += asn1_compiler HOSTCFLAGS_asn1_compiler.o = -idirafter $(srctree)/include -mkeficapsule-objs := mkeficapsule.o $(LIBFDT_OBJS) -hostprogs-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += mkeficapsule +hostprogs-$(CONFIG_TOOLS_MKEFICAPSULE) += mkeficapsule # We build some files with extra pedantic flags to try to minimize things # that won't build on some weird host compiler -- though there are lots of