From patchwork Tue Jun 13 10:38:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 691960 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp342104wru; Tue, 13 Jun 2023 03:40:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4N2EZI+Hz0V62tAXcGzUGl2gQ0jbjBekmJbCOFgSk08jnpRG18hyab2dd154H0NikU7K2x X-Received: by 2002:a05:6a00:2195:b0:657:97f7:1a5 with SMTP id h21-20020a056a00219500b0065797f701a5mr14731090pfi.23.1686652800731; Tue, 13 Jun 2023 03:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686652800; cv=none; d=google.com; s=arc-20160816; b=Xpfh7HGWEGQVQOLTcf23qFz+1a06XGVBtptR24ogEt9nevwPD5H42p3VFpXax12kfc HdCQuGQDnpp3lrgzCCY/CLxKjFlYC+avqnDS0Kq9XhxxdGyRekS7qj9uSp5K5T2ObfSW JbJUaw9EpDhzPQPn5Byrt7dTsWTvA70jmtaNE2NUBA5JrJu6gI3bHnQEi4h6DURYJCnz SNqxMQDNurA5jsizC9TGuT8AKxl58Gom3pRHdhmTtAAOhSxyNRsRSf6iF648HGfeDS2V Rboxgm4jwgeeN4gesSC3T3ipNjHUq0cbvcbF0J04h29KlV8+OdDPwt46lejzpf9R54B3 RL+w== 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=z91jaaqDga5vXeUJ4xikrRxlHGv8B3VdUo96Cx1Sn44=; b=MBVxuhhnEJDB8mGAwAWDcXAmWZMe17rdE0efePu6iYeQG8LDhMhSgotckQ5TPF57cB iTkkq5xMHD1zSD7wUO7mNuyiiW70ksvr6rGuUq9pv/HI8aL+xiGg8D8+kzq1g7VvxHZ5 8qoMQBR2/FP1qZDzwZ/TGg9EEgr1GcFPRUq7JTHHmBnXy2GhXr0g3/SHts0yXXNFLjPC 8gS5nnBSfIouw5q1UK9ZPbS92LE49l1ir2q3bBd2e0qMHHFPj7S/PFvYGKk/KvQy9PB9 qEA1sbe2GLT+3Hq1heDsg/caoD0L80uzkOdmMU06mfVuV5WpWyq+zA/I/0A+Rr3f87xa PsNg== 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 c3-20020a637243000000b00530b135eae9si8244479pgn.119.2023.06.13.03.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 03:40:00 -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 1364B8627B; Tue, 13 Jun 2023 12:39:21 +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 45282862A6; Tue, 13 Jun 2023 12:39:12 +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 BBEB386265 for ; Tue, 13 Jun 2023 12:38:59 +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 E82471FB; Tue, 13 Jun 2023 03:39:43 -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 E668F3F71E; Tue, 13 Jun 2023 03:38:56 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Michal Simek , Takahiro Akashi , Sughosh Ganu Subject: [PATCH 5/7] Makefile: Add a target for building capsules Date: Tue, 13 Jun 2023 16:08:04 +0530 Message-Id: <20230613103806.812065-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230613103806.812065-1-sughosh.ganu@linaro.org> References: <20230613103806.812065-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 --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 10bfaa52ad..96db29aa77 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 $@ + +PHONY += capsule +capsule: tools +ifneq ($(CONFIG_EFI_CAPSULE_CFG_FILE),"") + $(call cmd,mkeficapsule) +endif + quiet_cmd_copy = COPY $@ cmd_copy = cp $< $@