From patchwork Wed Feb 9 10:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 541084 Delivered-To: patch@linaro.org Received: by 2002:ad5:420f:0:0:0:0:0 with SMTP id e15csp1207585imo; Wed, 9 Feb 2022 02:11:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSPUj+vYa1xTVaXjgmV6XuKebUHMIEBiyaJgFbTHMplcPwHLvuIZxCreFrI0a27XC7/hzU X-Received: by 2002:a17:906:1d14:: with SMTP id n20mr1256139ejh.714.1644401504261; Wed, 09 Feb 2022 02:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401504; cv=none; d=google.com; s=arc-20160816; b=DxeKnz5vF21f7WBGP0gl4QBBWK90idroZG1qP3JSwQvRLf2maWWnS/9jFBLCmlIvyH EddE63MJrmaOVFHXWPekx3cFZOwW95zAidSP3SBDZOxfA0z5NGGhTQMngSC16oQhTULD xeUwd5HQcCZp20Z843urzVbbC+voHdCZo+f705IEm/XMprVsT2Xb3nGaOXyyxn8UXSov C2RA8IlyJ5oXqn/8znSXMJBkKnmcQp3NBA9I9jRqin7KjdjbnJgWvysN1eDisGWthmc8 zL8c4dYEYYkElC+r7AxDT79/VuokFBc88ksKr6l0hPiywrjsyhiKgx3fThJj3LyF6Sj7 cgFg== 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=vAUrccOcjJ2G+C/4lh4EvbKPHQfuGlK697Ng84jVThE=; b=mALv1JO9GQQJ5nl/Tpp20ydxO4s+XfGJV0BCfvLzhUMlavHL7bxArArZAqcQ/WOCVA JNIM6DaXLIC7hYOHnk/qiD1JdDO63vX/aiABYxNd+7Ek/w8PZhoPx4wqqIXV/6xgtg3i bQAl2pgAcrvX9kJvpEN4nZjQJd+TDlyJXaCN4arojNoqjkJjXUGH05vnWoKE5Pbhrpbu Sh6XY8Ay+0RleaKlzfwCGxTx4QPQ+oVcUONGs7QXF/6bfLsFeCTIY13z8L2g/geFw2Ms 3CdE7sR9zfAyoAxg8MaTl5PVFimF8YrmC+ml1z4OleqWgw9zyquJe/j1W5mMzLzLFOlT wp8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u37I8uHa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id hv13si11645869ejc.985.2022.02.09.02.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:11:44 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u37I8uHa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 7011E83E3A; Wed, 9 Feb 2022 11:11:41 +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="u37I8uHa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E59B583E15; Wed, 9 Feb 2022 11:11:37 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (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 A060583D9D for ; Wed, 9 Feb 2022 11:11:31 +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-x434.google.com with SMTP id 9so525778pfx.12 for ; Wed, 09 Feb 2022 02:11:31 -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=vAUrccOcjJ2G+C/4lh4EvbKPHQfuGlK697Ng84jVThE=; b=u37I8uHaH74B7FkD1Brw270DHH33+avqYql3uuzIr21vSfKKfxuvR8MBBlBCN+/Lw+ Z9AsbGBCEbLJhQgBCxDM0ndfW+t/l/p3VPTl1mVyJZp2hPikvO3OsHnFgx+vYKP6B34y LDQGwDw4gy9Tb0atNpTVe6+3+KJIQlcNjZNTQAR16uMopxZV9yNZAinhAeYI5a0bpgP4 6BUQI1Bl6Ey+Ipcj2+jVi14Kurs5c6nH1cBXlgjKZU+HTOkoMcT88gu9UyAQxxL4A9ix 5DiapmSid2r0wMrv+jV1/bBuuw7h25FtupSMTnB0xCHUP7vAzqVoUwHtNXVVPUvHxAG5 Qk1w== 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=vAUrccOcjJ2G+C/4lh4EvbKPHQfuGlK697Ng84jVThE=; b=ozNRntoLq/TUX0+OClJ71rjfA50SY2oC4H9Cb6Wrgu3oN0ywflb56uHRhurG2NndwR tT7FtWGS8cz1yPvqW9dqiAKkFVkyFUkZSNDXr5OfQsAquqYXu534O0X4do6sQHq7m1DK dKkMWWiscSIFw/8JiAzcxdw4KjwalQoSSjVJw3k9W86lIVrwfISyVRLyzSlfI9xhYsL4 anzYCNCcDyM2usJ2i7sdZwsTyCHIjs/supSkAWd9DpGovC5GBBHEgi3/+G5sP73nxIPj caSNid4L8m9DFdD5vja+500Z9olDzbZlF7wqmZFuOcJkz7oWhR0z7yRmq9faYFQ2rAcc d47g== X-Gm-Message-State: AOAM531dVRNlDhPQjZ58K5PM91GfIJ2SSZtI2yPICdRJ2+9iNUbpWccW +spfxkjNjgNdmPdLWZuC1cAfRw== X-Received: by 2002:a63:6c46:: with SMTP id h67mr1259328pgc.493.1644401489884; Wed, 09 Feb 2022 02:11:29 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:d885:543e:bfe4:9eb5]) by smtp.gmail.com with ESMTPSA id mi18sm5143303pjb.35.2022.02.09.02.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:11:29 -0800 (PST) From: AKASHI Takahiro To: xypron.glpk@gmx.de Cc: sjg@chromium.org, 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 v11 1/9] tools: build mkeficapsule with tools-only_defconfig Date: Wed, 9 Feb 2022 19:10:34 +0900 Message-Id: <20220209101042.78036-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220209101042.78036-1-takahiro.akashi@linaro.org> References: <20220209101042.78036-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.5 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 1f8e90a69f53..2246b3c660a6 100644 --- a/configs/tools-only_defconfig +++ b/configs/tools-only_defconfig @@ -34,3 +34,4 @@ CONFIG_I2C_EDID=y # CONFIG_VIRTIO_SANDBOX is not set # CONFIG_GENERATE_ACPI_TABLE is not set # CONFIG_EFI_LOADER 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