diff options
Diffstat (limited to 'documentation/ref-manual/variables.rst')
-rw-r--r-- | documentation/ref-manual/variables.rst | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 31a3c16c61..499a26f50b 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -2417,6 +2417,12 @@ system and gives an overview of their function and contents. | |||
2417 | :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in | 2417 | :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in |
2418 | ``meta/classes-recipe`` to see how the variable is used. | 2418 | ``meta/classes-recipe`` to see how the variable is used. |
2419 | 2419 | ||
2420 | :term:`EXTERNAL_TOOLCHAIN` | ||
2421 | When you intend to use an | ||
2422 | :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`, | ||
2423 | this variable allows to specify the directory where this toolchain was | ||
2424 | installed. | ||
2425 | |||
2420 | :term:`EXTERNALSRC` | 2426 | :term:`EXTERNALSRC` |
2421 | When inheriting the :ref:`externalsrc <ref-classes-externalsrc>` | 2427 | When inheriting the :ref:`externalsrc <ref-classes-externalsrc>` |
2422 | class, this variable points to the source tree, which is outside of | 2428 | class, this variable points to the source tree, which is outside of |
@@ -8475,16 +8481,20 @@ system and gives an overview of their function and contents. | |||
8475 | https://github.com/MentorEmbedded/meta-sourcery/. | 8481 | https://github.com/MentorEmbedded/meta-sourcery/. |
8476 | 8482 | ||
8477 | The layer's ``README`` file contains information on how to use the | 8483 | The layer's ``README`` file contains information on how to use the |
8478 | Sourcery G++ Toolchain as an external toolchain. In summary, you must | 8484 | Sourcery G++ Toolchain as an external toolchain. You will have to |
8479 | be sure to add the layer to your ``bblayers.conf`` file in front of | 8485 | add the layer to your ``bblayers.conf`` file and then set the |
8480 | the ``meta`` layer and then set the ``EXTERNAL_TOOLCHAIN`` variable | 8486 | :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to |
8481 | in your ``local.conf`` file to the location in which you installed | 8487 | the location of the toolchain. |
8482 | the toolchain. | ||
8483 | 8488 | ||
8484 | The fundamentals used for this example apply to any external | 8489 | The fundamentals used for this example apply to any external |
8485 | toolchain. You can use ``meta-sourcery`` as a template for adding | 8490 | toolchain. You can use ``meta-sourcery`` as a template for adding |
8486 | support for other external toolchains. | 8491 | support for other external toolchains. |
8487 | 8492 | ||
8493 | In addition to toolchain configuration, you will also need a | ||
8494 | corresponding toolchain recipe file. This recipe file needs to package | ||
8495 | up any pre-built objects in the toolchain such as ``libgcc``, | ||
8496 | ``libstdcc++``, any locales, and ``libc``. | ||
8497 | |||
8488 | :term:`TC_CXX_RUNTIME` | 8498 | :term:`TC_CXX_RUNTIME` |
8489 | Specifies the C/C++ STL and runtime variant to use during | 8499 | Specifies the C/C++ STL and runtime variant to use during |
8490 | the build process. Default value is 'gnu' | 8500 | the build process. Default value is 'gnu' |