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 <[email protected]>
---
 common/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index 57fe5f7886de..d951947463a2 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
-- 
2.39.2


Reply via email to