summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-03-31 16:31:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-05 11:54:37 +0200
commit55f4ec838ab6a31d67ce816ac766c2f48c87988a (patch)
tree72cddef80995c67a4ab488abd338e59ec6416781 /common
parentf223e705ab7a66cea33f7155eb6ef62d8169fe37 (diff)
downloadbarebox-55f4ec838ab6a31d67ce816ac766c2f48c87988a.tar.gz
common: state: make barebox-state enabling in Kconfig easier
CONFIG_STATE only enables the framework, but practically all users interact with the framework via the device tree binding, which has a separate symbol. Make barebox state enabling easier by automatically enabling STATE_DRV and CMD_STATE if possible when STATE itself is enabled. They can still be disabled for configurations that don't need them. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230331143130.1903540-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 57fe5f7886..d951947463 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1016,6 +1016,8 @@ config STATE
select ENVIRONMENT_VARIABLES
select OFTREE
select PARAMETER
+ imply STATE_DRV
+ imply CMD_STATE
help
barebox state is a generic framework for atomic power fail-safe
variable storage and retrieval. It can be used to safely maintain