]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fwu: add dependency checks for selecting FWU metadata version
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 9 Sep 2024 11:20:19 +0000 (16:50 +0530)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 19 Sep 2024 07:52:50 +0000 (10:52 +0300)
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>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/fwu_updates/Kconfig

index 51b7fbbefd379e06dd5ba7355680c9b89f8b9599..a722107c12902556e574719af9ae0fb393fff2a1 100644 (file)
@@ -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