From patchwork Fri Aug 30 11:40:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 823984 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp730856wrs; Fri, 30 Aug 2024 04:42:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUhidVvDmbV5IC8qfWYssqBca6G4Uo+G3+iF+w7TdZPYPSK00d03ZwNFzCGgbu//nq5QI5yEg==@linaro.org X-Google-Smtp-Source: AGHT+IEuK5jSqzi6z6fjtbp0G7VSvSiRp3vUXqjct5Gs6OnOnyi8vEDZU4m892iGxC+74Mmwf9lX X-Received: by 2002:a05:6512:e83:b0:52e:be2c:4b05 with SMTP id 2adb3069b0e04-53546aff49emr1265227e87.21.1725018125467; Fri, 30 Aug 2024 04:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725018125; cv=none; d=google.com; s=arc-20240605; b=hyKCfBq0yo9cwyxsLls0OEiDoUYcLesUPwCh9z3wsH3WQa1DjxDnO/kgLliqMl21c0 DQKr4D2oQ3OQInxjHp4HEJwbyDG+KeOcUN4or/GShT5Z9GCr8Dwtw8Ab0a7Uy6aZCdvl vjRIihklJmRVX5dhmxNGKtShGkVeQ71h8IwD2tT/64oNLU8Wfqbny1L1ucrZjHcgshkx 8C89bRX6BHX22KuP3+jaKxbpc6M3T16EjQQzgUGtBZ8ZyHZSl76Eo9fAmodpfxvKEfdO H6COmWHz+fQzIfotmLsg51cqxpGRTCkrQsPtCIWekITxI0E/tNweorAZATLOW2y998zH RI7w== 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=FMnhbWmKlutE1PjXYi6lNod6gZPUgt/SbWX+ZjSZZUo=; fh=2L6lzFTxXJKn0sJyMiGOHr75auJVv+HSnsI1uFLsQPk=; b=CszPNg4X5woBB+cK4v9gA+LvaRjzFJbo1WAvggXmIuvEu9Rd3JrDTxgt51BkKdavER B7WSHwCYFBBf0TCaxqjJ/FpuJytBGPtGwHxTxGTXPyebOrSQOGLvxO0RTkfQeP6dwowO 7Q0DPEQQRp3vYlu64S5WW6Gh6JOjlnKVm6Ic4ODJlFEQ3FhuYCmGQW4fFAEmy5Z70ute VrutgCIM8TEDQcqwx16v1onSNzB8KpVjwWTc1+7LIGzKgbxKASHQxYRSOanJmobwwZ5q eqba7dMZFg9fBYM83ktLZfceYHJKZunH3uPCEaWQ20V2ZWoKEDzXYheFYfukDncYUbEK 9bug==; dara=google.com 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 a640c23a62f3a-a89891cbd09si290250266b.778.2024.08.30.04.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 04:42:05 -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 04A4F88B40; Fri, 30 Aug 2024 13:41:25 +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 06DC388B39; Fri, 30 Aug 2024 13:41:24 +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_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 153B688A10 for ; Fri, 30 Aug 2024 13:41:22 +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 CC9E5339; Fri, 30 Aug 2024 04:41:47 -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 BBFE43F66E; Fri, 30 Aug 2024 04:41:19 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Michal Simek , Ilias Apalodimas , Heinrich Schuchardt , Sughosh Ganu Subject: [PATCH 5/6] fwu: add dependency checks for selecting FWU metadata version Date: Fri, 30 Aug 2024 17:10:56 +0530 Message-Id: <20240830114057.891069-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240830114057.891069-1-sughosh.ganu@linaro.org> References: <20240830114057.891069-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 --- 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