mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] common: state: make barebox-state enabling in Kconfig easier
@ 2023-03-31 14:31 Ahmad Fatoum
  2023-04-03  7:04 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-03-31 14:31 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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>
---
 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] common: state: make barebox-state enabling in Kconfig easier
  2023-03-31 14:31 [PATCH] common: state: make barebox-state enabling in Kconfig easier Ahmad Fatoum
@ 2023-04-03  7:04 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-04-03  7:04 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Fri, Mar 31, 2023 at 04:31:30PM +0200, Ahmad Fatoum wrote:
> 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>
> ---
>  common/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha

> 
> 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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-03  7:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 14:31 [PATCH] common: state: make barebox-state enabling in Kconfig easier Ahmad Fatoum
2023-04-03  7:04 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox