mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-27 17:57:13 +08:00
eng, user: update bsp_defaults to bspdefaults
This commit is contained in:
parent
0213597d46
commit
168ed2701e
@ -79,7 +79,7 @@ In the ``./waf bsp_list`` command, the BSP list is generated from the
|
|||||||
BSP Defaults
|
BSP Defaults
|
||||||
------------
|
------------
|
||||||
|
|
||||||
In the ``./waf bsp_defaults`` command, the BSP defaults are generated from the
|
In the ``./waf bspdefaults`` command, the BSP defaults are generated from the
|
||||||
:ref:`SpecTypeBuildBSPItemType` and :ref:`SpecTypeBuildOptionItemType` items.
|
:ref:`SpecTypeBuildBSPItemType` and :ref:`SpecTypeBuildOptionItemType` items.
|
||||||
Build specification items contribute to the command through the
|
Build specification items contribute to the command through the
|
||||||
``do_defaults()`` method in the ``wscript``.
|
``do_defaults()`` method in the ``wscript``.
|
||||||
|
@ -123,7 +123,7 @@ items can be specified by the ``--rtems-specs`` command line option.
|
|||||||
BSP Defaults
|
BSP Defaults
|
||||||
------------
|
------------
|
||||||
|
|
||||||
The BSP defaults command ``./waf bsp_defaults`` loads the build specification
|
The BSP defaults command ``./waf bspdefaults`` loads the build specification
|
||||||
items and generates a list options with default values for each base BSP from
|
items and generates a list options with default values for each base BSP from
|
||||||
it. The list is sorted by architecture and base BSP name. Which base BSPs are
|
it. The list is sorted by architecture and base BSP name. Which base BSPs are
|
||||||
listed can be controlled by the ``--rtems-bsps`` command line option. Default
|
listed can be controlled by the ``--rtems-bsps`` command line option. Default
|
||||||
@ -134,12 +134,12 @@ option.
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ ./waf bsp_defaults --rtems-bsps=gr712rc --rtems-compiler=gcc | grep ABI_FLAGS
|
$ ./waf bspdefaults --rtems-bsps=gr712rc --rtems-compiler=gcc | grep ABI_FLAGS
|
||||||
ABI_FLAGS = -mcpu=leon3 -mfix-gr712rc
|
ABI_FLAGS = -mcpu=leon3 -mfix-gr712rc
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ ./waf bsp_defaults --rtems-bsps=gr712rc --rtems-compiler=clang | grep ABI_FLAGS
|
$ ./waf bspdefaults --rtems-bsps=gr712rc --rtems-compiler=clang | grep ABI_FLAGS
|
||||||
ABI_FLAGS = -mcpu=gr712rc
|
ABI_FLAGS = -mcpu=gr712rc
|
||||||
|
|
||||||
Configure
|
Configure
|
||||||
@ -222,12 +222,12 @@ option.
|
|||||||
INHERIT = gr740
|
INHERIT = gr740
|
||||||
COMPILER = clang
|
COMPILER = clang
|
||||||
|
|
||||||
Use the ``./waf bsp_defaults`` command to get a list of all configuration
|
Use the ``./waf bspdefaults`` command to get a list of all configuration
|
||||||
options with default values.
|
options with default values.
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ ./waf bsp_defaults --rtems-bsps=sparc/erc32
|
$ ./waf bspdefaults --rtems-bsps=sparc/erc32
|
||||||
[sparc/erc32]
|
[sparc/erc32]
|
||||||
# Flags passed to the library archiver
|
# Flags passed to the library archiver
|
||||||
ARFLAGS = crD
|
ARFLAGS = crD
|
||||||
@ -246,7 +246,7 @@ options with default values.
|
|||||||
INSTALL_LEGACY_MAKEFILES = True
|
INSTALL_LEGACY_MAKEFILES = True
|
||||||
|
|
||||||
It is not recommended to blindly add all the options obtained through the
|
It is not recommended to blindly add all the options obtained through the
|
||||||
``./waf bsp_defaults`` command to custom configuration files. The specified
|
``./waf bspdefaults`` command to custom configuration files. The specified
|
||||||
options should be kept at the necessary minimum to get the desired build.
|
options should be kept at the necessary minimum to get the desired build.
|
||||||
|
|
||||||
Some projects may still want to specify all options in a configuration file to
|
Some projects may still want to specify all options in a configuration file to
|
||||||
@ -255,9 +255,9 @@ the user and base BSP values with the ``diff`` command.
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ ./waf bsp_defaults --rtems-bsps=sparc/erc32 > config.ini
|
$ ./waf bspdefaults --rtems-bsps=sparc/erc32 > config.ini
|
||||||
$ sed -i 's/BUILD_TESTS = False/BUILD_TESTS = True/' config.ini
|
$ sed -i 's/BUILD_TESTS = False/BUILD_TESTS = True/' config.ini
|
||||||
$ ./waf bsp_defaults --rtems-bsps=sparc/erc32 | diff -u - config.ini
|
$ ./waf bspdefaults --rtems-bsps=sparc/erc32 | diff -u - config.ini
|
||||||
--- config.ini 2019-12-04 08:21:36.049335872 +0100
|
--- config.ini 2019-12-04 08:21:36.049335872 +0100
|
||||||
+++ - 2019-12-04 08:21:41.187432405 +0100
|
+++ - 2019-12-04 08:21:41.187432405 +0100
|
||||||
@@ -31,7 +31,7 @@
|
@@ -31,7 +31,7 @@
|
||||||
|
@ -20,7 +20,7 @@ Build Configuration Options
|
|||||||
Please see the documentation of the `IMXRT_*` and `BSP_*` configuration options
|
Please see the documentation of the `IMXRT_*` and `BSP_*` configuration options
|
||||||
for that. You can generate a default set of options with::
|
for that. You can generate a default set of options with::
|
||||||
|
|
||||||
./waf bsp_defaults --rtems-bsps=arm/imxrt1052 > config.ini
|
./waf bspdefaults --rtems-bsps=arm/imxrt1052 > config.ini
|
||||||
|
|
||||||
Boot Process
|
Boot Process
|
||||||
------------
|
------------
|
||||||
|
@ -332,7 +332,7 @@ Generate default configuration for the board:
|
|||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
$ ./waf bsp_defaults --rtems-bsps=arm/stm32h747i-disco > stm32h747i-disco.ini
|
$ ./waf bspdefaults --rtems-bsps=arm/stm32h747i-disco > stm32h747i-disco.ini
|
||||||
Regenerate build specification cache (needs a couple of seconds)...
|
Regenerate build specification cache (needs a couple of seconds)...
|
||||||
|
|
||||||
To run basic hello world or ticker samples you do not need to modify
|
To run basic hello world or ticker samples you do not need to modify
|
||||||
|
Loading…
x
Reference in New Issue
Block a user