Skip to content

external-arm-toolchain: Add prebuilt SDK support

Denys Dmytriyenko yocto-meta-arm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 of 5 patches 7 repliesIn review
  2. v14 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Add patch #5 with SDK fixup code to symlink include directory between native and target sysroots, so external toolchain can find headers.

4 of 5 patches are in this archive. The cover letter announces 5.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5external-arm-toolchain-versions: also collect binutils/bfd versionmeta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc+10 -03 replies
3/5external-arm-toolchain: check for TCLIBC being glibcmeta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb+2 -61 reply
4/5external-arm-sdk-toolchain: add recipe to package gcc/gdb/binutils cross binariesmeta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-sdk-toolchain.bb+144 -02 replies
5/5tcmode-external-arm: fixup headers location in external toolchain SDKmeta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc+11 -01 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSumit Garg
SeriesR-b
1/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] external-arm-toolchain: Add prebuilt SDK support

From: Denys Dmytriyenko <[email protected]>

This series adds a recipe with supporting enhancements and settings to package existing cross-compile binaries from external toolchain to be used for SDK.

This approach provides a benefit of full re-use of external toolchain and uses the same set of binaries when cross-compiling on development host, as well as SDK host.

The limitation is that the SDK host architecture cannot be different from the development host architecture and be the one supported by the external toolchain releases, currently x86_64 and aarch64, which should cover >95% of use cases.

For the remaining use cases when the above limitation cannot be met, the default configuration for cross-canadian gcc/gdb/binutils uses weak assignment and can be easily overwritten, which would result in building those components from sources.

Generated SDK has been tested using testsdk as follows:

$ bitbake core-image-base -c testsdk

Results:

SDK testing environment: cortexa57-poky-linux
GalculatorTest class: SDK doesn't contain gettext
No python package in the SDK
RESULTS:
RESULTS - assimp.BuildAssimp.test_assimp: PASSED (100.40s)
RESULTS - buildcpio.BuildCpioTest.test_cpio: PASSED (45.63s)
RESULTS - buildepoxy.EpoxyTest.test_epoxy: PASSED (22.28s)
RESULTS - buildlzip.BuildLzipTest.test_lzip: PASSED (3.93s)
RESULTS - gcc.GccCompileTest.test_gcc_compile: PASSED (0.13s)
RESULTS - gcc.GccCompileTest.test_gpp2_compile: PASSED (0.13s)
RESULTS - gcc.GccCompileTest.test_gpp_compile: PASSED (0.21s)
RESULTS - gcc.GccCompileTest.test_make: PASSED (0.12s)
RESULTS - perl.PerlTest.test_perl: PASSED (0.03s)
RESULTS - python.Python3Test.test_python3: PASSED (0.05s)
RESULTS - buildgalculator.GalculatorTest.test_galculator: SKIPPED (0.00s)
RESULTS - python.Python2Test.test_python2: SKIPPED (0.00s)
SUMMARY:
core-image-base sdk (poky-glibc-x86_64-core-image-base-cortexa57-qemuarm64-toolchain-3.1+snapshot.sh:environment-setup-cortexa57-poky-linux) - Ran 12 tests in 172.918s core-image-base sdk - OK - All required tests passed (successes=10, skipped=2, failures=0, errors=0)
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Changes in v3:
- Add patch #5 with SDK fixup code to symlink include directory between native and target sysroots, so external toolchain can find headers.

Changes in v2:
- Remove conditional code in patch #2 to select GPL/LGPL license version based on toolchain component version, as old GPLv2 toolchains are no longer supported.
- In patch #4 in addition to INSANE_SKIP, use SKIP_FILEDEPS for RPM to skip rdeps checks.

Denys Dmytriyenko (5):
external-arm-toolchain-versions: also collect binutils/bfd version external-arm-toolchain-versions: set per-components license based on
version
external-arm-toolchain: check for TCLIBC being glibc external-arm-sdk-toolchain: add recipe to package gcc/gdb/binutils
cross binaries
tcmode-external-arm: fixup headers location in external toolchain SDK

 .../include/external-arm-toolchain-versions.inc    |  38 ++++++
 .../conf/distro/include/tcmode-external-arm.inc    |  15 +++
 .../external-arm-sdk-toolchain.bb                  | 140 +++++++++++++++++++++
 .../external-arm-toolchain.bb                      |   8 +-
 4 files changed, 195 insertions(+), 6 deletions(-)
 create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-sdk-toolchain.bb
Signature · 1 line
2.7.4