diff mbox series

[5/6] fwu: add dependency checks for selecting FWU metadata version

Message ID 20240830114057.891069-6-sughosh.ganu@linaro.org
State Superseded
Headers show
Series Miscellaneous FWU fixes | expand

Commit Message

Sughosh Ganu Aug. 30, 2024, 11:40 a.m. UTC
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 <sughosh.ganu@linaro.org>
---
 lib/fwu_updates/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Michal Simek Sept. 4, 2024, 8:09 a.m. UTC | #1
On 8/30/24 13:40, Sughosh Ganu wrote:
> 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 <sughosh.ganu@linaro.org>
> ---
>   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

Reviewed-by: Michal Simek <michal.simek@amd.com>

Thanks,
Michal
diff mbox series

Patch

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