Skip to content

Commit 7cdc319

Browse files
kmaincentPatrice CHOTARD
authored andcommitted
fwu-mdata: Allow multiple metadata storage drivers to be enabled
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> Change-Id: I16d402afeb195c914a21243591e82115742ef5ca Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/543886 ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> Tested-by: Patrice CHOTARD <patrice.chotard@foss.st.com> Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com> Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
1 parent 2231911 commit 7cdc319

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

drivers/fwu-mdata/Kconfig

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
config FWU_MDATA
1+
menuconfig FWU_MDATA
22
bool "Driver support for accessing FWU Metadata"
33
depends on DM
44
help
55
Enable support for accessing FWU Metadata partitions. The
66
FWU Metadata partitions reside on the same storage device
77
which contains the other FWU updatable firmware images.
88

9-
choice
10-
prompt "Storage Layout Scheme"
11-
depends on FWU_MDATA
12-
default FWU_MDATA_GPT_BLK
9+
if FWU_MDATA
1310

1411
config FWU_MDATA_GPT_BLK
1512
bool "FWU Metadata access for GPT partitioned Block devices"
1613
select PARTITION_TYPE_GUID
1714
select PARTITION_UUIDS
18-
depends on FWU_MDATA && BLK && EFI_PARTITION
15+
depends on BLK && EFI_PARTITION
16+
default y
1917
help
2018
Enable support for accessing FWU Metadata on GPT partitioned
2119
block devices.
@@ -28,4 +26,4 @@ config FWU_MDATA_MTD
2826
(or non-GPT partitioned, e.g. partition nodes in devicetree)
2927
MTD devices.
3028

31-
endchoice
29+
endif

0 commit comments

Comments
 (0)