external-toolchain.rst 1.1 KB

12345678910111213141516171819202122232425262728
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. Optionally Using an External Toolchain
  3. **************************************
  4. You might want to use an external toolchain as part of your development.
  5. If this is the case, the fundamental steps you need to accomplish are as
  6. follows:
  7. - Understand where the installed toolchain resides. For cases where you
  8. need to build the external toolchain, you would need to take separate
  9. steps to build and install the toolchain.
  10. - Make sure you add the layer that contains the toolchain to your
  11. ``bblayers.conf`` file through the
  12. :term:`BBLAYERS` variable.
  13. - Set the ``EXTERNAL_TOOLCHAIN`` variable in your ``local.conf`` file
  14. to the location in which you installed the toolchain.
  15. A good example of an external toolchain used with the Yocto Project is
  16. Mentor Graphics Sourcery G++ Toolchain. You can see information on how
  17. to use that particular layer in the ``README`` file at
  18. https://github.com/MentorEmbedded/meta-sourcery/. You can find
  19. further information by reading about the
  20. :term:`TCMODE` variable in the Yocto
  21. Project Reference Manual's variable glossary.