mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
Change the Kconfig from a "choice" to a conditional block, allowing multiple FWU metadata storage drivers to be selected simultaneously instead of being mutually exclusive. This enables systems with FWU metadata on different storage types (e.g., both GPT-partitioned block devices and MTD devices) to have both drivers compiled in. The board can then select the appropriate driver at runtime based on the devicetree description. The change converts FWU_MDATA to a menuconfig and replaces the "choice/endchoice" block with "if FWU_MDATA/endif", making FWU_MDATA_GPT_BLK default to 'y' for backward compatibility. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Acked-by: Sughosh Ganu <sughosh.ganu@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
30 lines
778 B
Plaintext
30 lines
778 B
Plaintext
menuconfig FWU_MDATA
|
|
bool "Driver support for accessing FWU Metadata"
|
|
depends on DM
|
|
help
|
|
Enable support for accessing FWU Metadata partitions. The
|
|
FWU Metadata partitions reside on the same storage device
|
|
which contains the other FWU updatable firmware images.
|
|
|
|
if FWU_MDATA
|
|
|
|
config FWU_MDATA_GPT_BLK
|
|
bool "FWU Metadata access for GPT partitioned Block devices"
|
|
select PARTITION_TYPE_GUID
|
|
select PARTITION_UUIDS
|
|
depends on BLK && EFI_PARTITION
|
|
default y
|
|
help
|
|
Enable support for accessing FWU Metadata on GPT partitioned
|
|
block devices.
|
|
|
|
config FWU_MDATA_MTD
|
|
bool "Raw MTD devices"
|
|
depends on MTD
|
|
help
|
|
Enable support for accessing FWU Metadata on non-partitioned
|
|
(or non-GPT partitioned, e.g. partition nodes in devicetree)
|
|
MTD devices.
|
|
|
|
endif
|