diff mbox series

[U-Boot,1/1] Kconfig: add CONFIG_BROKEN

Message ID 20171019214919.7427-1-xypron.glpk@gmx.de
State Accepted
Commit 4c7a211046a3956058b512edd8533f7df031cc4a
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/1] Kconfig: add CONFIG_BROKEN | expand

Commit Message

Heinrich Schuchardt Oct. 19, 2017, 9:49 p.m. UTC
Provide a Kconfig option that we can use as dependency for
features that are broken. This allows to easily disable them
without removing the code.

As no short text is supplied the option will not appear in
menuconfig.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Simon Glass Oct. 22, 2017, 2:36 p.m. UTC | #1
On 19 October 2017 at 23:49, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> Provide a Kconfig option that we can use as dependency for
> features that are broken. This allows to easily disable them
> without removing the code.
>
> As no short text is supplied the option will not appear in
> menuconfig.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  Kconfig | 6 ++++++
>  1 file changed, 6 insertions(+)

Fair enough.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Oct. 24, 2017, 6:15 p.m. UTC | #2
On Thu, Oct 19, 2017 at 11:49:19PM +0200, Heinrich Schuchardt wrote:

> Provide a Kconfig option that we can use as dependency for
> features that are broken. This allows to easily disable them
> without removing the code.
> 
> As no short text is supplied the option will not appear in
> menuconfig.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 227fb17dd9..e57fad4592 100644
--- a/Kconfig
+++ b/Kconfig
@@ -14,6 +14,12 @@  source "arch/Kconfig"
 
 menu "General setup"
 
+config BROKEN
+	bool
+	help
+	  This option cannot be enabled. It is used as dependency
+	  for broken and incomplete features.
+
 config LOCALVERSION
 	string "Local version - append to U-Boot release"
 	help