From patchwork Fri Mar 22 10:57:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 781843 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp1273978wrj; Fri, 22 Mar 2024 04:00:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVgS42//SLqJf8HmdD0EFTAPOAMnCZiLMmZruhPdFNa3cx6Cgz0Aqk3oR8GGnSaL7aBgzaK8cTHh25prEjm3W/2 X-Google-Smtp-Source: AGHT+IHfGCzR5jdWtHWhk+WXJJed+ZoVam4S7Z0DWf4spDVJP2Rpzz3idTk3leFMaoCfWxYONGxK X-Received: by 2002:a5d:6d8f:0:b0:33e:7a71:1a31 with SMTP id l15-20020a5d6d8f000000b0033e7a711a31mr1495152wrs.6.1711105218751; Fri, 22 Mar 2024 04:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711105218; cv=none; d=google.com; s=arc-20160816; b=bDQXNImgXbYPv/DVQFvcinse/yQOuznI0SNvYXG6SvyHmFdo8mP+KWEzsCelC4vMQZ Cr3FUXmx+S9wMZwq3oa9LYLso0Qe5DVNBuQK4P8csD0NtC2braqdPRNbJLMMGPW59fpp Iqrk7YUb2A3WRRzHEFOVf52GZ9scr7UI355hfziaSM3OPUkZ0fl9N9uxnxGzg5TCS+Fe LEdYG4dKhItxprZ8Cqcv8Kz56JmfI2c3cdOz/s7oduzhKssQOaLncXLlXNJ6iuj67PwE srs9BVbKpN6f7tAyLOCIa8L5qS7rxRfCGp9GRqzlS63V2eXYJxov2ToODzFm4W57WHt/ SXRA== 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=OpQFmxDqi215cTzQsU5RwgpZLnJeW537BvOw7kX8j+Q=; fh=0OBOeNvG1YwOz62VjCAPxJsyowuZOMIwtNTktJXXBMY=; b=tJlfeEBGNatgzp9wymdVqBhnOrNSSSJ6SFZvwfqxeyvUddoEDEVvgVmhgnah7vxpHB i+Vp7h5t3i03RtdcsFSMQuw5ULZPkAOpJbUjgMZGObafaM79uKz5cgJh59nMqlyOnfvR i0OcWW9DsTHHI8VtcPdUHrGMk/NkAS9nUwFlDkekOlN1jmboh1ZwnYB5KWMqkHwdjjuh bpbBGoiTpzHJIu9j4ccyVOosHq7y6iCFAMZzWOu1VpzoIhG8eD/6oNqFTBehkp5fbXZo lMaQIR2JKqqHKW48YGO7hdp0JURfE5SaSPdqlvZv1kzaOou8O5T/fk5+lBaZS/pJoT1J ajiw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 p15-20020a5d638f000000b0033e11c97263si883625wru.669.2024.03.22.04.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 04:00:18 -0700 (PDT) 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; 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=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 9A3A0881D5; Fri, 22 Mar 2024 11:58:46 +0100 (CET) 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 585BF881EC; Fri, 22 Mar 2024 11:58:45 +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=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL 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 6660C881EE for ; Fri, 22 Mar 2024 11:58:43 +0100 (CET) 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 07D551691; Fri, 22 Mar 2024 03:59:17 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E0B0F3F64C; Fri, 22 Mar 2024 03:58:39 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Yann GAUTIER , Etienne Carriere , Patrick DELAUNAY - foss , Michal Simek , Masahisa Kojima , Michal Simek , Sughosh Ganu Subject: [PATCH v3 10/20] fwu: add config symbols for enabling FWU metadata versions Date: Fri, 22 Mar 2024 16:27:23 +0530 Message-Id: <20240322105733.203888-11-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240322105733.203888-1-sughosh.ganu@linaro.org> References: <20240322105733.203888-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 Support has been added for version 2 of the FWU metadata structure. Add config symbols to enable either of the two versions. Signed-off-by: Sughosh Ganu --- Changes since V2: * New patch lib/fwu_updates/Kconfig | 14 ++++++++++++++ lib/fwu_updates/Makefile | 2 ++ 2 files changed, 16 insertions(+) diff --git a/lib/fwu_updates/Kconfig b/lib/fwu_updates/Kconfig index d35247d0e5..51b7fbbefd 100644 --- a/lib/fwu_updates/Kconfig +++ b/lib/fwu_updates/Kconfig @@ -31,4 +31,18 @@ config FWU_TRIAL_STATE_CNT the platform is allowed to boot in Trial State after an update. +config FWU_MDATA_V1 + bool "Enable support FWU Metadata version 1" + help + The FWU specification supports two versions of the + metadata structure. This option enables support for FWU + Metadata version 1 access. + +config FWU_MDATA_V2 + bool "Enable support FWU Metadata version 2" + help + The FWU specification supports two versions of the + metadata structure. This option enables support for FWU + Metadata version 2 access. + endif diff --git a/lib/fwu_updates/Makefile b/lib/fwu_updates/Makefile index c9e3c06b48..3681bef46c 100644 --- a/lib/fwu_updates/Makefile +++ b/lib/fwu_updates/Makefile @@ -6,3 +6,5 @@ obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu.o obj-$(CONFIG_FWU_MDATA_GPT_BLK) += fwu_gpt.o obj-$(CONFIG_FWU_MDATA_MTD) += fwu_mtd.o +obj-$(CONFIG_FWU_MDATA_V1) += fwu_v1.o +obj-$(CONFIG_FWU_MDATA_V2) += fwu_v2.o