Documentation/getting_started/kconfig.md: Add a note about Kconfig defaults
When the declaration is done after the default, menuconfig will see that symbol defined at the first place where kconfig tool will find it. For example, if we run menuconfig and search for 'MAINBOARD_VENDOR', we will see it defined at ""src/mainboard/51nb/Kconfig" which is odd. Change-Id: I215a1817e60e6deb6931679f139d110ba762d3c8 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45127 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
3bcb6c7319
commit
3f56b87c51
|
@ -398,6 +398,8 @@ default <expr> \[if <expr>\]
|
||||||
- If there is no 'default' entry for a symbol, it gets set to 'n', 0, 0x0, or
|
- If there is no 'default' entry for a symbol, it gets set to 'n', 0, 0x0, or
|
||||||
“” depending on the type, however the 'bool' type is the only type that
|
“” depending on the type, however the 'bool' type is the only type that
|
||||||
should be left without a default value.
|
should be left without a default value.
|
||||||
|
- If possible, the declaration should happen before all default entries to make
|
||||||
|
it visible in Kconfig tools like menuconfig.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue