mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Documentation/kconfiglib: update document to support kconfiglib
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -81,6 +81,22 @@ NuttX configuration system uses `KConfig <https://www.kernel.org/doc/Documentati
|
|||||||
$ make
|
$ make
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
|
NuttX also supports `kconfiglib <https://github.com/ulfalizer/Kconfiglib>` by default, which is a Kconfig tool implemented in Python 2/3. Compared with kconfig-frontends, kconfiglib provides NuttX with the possibility of multi-platform support(configure NuttX in Winodws native/Visual Studio), and also kconfiglib has a stronger Kconfig syntax check, this will help developers to avoid some Kconfig syntax errors. Install kconfiglib via following command:
|
||||||
|
|
||||||
|
.. tabs::
|
||||||
|
$ pip install kconfiglib
|
||||||
|
|
||||||
|
If you are a working on Windows, which also need the support of windows-curses:
|
||||||
|
|
||||||
|
.. tabs::
|
||||||
|
$ pip install windows-curses
|
||||||
|
|
||||||
|
.. tip::
|
||||||
|
It should be noted that kconfiglib does not support **modules** attributes.
|
||||||
|
(<https://github.com/ulfalizer/Kconfiglib/blob/master/kconfiglib.py#L3239-L3254>,
|
||||||
|
the community seems to have stopped updating), if the features depends on
|
||||||
|
``CONFIG_BUILD_LOADABLE``, kconfiglib may not be a good choice.
|
||||||
|
|
||||||
Toolchain
|
Toolchain
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|||||||
@@ -954,6 +954,24 @@ not been converted to use the kconfig-frontends tools! This will
|
|||||||
damage your configuration (see
|
damage your configuration (see
|
||||||
<https://cwiki.apache.org/confluence/display/NUTTX/Converting+Legacy+Configurations+to+Use+kconfig-mconf>).
|
<https://cwiki.apache.org/confluence/display/NUTTX/Converting+Legacy+Configurations+to+Use+kconfig-mconf>).
|
||||||
|
|
||||||
|
NuttX also supports kconfiglib(https://github.com/ulfalizer/Kconfiglib) by default,
|
||||||
|
which is a Kconfig tool implemented in Python 2/3. Compared with kconfig-frontends,
|
||||||
|
kconfiglib provides NuttX with the possibility of multi-platform support(configure
|
||||||
|
NuttX in Winodws native/Visual Studio), and also kconfiglib has a stronger Kconfig
|
||||||
|
syntax check, this will help developers to avoid some Kconfig syntax errors.
|
||||||
|
Install kconfiglib via following command:
|
||||||
|
|
||||||
|
pip install kconfiglib
|
||||||
|
|
||||||
|
If you are a working on Windows, which also need the support of windows-curses:
|
||||||
|
|
||||||
|
pip install windows-curses
|
||||||
|
|
||||||
|
**NOTE**: It should be noted that kconfiglib does not support **modules** attributes.
|
||||||
|
(<https://github.com/ulfalizer/Kconfiglib/blob/master/kconfiglib.py#L3239-L3254>,
|
||||||
|
the community seems to have stopped updating), if the features depends on
|
||||||
|
`CONFIG_BUILD_LOADABLE`, kconfiglib may not be a good choice.
|
||||||
|
|
||||||
How do we tell a new configuration from an old one? See "Incompatibilities
|
How do we tell a new configuration from an old one? See "Incompatibilities
|
||||||
with Older Configurations" below.
|
with Older Configurations" below.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user