From patchwork Tue Feb 1 01:27:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 538930 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp465365imr; Mon, 31 Jan 2022 17:32:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzo+jaDgA4278GhAkjX+rJfRcy9nxcnFEjW95FygCEKy6fxCdIyUlV6c5O4NBFyMRxyiIVy X-Received: by 2002:a05:6402:650:: with SMTP id u16mr23001595edx.167.1643679121453; Mon, 31 Jan 2022 17:32:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643679121; cv=none; d=google.com; s=arc-20160816; b=0MN26Bh/AKyk8FQpModKCkUR+8MtbGXM9ooTIWxjLtczbQkjwjoxdj8uo2kG3X0RYf XfIQ40uGXep5y4ltjF3X7CznxsYUQJ/3NzAg3O0Fcf9ocurIv5tVulc51QvCo+u0fcKn 4hY3bvrHi+S1rzR76U0EbddgZt/e9D5fCzeiL7Xv4ZfIip6GbOyKRPW3zN8u/a9AcOIP 1KM3CrALyJnYRT0IhHH3k0BJ2xJ4cDqGo2P8ju+H4NfZGSKmR/he/+cZ6TwpM0SrgCrR cEKzZjytiRng0EUf5p2yx0P8+Bwz0vPrb8C0H9LCbg3rpzOPh+cANX43P7pCV1zC9tOS RdaQ== 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=CZJs4ksnna9yxu1ZTEE93rZlWfP8XIsxWv9n4cL7wcYd2HAfRc9C4AJNPMMRiZtkAe 8b0JUvewq7sXnods2ttm1zjcKLdoqON5HOrRa00GVXQwsD20pude9p5EPFFjG10Zb+i1 HzqBmfC/1b+7OQNyWjF7pXRGCduxZI0xFIXXaikDekhhuY/4okZJK7lz9RHcxHi/mJT4 HsQ8KsvirNK3r0qgcQl7cY4mT0zwbYdvV0ZVjhUpHZKeqd21f6CMBRJcF9cvdy3mWN2m KDQosVsAmWYXvNu41fYa8Mpir0C1Dzao2wupyvO+aVvaQg12gxh/LF+Mjb/vgIleOQ7J sTzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qKk7XEGT; 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 sa30si8739122ejc.85.2022.01.31.17.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 17:32:01 -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=qKk7XEGT; 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 6758C83689; Tue, 1 Feb 2022 02:31:55 +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="qKk7XEGT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EEC38831F8; Tue, 1 Feb 2022 02:31: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, T_SCC_BODY_TEXT_LINE 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 8103783076 for ; Tue, 1 Feb 2022 02:31:50 +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 i65so14429857pfc.9 for ; Mon, 31 Jan 2022 17:31:50 -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=qKk7XEGTdY312GYjcFUhC3z7DNfVhEpbZMDpDleLXkjnhpxVpl9dcQrZlOYxYaUTse ZcPvRbfwR2Gv4i2oeVH/dRX/ii975R78peUOYYSQ7aloz6/JUH0k/DsdmdrPFZNBZVAX yMTwWlWT794vpahUGhq7PMYUvYuK4R0goEFLNRfv/dJCPMYm0dJt7TLKha3XZI6Hjw86 gb99c2ymE46j9s1+rZ9zPariCRmZvhNC+onHCognaykoncxV5B76tlzecZJzRPtS2ji0 zKrY/Aqn/UBVqzBbUsgA56tjslkPUeXTpySIENvGa/db+LStO4B/InUcSbRD7V7SIchR reyg== 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=DyQLnONFtGyCBmdY4GPXli/3ZMeo6ZNxjez/Xx9fkRQ6foj2YmqXKTU7o/1bfI4UIi SdNmPqmMIFVqZNV+KPIQ7oIEYJFVAyFH3HvT78RJXVPBIrkKdzSjIe76efBbrivAjuLV EbC6kOcLfL03AkepAkkw7IOgJ8nXNAShgPi7QHyaXYo4OxMH4XwN1WPTkFR3YXTrIgjk zoYkwgBkPaD5AjR/QpPZJZC448gUgBAAxXvAEBlea8L/Sxk+9Hju/kKL9jgfHU9ppDsZ geVcUmGqw5LhUgfu6KAR1phaaTpZWNjGaRu/Ur1abbdZboWaIUABCSO2vXveC6J2roCY C6bQ== X-Gm-Message-State: AOAM531Hv+bJa3Ke9A0KyzesVnG0LQOHuQk/spN6DDnJKMelAvtjLaFp u0pM+Lf/Ki4s0v0dv3u98og88w== X-Received: by 2002:a63:4b4a:: with SMTP id k10mr18990945pgl.488.1643679108867; Mon, 31 Jan 2022 17:31:48 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:a8:b825:f6dd:417]) by smtp.gmail.com with ESMTPSA id u18sm20733784pfi.185.2022.01.31.17.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 17:31:48 -0800 (PST) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.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 v10 1/9] tools: build mkeficapsule with tools-only_defconfig Date: Tue, 1 Feb 2022 10:27:32 +0900 Message-Id: <20220201012740.63070-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220201012740.63070-1-takahiro.akashi@linaro.org> References: <20220201012740.63070-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