Fixed mistakes in install.rst

This commit is contained in:
Tomáš Pilný 2023-08-22 13:29:11 +02:00 committed by Xiang Xiao
parent e13d3220c2
commit d311bce3c4

View file

@ -22,22 +22,22 @@ First, install the following set of system dependencies according to your Operat
.. code-block:: console
$ sudo apt install \
bison flex gettext texinfo libncurses5-dev libncursesw5-dev xxd \
gperf automake libtool pkg-config build-essential gperf genromfs \
libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
libexpat-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux
$ bison flex gettext texinfo libncurses5-dev libncursesw5-dev xxd \
$ gperf automake libtool pkg-config build-essential gperf genromfs \
$ libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
$ libexpat-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux
.. tab:: Linux (Fdora / RPM based)
.. tab:: Linux (Fdora / RPM based)
Run the following command to install packages:
.. code-block:: console
sudo dnf install \
bison flex gettext texinfo ncurses-devel ncurses ncurses-compat-libs \
gperf automake libtool pkgconfig @development-tools gperf genromfs \
gmp-devel mpfr-devel libmpc-devel isl-devel binutils-devel elfutils-libelf-devel \
expat-devel gcc-c++ g++ picocom uboot-tools util-linux
$ sudo dnf install \
$ bison flex gettext texinfo ncurses-devel ncurses ncurses-compat-libs \
$ gperf automake libtool pkgconfig @development-tools gperf genromfs \
$ gmp-devel mpfr-devel libmpc-devel isl-devel binutils-devel elfutils-libelf-devel \
$ expat-devel gcc-c++ g++ picocom uboot-tools util-linux
.. tab:: macOS
@ -75,48 +75,50 @@ KConfig frontend
NuttX configuration system uses `KConfig <https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt>`_ which is exposed via a series of interactive menu-based *frontends*, part of the ``kconfig-frontends`` package. Depending on your OS you may use a precompiled package or you will have to build it from source, which is available in the `NuttX tools repository <https://bitbucket.org/nuttx/tools/src/master/kconfig-frontends/>`_:
.. tabs::
.. tabs::
.. code-tab:: console Ubuntu 20.04 LTS and later
.. code-tab:: console Ubuntu 20.04 LTS and later
$ sudo apt install kconfig-frontends
$ sudo apt install kconfig-frontends
.. code-tab:: console Ubuntu 18.04 LTS and earlier
.. code-tab:: console Ubuntu 18.04 LTS and earlier
$ git clone https://bitbucket.org/nuttx/tools.git
$ cd tools/kconfig-frontends
$ ./configure --enable-mconf --disable-nconf --disable-gconf --disable-qconf
$ make
$ make install
$ git clone https://bitbucket.org/nuttx/tools.git
$ cd tools/kconfig-frontends
$ ./configure --enable-mconf --disable-nconf --disable-gconf --disable-qconf
$ make
$ make install
.. code-tab:: console Fedora
.. code-tab:: console Fedora
$ git clone https://bitbucket.org/nuttx/tools.git
$ cd tools/kconfig-frontends
$ ./configure --enable-mconf --disable-nconf --disable-gconf --disable-qconf
$ aclocal
$ automake
$ make
$ sudo make install
$ git clone https://bitbucket.org/nuttx/tools.git
$ cd tools/kconfig-frontends
$ ./configure --enable-mconf --disable-nconf --disable-gconf --disable-qconf
$ aclocal
$ automake
$ make
$ sudo make install
.. code-tab:: console MacOS
.. code-tab:: console MacOS
$ git clone https://bitbucket.org/nuttx/tools.git
$ cd tools/kconfig-frontends
$ patch < ../kconfig-macos.diff -p 1
$ ./configure --enable-mconf --disable-shared --enable-static --disable-gconf --disable-qconf --disable-nconf
$ make
$ make install
$ git clone https://bitbucket.org/nuttx/tools.git
$ cd tools/kconfig-frontends
$ patch < ../kconfig-macos.diff -p 1
$ ./configure --enable-mconf --disable-shared --enable-static --disable-gconf --disable-qconf --disable-nconf
$ make
$ 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:
.. code-tab::
$ pip install kconfiglib
.. code-block:: shell
pip install kconfiglib
If you are a working on Windows, which also need the support of windows-curses:
.. code-tab::
$ pip install windows-curses
.. code-block:: shell
pip install windows-curses
.. tip::
It should be noted that kconfiglib does not support **modules** attributes.
@ -132,7 +134,7 @@ according to your target platform. Some Operating Systems
such as Linux distribute toolchains for various architectures.
This is usually an easy choice however you should be aware
that in some cases the version offered by your OS may have
problems and it may better to use a widely used build from
problems and it may be better to use a widely used build from
another source.
The following example shows how to install a toolchain for