diff options
| author | Marek BehĂșn <[email protected]> | 2024-05-21 09:13:30 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-06-07 10:47:59 -0600 |
| commit | 2d49dafe4ac572228fe4309cf0445b5f82ff2fd5 (patch) | |
| tree | 405f6d4d8596fd0a741799dfd143e4a48e0cdb83 /cmd/Kconfig | |
| parent | 642ec48c76e6469c9a14f5c0359363af25bdaafb (diff) | |
cmd: eeprom: Hide eeprom layout versioning behind a Kconfig option
Add a new Kconfig option EEPROM_LAYOUT_VERSIONS, and hide eeprom
layout versionsing code behind it. Only print the relevant help in
'eeprom' command usage if this option is enabled.
Enable this new option for cm_fx6_defconfig and cm_t43_defconfig.
These are the only boards using EEPROM layout versioning.
Signed-off-by: Marek BehĂșn <[email protected]>
Diffstat (limited to 'cmd/Kconfig')
| -rw-r--r-- | cmd/Kconfig | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index b026439c773..8c370993f67 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -803,9 +803,16 @@ config CMD_EEPROM_LAYOUT types of eeprom fields. Can be used for defining custom layouts. +config EEPROM_LAYOUT_VERSIONS + bool "Support specifying eeprom layout version" + depends on CMD_EEPROM_LAYOUT + help + Support specifying eeprom layout version in the 'eeprom' command + via the -l option. + config EEPROM_LAYOUT_HELP_STRING string "Tells user what layout names are supported" - depends on CMD_EEPROM_LAYOUT + depends on EEPROM_LAYOUT_VERSIONS default "<not defined>" help Help printed with the LAYOUT VERSIONS part of the 'eeprom' |
