No Description

Christopher Larson ff0be6826d README.md: add layer dependencies section 7 years ago
classes 8578292b6a Depend on cross binutils for packaging 8 years ago
conf dc7560396c Merge remote-tracking branch 'origin/cedar' into cedar-merge 8 years ago
core 8738c4e2c5 Merge pull request #110 from drewmoseley/fix-multiple-providers 8 years ago
lib ea5aec7ba7 oe.external: use bb.process.run 8 years ago
recipes-devtools 7a8c555384 python3: fix build due to HOST_SYS vs HOST_PREFIX delta 8 years ago
recipes-external e0f19e8d3f gcc-sanitizers-external: add missing packagedata dep on libc 8 years ago
recipes-sdk 26e7e8a719 Switch nativesdk-external-script to target 8 years ago
.gitignore 78ffebafc7 .gitignore: ignore *.pyc, *.pyo 8 years ago
README.md ff0be6826d README.md: add layer dependencies section 7 years ago
TODO.md e782e6e06f glibc-external: set LICENSE based on comment in errno.h 9 years ago

README.md

OpenEmbedded/Yocto layer for the Sourcery G++ toolchain

Layer Dependencies

  • openembedded-core, with a matching branch (i.e. master of oe-core and master of meta-sourcery)

Usage & Instructions

  • Ensure that you have the Sourcery G++ toolchain installed.
  • If it’s an ia32 toolchain, make sure you did not let it modify your PATH, and if you did, remove it.

This is necessary because the ia32 Sourcery G++ toolchain shipped non-prefixed binaries (e.g. gcc rather than i586-none-linux-gcc), which means bitbake would be unable to run the host’s gcc directly anymore.

  • Add the meta-sourcery layer to your BBLAYERS in conf/bblayers.conf. Please make certain that it is listed before the meta layer, as this ensures meta-sourcery gets priority over meta.
  • Set EXTERNAL_TOOLCHAIN = "/path/to/your/sourcery-g++-install" in conf/local.conf.

Optional Functionality

  • If the user chooses to, they may optionally decide to rebuild the Sourcery G++ glibc from source, if they have downloaded the corresponding source archive from Mentor Graphics. To so, set TCMODE = "external-sourcery-rebuild-libc", rather than relying on the default value of external-sourcery. After setting TCMODE appropriately, you must also set SOURCERY_SRC_FILE = "/path/to/your/sourcery-g++-source-tarball" or SOURCERY_SRC_URI = "http://some.domain/some-path".

Description of Behavior

The meta-sourcery layer.conf automatically defines TCMODE for us, so this is no longer necessary. The tcmode performs a number of operations:

  • Sets TARGET_PREFIX appropriately, after determining what prefix is in use by the toolchain
  • Sanity checks EXTERNAL_TOOLCHAIN: does the path exist? does the expected sysroot exist?
  • Sets preferences so that external recipes are used in preference to building them from source, including cross recipes which link/wrap the toolchain cross binaries

Contributing

To contribute to this layer, please fork and submit pull requests to the github repository, or open issues for any bugs you find, or feature requests you have.

To Do List

See TODO.md