From 73214965b868cd9d7fe0c45a9d655bf6927477cc Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 20 Feb 2023 12:23:04 +0800 Subject: [PATCH] Documentation/kconfiglib: update document to support kconfiglib Signed-off-by: chao an --- Documentation/quickstart/install.rst | 16 ++++++++++++++++ README.md | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/Documentation/quickstart/install.rst b/Documentation/quickstart/install.rst index a2ca57585c..e587134661 100644 --- a/Documentation/quickstart/install.rst +++ b/Documentation/quickstart/install.rst @@ -81,6 +81,22 @@ NuttX configuration system uses `KConfig ` 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. + (, + the community seems to have stopped updating), if the features depends on + ``CONFIG_BUILD_LOADABLE``, kconfiglib may not be a good choice. + Toolchain ========= diff --git a/README.md b/README.md index 9b354da866..616d039c0d 100644 --- a/README.md +++ b/README.md @@ -954,6 +954,24 @@ not been converted to use the kconfig-frontends tools! This will damage your configuration (see ). +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. +(, +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 with Older Configurations" below.