diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-18 03:05:37 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-18 03:23:43 +0200 |
| commit | e08b6957ca935fc97eddd1afda933715016b9b11 (patch) | |
| tree | 4f600c0b1f7956b95125b385565f4a68588bad66 /README.rst | |
| parent | 3bd823958bb2bbe651b89647202a2a1ef6875815 (diff) | |
Add def_int, def_hex, and def_string keywords
Analogous to def_bool and def_tristate, setting the type and adding a
default at the same time.
This is a Kconfiglib extension. These keywords can be useful in projects
that make use of symbols defined in multiple locations, and remove some
Kconfig inconsistency.
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -205,6 +205,13 @@ The following Kconfig extensions are available: - A relative ``source`` statement (``rsource``) is available, where file paths are specified relative to the directory of the current Kconfig file. An ``orsource`` statement is available as well, analogous to ``osource``. + +- ``def_int``, ``def_hex``, and ``def_string`` are available in addition to + ``def_bool`` and ``def_tristate``, allowing ``int``, ``hex``, and ``string`` + symbols to be given a type and a default at the same time. + + These can be useful in projects that make use of symbols defined in multiple + locations, and remove some Kconfig inconsistency. - Environment variables are expanded directly in e.g. ``source`` and ``mainmenu`` statements, meaning ``option env`` symbols are redundant. |
