From patchwork Tue Jan 18 04:39:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 532855 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp3352294imp; Mon, 17 Jan 2022 20:40:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJOSXo/UU0WyUDF5B0cH/Gq+ruAhDNPcHiu9r9hy7lAHe+fSVMV3AFedpvA6C+qKclC41Y X-Received: by 2002:a17:907:9804:: with SMTP id ji4mr19133360ejc.417.1642480850420; Mon, 17 Jan 2022 20:40:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642480850; cv=none; d=google.com; s=arc-20160816; b=pMsdmjtTdE8QzfU5sD+Iv9PQFHMbQM3r4JDOygwp1nzelUinI4YKn8la21FFjBQH4P ydtX72mdy/Dn2lZKjUXImIfUuvmOB8S0DtHoAZyhALwxo2JqJpLzvmItUkjfo6odPs3O RaMB4An4r1GihzlN/fjo/CTN44f1fDcZSVTgZAan5y+hindrUiDj+Ondo8rg5ES4zgSC vuZ/pjawveUYzt9PoMa8LZb1iIdpBvYiTkftmaglMrX9St4NJFY9VtD9KHml/k2Thpnn agf6AqV29U23bbv79kmhOvEZgLLS/T4NFjHZ9z812unOPTT3g0hZtAi5ATGdo7Kj6krW d/7Q== 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=COOrhWQRImF30pzwi3i54Aj2RSNSuqXyqpXlD6brVhw=; b=VS6j64F/yalfV9/uDrwrOqxdpodWPLypCGj3dqSa6cXU0DubZy0+SysoLbKkzwrkZ6 nzq3bcs1hJjksHQEGTTYX5msMsm74MXLHQrFngkFfr9X11NxsNZZFq78diFZ6RtlRPMO 2XJBPqEz8M0DQbBS412ZxV3aRPZpOY/k8/vzJkdtxmXZjgr5pqRRAR+pKVmM9Xr92jBC 3MdLQ16ynXI88RXErHzMbDTO3YlKGuqI9U2wke81Ga11ykwjFMfxSK8opusMdLppktzK RY+130PXYC+zmMnZ8vvNkk4Ut1IFZgdQyhOjLgjZobBA/xoOrBxqqg2iM82ReqSUWq+S 0vtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dLY6+Yrn; 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 bm8si8195626edb.436.2022.01.17.20.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 20:40:50 -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=dLY6+Yrn; 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 29DB9834A0; Tue, 18 Jan 2022 05:40:40 +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="dLY6+Yrn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BAEB583180; Tue, 18 Jan 2022 05:40:31 +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-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (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 7B20F83388 for ; Tue, 18 Jan 2022 05:40:26 +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-pl1-x633.google.com with SMTP id c6so14828455plh.6 for ; Mon, 17 Jan 2022 20:40:26 -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=COOrhWQRImF30pzwi3i54Aj2RSNSuqXyqpXlD6brVhw=; b=dLY6+Yrnj6tiWqs/UoNFJ5vtUmUDfDeRzOpOBq48DedQ7i6Ugzk/rg7i2NbPyWzF2o B5xsqPVG3kvKaH748Vw7IbdwG8kqk3nSxxjA8gw9PmIzaevcXCwOTjcEbj+Hhv8cmKC/ NG7aU2KOzg7zzwmMCib29jtPEhNkdWAvjOCHNvDxWPEhzAxifxRtSqV7465JCnhMr8Be iFuemyR5vm8UbXZuZ7e/QkxmGbub+6h8m/8/ieG3nhRyC9woUVoxzhpEB2bRo0V9f9gh uGC7dqx2cs+aED/T6JqQaq0Z2xnmIYx2TI9yLHtvzUlYd+/u2GkUKhly+4xuWrhpjyek dbUA== 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=COOrhWQRImF30pzwi3i54Aj2RSNSuqXyqpXlD6brVhw=; b=hjxg8wOoyPiqg7FlHJqd3FwqRqiSSvqCVvCN6OtSVvqq54nGzYwWpnVwxc0atesNzC yVDERqZ/fokbvjchLsDPKtAkyQo7XlXNVHdG/M78YYhR0wlTXNZpdF8uAyQfWQtvied7 ox1upE93BXo6Irt31Z0/HXV8EHsEFuEPpLmZ9q1ntp6z6rvxMKGLyipGlhKyN4BekvOh 9PIjAqPN6YjKh80k9GM5uLgmsqZ0r6FfOqqnBPismpf+jsyuk0hJFV1VMaCtmEZnXKdw Psqmx/qvEXtlKCQyqJFclMYRCiaRtFTeqKK8pR7+jhzvCn+7ajd8il4IH44blD4BxUrA 6W7g== X-Gm-Message-State: AOAM531oEgs8TwTP7AKT4wFiAs1SU3LLiH0/OcerHrwb5J0f0av94IoE oI3r/bd9fDVK9o+T2+UCvzoe5Q== X-Received: by 2002:a17:902:d4c5:b0:14a:4dc5:ebc5 with SMTP id o5-20020a170902d4c500b0014a4dc5ebc5mr26304583plg.24.1642480824943; Mon, 17 Jan 2022 20:40:24 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:bc1a:291e:ac91:be98]) by smtp.gmail.com with ESMTPSA id y69sm15670770pfg.171.2022.01.17.20.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 20:40:24 -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 v9 03/11] tools: build mkeficapsule with tools-only_defconfig Date: Tue, 18 Jan 2022 13:39:46 +0900 Message-Id: <20220118043954.55940-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220118043954.55940-1-takahiro.akashi@linaro.org> References: <20220118043954.55940-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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