From patchwork Sat Jun 24 13:41:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 695736 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp2551786wrm; Sat, 24 Jun 2023 13:50:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mK9P3zcILaLbGBht6kBkXjdPEUYh4fCCshdmTy0b4PfA+3MqT88B1clhla9bO/Ixhdojx X-Received: by 2002:a05:622a:1884:b0:3ff:d00:a710 with SMTP id v4-20020a05622a188400b003ff0d00a710mr25960225qtc.2.1687639820049; Sat, 24 Jun 2023 13:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687639820; cv=none; d=google.com; s=arc-20160816; b=cHe5mnzIa7EAi46L+0yB9vQs5wafnQ7ZiUUPW13KuJeew0cYeiINrokp0v+/YpnzDz 8zvLEDvB2cgTq7M5DeT1wsaE2wGvaLHieNf1DcNktFMCru5u3m6Ma67R4iBh9vxHi32S 7RDpQ2DR6QTijg/gfROySizA87e1l4Zws6MiZ52oTA2JDPuhiy5aWYC7IocCuYUmalYk +7dS8SXjxhbSRhT3UK5STCm7GuszOVf7gU2MqzSGWlGkKkvlZt+K6DmgVMirJ2O/iuYl mkgDApAzrzmsyEPEf7g5uRZBh7exztR4Q7Gq2u+1AJ2NZB/wIlYfeMJkQ/WoaCUvIRgr 2p0A== 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; bh=DEu7oKqIiuSHnD0DH3x6C1GHono07DsXrjrsM5Im0eI=; fh=lu5TYXXCc9HXOnqxAkmvhXm+orfKNM3ataUOg5fXk40=; b=X/ZfSjiyHntC6CHZhFBHK0HD9nOUeL95wXiifF1TxfZawODTKtxfx1fuXnDsiUJXT2 mSbBNIcQtRWbfP8MUEq1IyyCsfWY+Dl9no+l0T8TZFTOulbuvLF+4hdgBn95QTozDSxT 9Du4dZbsmoU+e/yJ5Oi1URIBvMBefLPit2VYGNS//wiSKtswFlJUOYr/aorG3Gl3K19I 45cJj/ODnhkweY5a/hDx/c7NrcNBBT6XdZz5oyB7VuKsaSejBpsO+yaIAQIwrb6j1hr2 Wzm3xFv3t+uNOXXDXG0zCKRwPDpXerDBgxV918o3bE5hJT3q2JKkR94/21hn1mgMR/7P 26ug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 z17-20020a05622a029100b003fdea42e030si692342qtw.397.2023.06.24.13.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jun 2023 13:50:20 -0700 (PDT) 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; 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=fail (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 6219585FE2; Sat, 24 Jun 2023 22:49:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D9C1885F9A; Sat, 24 Jun 2023 22:49:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id C42A48601B for ; Sat, 24 Jun 2023 22:49:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7C27E1474; Sat, 24 Jun 2023 06:42:51 -0700 (PDT) Received: from a076522.blr.arm.com (unknown [10.162.46.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D71C93F663; Sat, 24 Jun 2023 06:42:04 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Michal Simek , Takahiro Akashi , Malte Schmidt , Tom Rini , Sughosh Ganu Subject: [PATCH v2 6/8] Makefile: Add a target for building capsules Date: Sat, 24 Jun 2023 19:11:16 +0530 Message-Id: <20230624134118.944567-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230624134118.944567-1-sughosh.ganu@linaro.org> References: <20230624134118.944567-1-sughosh.ganu@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.8 at phobos.denx.de X-Virus-Status: Clean Add a target for building EFI capsules. The capsule parameters are specified through a config file, and the path to the config file is specified through CONFIG_EFI_CAPSULE_CFG_FILE. When the config file is not specified, the command only builds tools. Signed-off-by: Sughosh Ganu --- Changes since V1: * Call the mkeficapsule utility with the cfg-file parameter when building capsules via the config file. Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 444baaefd0..7d22427699 100644 --- a/Makefile +++ b/Makefile @@ -1151,6 +1151,15 @@ dtbs: dts/dt.dtb dts/dt.dtb: u-boot $(Q)$(MAKE) $(build)=dts dtbs +quiet_cmd_mkeficapsule = MKEFICAPSULE +cmd_mkeficapsule = $(objtree)/tools/mkeficapsule --cfg-file=$(CONFIG_EFI_CAPSULE_CFG_FILE) + +PHONY += capsule +capsule: tools +ifneq ($(CONFIG_EFI_CAPSULE_CFG_FILE),"") + $(call cmd,mkeficapsule) +endif + quiet_cmd_copy = COPY $@ cmd_copy = cp $< $@