From patchwork Mon Sep 9 11:20:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 826581 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp1942866wrb; Mon, 9 Sep 2024 04:21:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUb/zGErXuSmK6W1uObG/ZbojhFuUqav4xgkM4xC6gnT2F/xGo8xIdyCsfipDmVBARHQCeuzQ==@linaro.org X-Google-Smtp-Source: AGHT+IGN+Nt2gK+QW72ADyPBlnsJLXyixQI44PcYZtC5Cz7OqKSXVqGWvdG6Po6pkkVUknEokkQH X-Received: by 2002:adf:f28a:0:b0:374:c614:73df with SMTP id ffacd0b85a97d-3788968c865mr7808671f8f.57.1725880874618; Mon, 09 Sep 2024 04:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725880874; cv=none; d=google.com; s=arc-20240605; b=ROfyJRvujbxsVvPhKJeVUA5HuK3O8wKAQCZ3MJI3Yb06eArfMdD1ucNd4+T0Cj23a2 wxYxO1j02MOCpa/Xx4YuTk4jjHBVzo7UAd39ibUCyqRdFLoVTe45sTVep1qXI7j+KEUK MSzbPYeVHhicsqpBtNN2mw4CEDr1J6uBQsg4DSrsCxFlJ86idi2oAcKvI+KJcejj5QZw bKKrhMyPQMzhMWa2nrgmXCbZ+DCg+hQVxUlqUL97WpzE5EYeJpQ1BS2w3AbGtLYvveGf If7ZQvp7f7en9KJFIIV2Mkdi6zwHGiDFVgir7G4wP4bdtKsVrNxL9ASYBTbxg656SSab mUww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=PD9RH4rpZvq1V5hNFTV0469OioQV9C6jUU2UZJY4pTg=; fh=2L6lzFTxXJKn0sJyMiGOHr75auJVv+HSnsI1uFLsQPk=; b=I0+mJHU3nS3eTr78idrWLmV3McbeY3kK6v/x2tpiUCwprZfy5ZIJ7sA008J7V6dQ7h PnC1y0Pg8w9tlZesTucqSqb4gDHJ69p9ti8mdognbnY8hDcRqR3wxfz1T0dwzYzT1DNE CLalWaBmTCrRiiUhQgybpzmi3nw+De9vqH784DYD8f9vo3ZBj4ceGy0v+ORMabdifVZ2 QINdThtx3yaQHNPPVueUoLwavOoRWQ2ruzZFqjL5fH4CvNAqhIN2Rp8bKrIEWB+zhwez WSrKt9GX5r3YXxqUYR83bAnaNWEZ3/pHnSNPqLbVJTuPXyu/LK6btgB/CGthlTGW3L/9 jaYQ==; 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 5b1f17b1804b1-42cbb35b821si2362545e9.95.2024.09.09.04.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:21:14 -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 7B7F688DB7; Mon, 9 Sep 2024 13:20:48 +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 77D8388CBD; Mon, 9 Sep 2024 13:20:46 +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, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, 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 81BC088CE4 for ; Mon, 9 Sep 2024 13:20:44 +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 9292AFEC; Mon, 9 Sep 2024 04:21:12 -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 348F13F73B; Mon, 9 Sep 2024 04:20:41 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Michal Simek , Ilias Apalodimas , Heinrich Schuchardt , Sughosh Ganu Subject: [PATCH v2 4/6] fwu: add dependency checks for selecting FWU metadata version Date: Mon, 9 Sep 2024 16:50:19 +0530 Message-Id: <20240909112021.1962801-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909112021.1962801-1-sughosh.ganu@linaro.org> References: <20240909112021.1962801-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 The FWU code supports both versions of the FWU metadata, i.e. v1 and v2. A platform can then select one of the two versions through a config symbol. Put a dependency in the FWU metadata version selection config symbol to ensure that both versions of the metadata cannot be enabled. Signed-off-by: Sughosh Ganu Reviewed-by: Michal Simek --- Changes since V1: None lib/fwu_updates/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fwu_updates/Kconfig b/lib/fwu_updates/Kconfig index 51b7fbbefd..a722107c12 100644 --- a/lib/fwu_updates/Kconfig +++ b/lib/fwu_updates/Kconfig @@ -40,6 +40,7 @@ config FWU_MDATA_V1 config FWU_MDATA_V2 bool "Enable support FWU Metadata version 2" + depends on !FWU_MDATA_V1 help The FWU specification supports two versions of the metadata structure. This option enables support for FWU