external-arm-toolchain: Add support for SDK generation
v3 cover external-arm-toolchain: Add support for SDK generation
Patch #1 #2 and #3 adds impprovements in external-arm-toolchain recipe in order to support SDK generation. SDK generation has been tested using:
$ bitbake core-image-base -c populate_sdk
Currently generated SDK only uses glibc provided by pre-built toolchain. The cross compiler, binutils, gdb/gdbserver etc. are built from source. This is something we would like to improve in future to package most of the components from pre-built toolchain instead.
Generated SDK has been tested using testsdk as follows:
$ bitbake core-image-base -c testsdk
Results:
SDK testing environment: aarch64-poky-linux
GalculatorTest class: SDK doesn't contain gettext
No python package in the SDK
RESULTS:
RESULTS - assimp.BuildAssimp.test_assimp: PASSED (97.93s)
RESULTS - buildcpio.BuildCpioTest.test_cpio: PASSED (22.51s)
RESULTS - buildepoxy.EpoxyTest.test_epoxy: PASSED (17.40s)
RESULTS - buildlzip.BuildLzipTest.test_lzip: PASSED (2.52s)
RESULTS - gcc.GccCompileTest.test_gcc_compile: PASSED (0.06s)
RESULTS - gcc.GccCompileTest.test_gpp2_compile: PASSED (0.08s)
RESULTS - gcc.GccCompileTest.test_gpp_compile: PASSED (0.10s)
RESULTS - gcc.GccCompileTest.test_make: PASSED (0.06s)
RESULTS - perl.PerlTest.test_perl: PASSED (0.23s)
RESULTS - python.Python3Test.test_python3: PASSED (0.03s)
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-aarch64-qemuarm64-toolchain-3.1+snapshot.sh:environment-setup-aarch64-poky-linux) - Ran 12 tests in 140.936s core-image-base sdk - OK - All required tests passed (successes=10, skipped=2, failures=0, errors=0)
Patch #4 adds a README for meta-arm-toolchain layer.
Patch #5 adds package specific licences for external-arm-toolchain recipe.
Changes in v3:
- Patch #2: re-order PACKAGES list rather than defining FILES_${PN}-dev from scratch as it allows us to achieve the intended objective and is much portable and cleaner approach.
- Add review tags for patch #1 and #5.
Changes in v2:
- Adds a new patch #3 which fixes issues reported by testsdk.
- Define FILES_${PN}-dev from scratch which additionally refines packaging for dev headers as well.
- Make README common for whole meta-arm-toolchain layer rather than specific to pre-built toolchain. Add myself as layer maintainer although I would be happy to add another co-maintainer if someone is willing to volunteer.
- Update README with testing info for external-arm-toolchain.
- Misc. fixups.
Sumit Garg (5):
external-arm-toolchain: Remove glibc locale dependency
external-arm-toolchain: Refine dev libraries/headers packaging
external-arm-toolchain: Align glibc packaging to OE TARGET_SYS
meta-arm-toolchain: Add README
external-arm-toolchain: Add package specific licenses
meta-arm-toolchain/README.md | 113 +++++++++++++++++++++ .../conf/distro/include/tcmode-external-arm.inc | 1 + .../external-arm-toolchain.bb | 35 +++++-- .../external-arm-toolchain/license.inc | 76 ++++++++++++++ .../recipes-devtools/gcc/gcc-arm-common.inc | 2 +- 5 files changed, 216 insertions(+), 11 deletions(-) create mode 100644 meta-arm-toolchain/README.md create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc
Signature · 1 line
2.7.4
PATCH v3 1/5 external-arm-toolchain: Remove glibc locale dependency
Currently external Arm toolchain recipe doesn't provide packages corresponding to OE glibc locale recipe. So explicitly remove corresponding libc dependencies until we sort out glibc locale packaging rather than blocking OE SDK generation which is still useful without glibc locale packaging.
--- meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc | 1 + 1 file changed, 1 insertion(+)
meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc +1 -0
@@ -58,6 +58,7 @@ DISTRO_FEATURES_LIBC = "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-c ENABLE_BINARY_LOCALE_GENERATION = "0" GLIBC_INTERNAL_USE_BINARY_LOCALE = "precompiled" LIBCOVERRIDE = ":libc-glibc" +LIBC_DEPENDENCIES_remove = "glibc-gconv-cp1252 glibc-gconv-ibm850 glibc-gconv-iso8859-1 glibc-gconv-iso8859-15 glibc-localedata-i18n" ERROR_QA[type] ?= "list" python toolchain_metadata_setup () {
Signature · 1 line
2.7.4
PATCH v3 2/5 external-arm-toolchain: Refine dev libraries/headers packaging
In reply to Sumit GargOE core by default package all libraies/headers installed as "${libdir}/lib*.so", "${libdir}/*.la" and {includedir} as part of FILES_${PN}-dev" but in case of external Arm toolchain recipe, multiple packages are provided which needs to include specific libraries and headers. And "${PN}-dev" is only meant to pick up remaining dev libraries and headers that aren't picked up by other packages.
So in order to achieve above objective, re-order PACKAGES list to shift ${PN}-dev towards the end. And since some static libraries needs to be packaged in ${PN}-dev, so we need to keep ${PN}-staticdev later in order.
--- .../external-arm-toolchain/external-arm-toolchain.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +13 -0
@@ -305,6 +305,19 @@ PACKAGES =+ "\ linux-libc-headers-dev \ " +# Re-order PACKAGES list in order to shift ${PN}-dev towards the end as +# it is meant to pick up remaining dev libraries and headers that aren't +# picked up by other packages. And since some static libraries needs to +# be packaged in ${PN}-dev, so we need to keep ${PN}-staticdev later in +# order. + +PACKAGES := "${@oe.utils.str_filter_out('${PN}-dev', '${PACKAGES}', d)}" +PACKAGES := "${@oe.utils.str_filter_out('${PN}-staticdev', '${PACKAGES}', d)}" +PACKAGES += "\ + ${PN}-dev \ + ${PN}-staticdev \ +" + INSANE_SKIP_${PN}-dbg = "staticdev" INSANE_SKIP_${PN}-utils += "ldflags" INSANE_SKIP_libstdc++ += "ldflags"
Signature · 1 line
2.7.4
PATCH v3 3/5 external-arm-toolchain: Align glibc packaging to OE TARGET_SYS
In reply to Sumit GargOE native and cross compilers (in case of SDK) uses OE TARGET_SYS to create standard paths to search for libraries and headers during compilation.
Currently external-arm-toolchain recipe temporarily override TARGET_SYS with EAT_TARGET_SYS and packages libraries and headers corresponding to EAT_TARGET_SYS which leads to failures during native and cross compilation (in case of SDK) such as:
$ $CXX -o hello++ hello.cpp
In file included from hello.cpp:1:
/tmp/armsdk/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/c++/9.2.1/iostream:38:10: fatal error: bits/c++config.h: No such file or directory
38 | #include <bits/c++config.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.$ $CC hello.c real-ld: cannot find crtbeginS.o: No such file or directory
So remove temp override of TARGET_SYS and rather package libraries and headers corresponding to OE TARGET_SYS.
This fixes changes added in commit:
https://git.linaro.org/openembedded/meta-linaro.git/commit/?id=91ea4d017bf0598e49944e76c889e66d58c066ce
Also, update location for unwind.h gcc-arm-common.inc accordingly.
--- .../external-arm-toolchain/external-arm-toolchain.bb | 18 ++++++++++-------- .../recipes-devtools/gcc/gcc-arm-common.inc | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +10 -8
@@ -54,7 +54,6 @@ PROVIDES += "\ PV = "${EAT_VER_MAIN}" BINV = "${EAT_VER_GCC}" -TARGET_SYS = "${EAT_TARGET_SYS}" SRC_URI = "file://SUPPORTED"
@@ -75,8 +74,8 @@ do_install() { install -d ${D}${datadir} install -d ${D}${includedir} install -d ${D}/include - install -d ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC} - install -d ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC} CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir}
@@ -105,6 +104,9 @@ do_install() { fi cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + if [ -d ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ]; then + mv ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${TARGET_SYS} + fi ln -sf ../usr/include/c++ ${D}/include/c++ cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir}
@@ -116,11 +118,11 @@ do_install() { sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/tzselect sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/ldd - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ # fix up the copied symlinks (they are still pointing to the multiarch directory) linker_name="${@bb.utils.contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ld-linux-armhf.so.3", "ld-linux.so.3",d), d)}"
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-common.inc +1 -1
@@ -12,7 +12,7 @@ do_install_prepend_class-target () { if [ "${TCMODE}" = "external-arm" -a ! -f ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ]; then install -d ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ - install ${STAGING_LIBDIR}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ + install ${STAGING_LIBDIR}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ fi }
Signature · 1 line
2.7.4
Re: [PATCH v3 3/5] external-arm-toolchain: Align glibc packaging to OE TARGET_SYS
Sorry, did we agree to drop this one for now?
Quoted 99 lines · Sumit Garg
OE native and cross compilers (in case of SDK) uses OE
TARGET_SYSto create standard paths to search for libraries and headers during compilation.Currently external-arm-toolchain recipe temporarily override
TARGET_SYSwithEAT_TARGET_SYSand packages libraries and headers corresponding toEAT_TARGET_SYSwhich leads to failures during native and cross compilation (in case of SDK) such as:$ $CXX -o hello++ hello.cpp In file included from hello.cpp:1: /tmp/armsdk/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/c++/9.2.1/iostream:38:10: fatal error: bits/c++config.h: No such file or directory 38 | #include <bits/c++config.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.$ $CC hello.c real-ld: cannot find crtbeginS.o: No such file or directorySo remove temp override of
TARGET_SYSand rather package libraries and headers corresponding to OETARGET_SYS.This fixes changes added in commit:
https://git.linaro.org/openembedded/meta-linaro.git/commit/?id=91ea4d017bf0598e49944e76c889e66d58c066ceAlso, update location for
unwind.hgcc-arm-common.inc accordingly.Signed-off-by Sumit Garg <[email protected]>--- .../external-arm-toolchain/external-arm-toolchain.bb | 18 ++++++++++-------- .../recipes-devtools/gcc/gcc-arm-common.inc | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-)meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +10
-8@@ -54,7 +54,6 @@ PROVIDES += "\ PV = "${EAT_VER_MAIN}" BINV = "${EAT_VER_GCC}" -TARGET_SYS = "${EAT_TARGET_SYS}" SRC_URI = "file://SUPPORTED"@@ -75,8 +74,8 @@ do_install() { install -d ${D}${datadir} install -d ${D}${includedir} install -d ${D}/include - install -d ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC} - install -d ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC} CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir}@@ -105,6 +104,9 @@ do_install() { fi cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + if [ -d ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ]; then + mv ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${TARGET_SYS} + fi ln -sf ../usr/include/c++ ${D}/include/c++ cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir}@@ -116,11 +118,11 @@ do_install() { sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/tzselect sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/ldd - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ # fix up the copied symlinks (they are still pointing to the multiarch directory) linker_name="${@bb.utils.contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ld-linux-armhf.so.3", "ld-linux.so.3",d), d)}"meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-common.inc +1
-1@@ -12,7 +12,7 @@ do_install_prepend_class-target () { if [ "${TCMODE}" = "external-arm" -a ! -f ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ]; then install -d ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ - install ${STAGING_LIBDIR}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ + install ${STAGING_LIBDIR}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ fi }Signature · 1 line
2.7.4
Re: [PATCH v3 3/5] external-arm-toolchain: Align glibc packaging to OE TARGET_SYS
Quoted 2 lines · Denys Dmytriyenko
Sorry, did we agree to drop this one for now?
No, I don't think so. See our last conversation on v2 [1].
I think you have already addressed alignment to EAT_TARGET_SYS for pre-built toolchain components packaging in SDK as part of your
recipe: external-arm-sdk-toolchain.bb.
But we still need this fix for native compilation to work using native OE compiler built from source.
[1] https://lists.yoctoproject.org/g/meta-arm/message/637
-Sumit
Quoted 101 lines · Sumit Garg
Quoted 99 lines
OE native and cross compilers (in case of SDK) uses OE
TARGET_SYSto create standard paths to search for libraries and headers during compilation.Currently external-arm-toolchain recipe temporarily override
TARGET_SYSwithEAT_TARGET_SYSand packages libraries and headers corresponding toEAT_TARGET_SYSwhich leads to failures during native and cross compilation (in case of SDK) such as:$ $CXX -o hello++ hello.cpp In file included from hello.cpp:1: /tmp/armsdk/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/c++/9.2.1/iostream:38:10: fatal error: bits/c++config.h: No such file or directory 38 | #include <bits/c++config.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.$ $CC hello.c real-ld: cannot find crtbeginS.o: No such file or directorySo remove temp override of
TARGET_SYSand rather package libraries and headers corresponding to OETARGET_SYS.This fixes changes added in commit:
https://git.linaro.org/openembedded/meta-linaro.git/commit/?id=91ea4d017bf0598e49944e76c889e66d58c066ceAlso, update location for
unwind.hgcc-arm-common.inc accordingly.Signed-off-by Sumit Garg <[email protected]>--- .../external-arm-toolchain/external-arm-toolchain.bb | 18 ++++++++++-------- .../recipes-devtools/gcc/gcc-arm-common.inc | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-)meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +10
-8@@ -54,7 +54,6 @@ PROVIDES += "\ PV = "${EAT_VER_MAIN}" BINV = "${EAT_VER_GCC}" -TARGET_SYS = "${EAT_TARGET_SYS}" SRC_URI = "file://SUPPORTED"@@ -75,8 +74,8 @@ do_install() { install -d ${D}${datadir} install -d ${D}${includedir} install -d ${D}/include - install -d ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC} - install -d ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC} CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir}@@ -105,6 +104,9 @@ do_install() { fi cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + if [ -d ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ]; then + mv ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${TARGET_SYS} + fi ln -sf ../usr/include/c++ ${D}/include/c++ cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir}@@ -116,11 +118,11 @@ do_install() { sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/tzselect sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/ldd - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ # fix up the copied symlinks (they are still pointing to the multiarch directory) linker_name="${@bb.utils.contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ld-linux-armhf.so.3", "ld-linux.so.3",d), d)}"meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-common.inc +1
-2@@ -12,7 +12,7 @@ do_install_prepend_class-target () { if [ "${TCMODE}" = "external-arm" -a ! -f ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ]; then install -d ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ - install ${STAGING_LIBDIR}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ + install ${STAGING_LIBDIR}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ fi } --2.7.4
Re: [meta-arm] [PATCH v3 3/5] external-arm-toolchain: Align glibc packaging to OE TARGET_SYS
Quoted 6 lines · Sumit Garg
Quoted 2 lines · Denys Dmytriyenko
Sorry, did we agree to drop this one for now?
No, I don't think so. See our last conversation on v2 [1].
Quoted 8 lines
I think you have already addressed alignment to
EAT_TARGET_SYSfor pre-built toolchain components packaging in SDK as part of your
recipe: external-arm-sdk-toolchain.bb.But we still need this fix for native compilation to work using native OE compiler built from source.
In there we talked about symlinks between OE TARGET_SYS and EAT_TARGET_SYS. Those symlinks will allow using OE-built compilers and prebuilt binaries interchangeably. But we don't yet have them in place - that's still on my todo list.
I have the code in meta-arago and it works for prebuilt cross compiler in SDK as well as OE-built native compiler on the target - I just need to get that upstreamed. The 4 patches I submitted only set the stage by packaging up the prebuilts...
And the change in this patch alone only makes OE-built compiler work while breaking prebuilt usage.
Signature · 1 line
Denys
Quoted 105 lines
-Sumit
Quoted 101 lines · Sumit Garg
Quoted 99 lines
OE native and cross compilers (in case of SDK) uses OE
TARGET_SYSto create standard paths to search for libraries and headers during compilation.Currently external-arm-toolchain recipe temporarily override
TARGET_SYSwithEAT_TARGET_SYSand packages libraries and headers corresponding toEAT_TARGET_SYSwhich leads to failures during native and cross compilation (in case of SDK) such as:$ $CXX -o hello++ hello.cpp In file included from hello.cpp:1: /tmp/armsdk/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/c++/9.2.1/iostream:38:10: fatal error: bits/c++config.h: No such file or directory 38 | #include <bits/c++config.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.$ $CC hello.c real-ld: cannot find crtbeginS.o: No such file or directorySo remove temp override of
TARGET_SYSand rather package libraries and headers corresponding to OETARGET_SYS.This fixes changes added in commit:
https://git.linaro.org/openembedded/meta-linaro.git/commit/?id=91ea4d017bf0598e49944e76c889e66d58c066ceAlso, update location for
unwind.hgcc-arm-common.inc accordingly.Signed-off-by Sumit Garg <[email protected]>--- .../external-arm-toolchain/external-arm-toolchain.bb | 18 ++++++++++-------- .../recipes-devtools/gcc/gcc-arm-common.inc | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-)meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +10
-8@@ -54,7 +54,6 @@ PROVIDES += "\ PV = "${EAT_VER_MAIN}" BINV = "${EAT_VER_GCC}" -TARGET_SYS = "${EAT_TARGET_SYS}" SRC_URI = "file://SUPPORTED"@@ -75,8 +74,8 @@ do_install() { install -d ${D}${datadir} install -d ${D}${includedir} install -d ${D}/include - install -d ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC} - install -d ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC} CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir}@@ -105,6 +104,9 @@ do_install() { fi cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + if [ -d ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ]; then + mv ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${TARGET_SYS} + fi ln -sf ../usr/include/c++ ${D}/include/c++ cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir}@@ -116,11 +118,11 @@ do_install() { sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/tzselect sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/ldd - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ # fix up the copied symlinks (they are still pointing to the multiarch directory) linker_name="${@bb.utils.contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ld-linux-armhf.so.3", "ld-linux.so.3",d), d)}"meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-common.inc +1
-2@@ -12,7 +12,7 @@ do_install_prepend_class-target () { if [ "${TCMODE}" = "external-arm" -a ! -f ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ]; then install -d ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ - install ${STAGING_LIBDIR}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ + install ${STAGING_LIBDIR}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ fi } --2.7.4
Re: [meta-arm] [PATCH v3 3/5] external-arm-toolchain: Align glibc packaging to OE TARGET_SYS
Quoted 15 lines · Denys Dmytriyenko
Quoted 13 lines · Sumit Garg
Quoted 2 lines · Denys Dmytriyenko
Sorry, did we agree to drop this one for now?
No, I don't think so. See our last conversation on v2 [1].
I think you have already addressed alignment to
EAT_TARGET_SYSfor pre-built toolchain components packaging in SDK as part of your
recipe: external-arm-sdk-toolchain.bb.But we still need this fix for native compilation to work using native OE compiler built from source.
Quoted 6 lines
Quoted 1 line
In there we talked about symlinks between OE
TARGET_SYSandEAT_TARGET_SYS. Those symlinks will allow using OE-built compilers and prebuilt binaries interchangeably. But we don't yet have them in place - that's still on my todo list.
Didn't I offer to add that feature in this patch itself to support your downstream use-cases? But you were reluctant to add those by yourself.
Quoted 8 lines
I have the code in meta-arago and it works for prebuilt cross compiler in SDK as well as OE-built native compiler on the target - I just need to get that upstreamed. The 4 patches I submitted only set the stage by packaging up the prebuilts...
And the change in this patch alone only makes OE-built compiler work while breaking prebuilt usage.
The change in this patch is fixing the current broken OE native compilation and SDK generation (using OE built compiler) upstream.
And it's just a simple change to add symlinks to support EAT_TARGET_SYS which can be an add-on patch which *you* contribute.
-Sumit
Quoted 111 lines
--
DenysQuoted 105 lines
-Sumit
Quoted 101 lines · Sumit Garg
Quoted 99 lines
OE native and cross compilers (in case of SDK) uses OE
TARGET_SYSto create standard paths to search for libraries and headers during compilation.Currently external-arm-toolchain recipe temporarily override
TARGET_SYSwithEAT_TARGET_SYSand packages libraries and headers corresponding toEAT_TARGET_SYSwhich leads to failures during native and cross compilation (in case of SDK) such as:$ $CXX -o hello++ hello.cpp In file included from hello.cpp:1: /tmp/armsdk/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/c++/9.2.1/iostream:38:10: fatal error: bits/c++config.h: No such file or directory 38 | #include <bits/c++config.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.$ $CC hello.c real-ld: cannot find crtbeginS.o: No such file or directorySo remove temp override of
TARGET_SYSand rather package libraries and headers corresponding to OETARGET_SYS.This fixes changes added in commit:
https://git.linaro.org/openembedded/meta-linaro.git/commit/?id=91ea4d017bf0598e49944e76c889e66d58c066ceAlso, update location for
unwind.hgcc-arm-common.inc accordingly.Signed-off-by Sumit Garg <[email protected]>--- .../external-arm-toolchain/external-arm-toolchain.bb | 18 ++++++++++-------- .../recipes-devtools/gcc/gcc-arm-common.inc | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-)meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +10
-8@@ -54,7 +54,6 @@ PROVIDES += "\ PV = "${EAT_VER_MAIN}" BINV = "${EAT_VER_GCC}" -TARGET_SYS = "${EAT_TARGET_SYS}" SRC_URI = "file://SUPPORTED"@@ -75,8 +74,8 @@ do_install() { install -d ${D}${datadir} install -d ${D}${includedir} install -d ${D}/include - install -d ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC} - install -d ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC} + install -d ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC} CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir}@@ -105,6 +104,9 @@ do_install() { fi cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + if [ -d ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ]; then + mv ${D}${includedir}/c++/${EAT_VER_GCC}/${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${TARGET_SYS} + fi ln -sf ../usr/include/c++ ${D}/include/c++ cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir}@@ -116,11 +118,11 @@ do_install() { sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/tzselect sed -i -e 's#/bin/bash#/bin/sh#' ${D}${bindir}/ldd - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/crt*.o ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcov* ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/finclude ${D}${libdir}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/ # fix up the copied symlinks (they are still pointing to the multiarch directory) linker_name="${@bb.utils.contains("TUNE_FEATURES", "aarch64", "ld-linux-aarch64.so.1", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ld-linux-armhf.so.3", "ld-linux.so.3",d), d)}"meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-common.inc +1
-2@@ -12,7 +12,7 @@ do_install_prepend_class-target () { if [ "${TCMODE}" = "external-arm" -a ! -f ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ]; then install -d ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ - install ${STAGING_LIBDIR}/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ + install ${STAGING_LIBDIR}/gcc/${TARGET_SYS}/${EAT_VER_GCC}/include/unwind.h ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/ fi } --2.7.4
PATCH v3 4/5 meta-arm-toolchain: Add README
In reply to Sumit GargDocument usage details for GNU Arm toolchains which could either be built from source or pre-built.
--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.md
meta-arm-toolchain/README.md new file +113 -0
@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file. + +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. + +Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>
Signature · 1 line
2.7.4
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
Quoted 118 lines · Sumit Garg
Document usage details for GNU Arm toolchains which could either be built from source or pre-built.
Signed-off-by Sumit Garg <[email protected]>--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.mdmeta-arm-toolchain/README.md new file +103
-0@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file. + +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb
meta-arm-toolchain/README.md line 113
Quoted 10 lines
meta-arm-toolchain/README.md new file +10
-0+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. + +Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>
Linaro is the origin of this code, and I think it is important to recognize this. However, I would like some clarification as to what this role is recognized to be and how interactions with the community will occur.
Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed. I'm fairly sure you are in agreement with this, as this is what you've been doing already. But since we are formalizing this with the above entry, I want it to be written somewhere :)
Thanks,
Jon
Quoted 5 lines
Signature · 1 line
2.7.4
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
Quoted 11 lines · Jon Mason
Quoted 9 lines · Sumit Garg
Document usage details for GNU Arm toolchains which could either be built from source or pre-built.
Signed-off-by Sumit Garg <[email protected]>--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.md
Quoted 14 lines
Quoted 6 lines
meta-arm-toolchain/README.md new file +0
-0meta-arm-toolchain/README.md line 8
Quoted 8 lines
meta-arm-toolchain/README.md new file +8
-0@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file.
This comment.
Quoted 100 lines
Quoted 100 lines
meta-arm-toolchain/README.md new file +100
-0+ +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. +
Quoted 8 lines
meta-arm-toolchain/README.md line 113
Quoted 5 lines
meta-arm-toolchain/README.md new file +5
-0+Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>Linaro is the origin of this code, and I think it is important to recognize this.
Thanks.
Quoted 8 lines
However, I would like some clarification as to what
this role is recognized to be and how interactions with the community will occur.Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed. I'm fairly sure you are in agreement with this, as this is what you've been doing already.
Yes I am in agreement with this.
Quoted 3 lines
But
since we are formalizing this with the above entry, I want it to be written somewhere :)
Isn't the comment on top of this README above sufficient to formalize this?
-Sumit
Quoted 12 lines
Thanks,
JonQuoted 5 lines
--
2.7.4
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
Quoted 149 lines · Sumit Garg
Quoted 11 lines · Jon Mason
Quoted 9 lines · Sumit Garg
Document usage details for GNU Arm toolchains which could either be built from source or pre-built.
Signed-off-by Sumit Garg <[email protected]>--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.mdQuoted 14 lines
Quoted 6 lines
meta-arm-toolchain/README.md new file +0
-0meta-arm-toolchain/README.md line 8
Quoted 8 lines
meta-arm-toolchain/README.md new file +8
-0@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file.This comment.
Quoted 100 lines
Quoted 100 lines
meta-arm-toolchain/README.md new file +100
-0+ +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. +Quoted 8 lines
meta-arm-toolchain/README.md line 113
Quoted 5 lines
meta-arm-toolchain/README.md new file +5
-0+Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>Linaro is the origin of this code, and I think it is important to recognize this.
Thanks.
Quoted 8 lines
However, I would like some clarification as to what
this role is recognized to be and how interactions with the community will occur.Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed. I'm fairly sure you are in agreement with this, as this is what you've been doing already.
Quoted 7 lines
Yes I am in agreement with this.
Quoted 3 lines
But
since we are formalizing this with the above entry, I want it to be written somewhere :)Isn't the comment on top of this README above sufficient to formalize this?
It is sufficient for me.
For giggles, I did a quick look at the contributors since it was added.
$ git log meta-arm-toolchain/ | grep Author | sort | uniq -c
14 Author: Denys Dmytriyenko <[email protected]>
2 Author: Jon Mason <[email protected]>
1 Author: Ralph Siemsen <[email protected]>
2 Author: Sumit Garg <[email protected]>It looks like Denys should probably be a maintainer too. Given that he has a unique use case and is testing this throughly (as he's found my patches to be very lacking). I don't know if he is interested in the extra burden of this, but I think you two would make a good pair and help give some validity to this being a group project.
Anyway, I'll pull this series in now.
Thanks,
Jon
Quoted 15 lines
-Sumit
Quoted 12 lines
Thanks,
JonQuoted 5 lines
--
2.7.4
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
Quoted 169 lines · Jon Mason
Quoted 149 lines · Sumit Garg
Quoted 11 lines · Jon Mason
Quoted 9 lines · Sumit Garg
Document usage details for GNU Arm toolchains which could either be built from source or pre-built.
Signed-off-by Sumit Garg <[email protected]>--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.mdQuoted 14 lines
Quoted 6 lines
meta-arm-toolchain/README.md new file +0
-0meta-arm-toolchain/README.md line 8
Quoted 8 lines
meta-arm-toolchain/README.md new file +8
-0@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file.This comment.
Quoted 100 lines
Quoted 100 lines
meta-arm-toolchain/README.md new file +100
-0+ +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. +Quoted 8 lines
meta-arm-toolchain/README.md line 113
Quoted 5 lines
meta-arm-toolchain/README.md new file +5
-0+Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>Linaro is the origin of this code, and I think it is important to recognize this.
Thanks.
Quoted 8 lines
However, I would like some clarification as to what
this role is recognized to be and how interactions with the community will occur.Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed. I'm fairly sure you are in agreement with this, as this is what you've been doing already.
Quoted 7 lines
Yes I am in agreement with this.
Quoted 3 lines
But
since we are formalizing this with the above entry, I want it to be written somewhere :)Isn't the comment on top of this README above sufficient to formalize this?
It is sufficient for me.
For giggles, I did a quick look at the contributors since it was added.
$ git log meta-arm-toolchain/ | grep Author | sort | uniq -c 14 Author: Denys Dmytriyenko <[email protected]> 2 Author: Jon Mason <[email protected]> 1 Author: Ralph Siemsen <[email protected]> 2 Author: Sumit Garg <[email protected]>
Quoted 5 lines
It looks like Denys should probably be a maintainer too. Given that he has a unique use case and is testing this throughly (as he's found my patches to be very lacking). I don't know if he is interested in the extra burden of this, but I think you two would make a good pair and help give some validity to this being a group project.
Fine with me. I have to review and test patches for this layer anyway, as they have potential breaking things for me,
Quoted 1 line
Anyway, I'll pull this series in now.
As previously discussed, #3 is problematic.
Quoted 19 lines
Thanks,
JonQuoted 15 lines
-Sumit
Quoted 12 lines
Thanks,
JonQuoted 5 lines
--
2.7.4
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
In reply to Jon MasonQuoted 170 lines · Jon Mason
Quoted 149 lines · Sumit Garg
Quoted 11 lines · Jon Mason
Quoted 9 lines · Sumit Garg
Document usage details for GNU Arm toolchains which could either be built from source or pre-built.
Signed-off-by Sumit Garg <[email protected]>--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.mdQuoted 14 lines
Quoted 6 lines
meta-arm-toolchain/README.md new file +0
-0meta-arm-toolchain/README.md line 8
Quoted 8 lines
meta-arm-toolchain/README.md new file +8
-0@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file.This comment.
Quoted 100 lines
Quoted 100 lines
meta-arm-toolchain/README.md new file +100
-0+ +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. +Quoted 8 lines
meta-arm-toolchain/README.md line 113
Quoted 5 lines
meta-arm-toolchain/README.md new file +5
-0+Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>Linaro is the origin of this code, and I think it is important to recognize this.
Thanks.
Quoted 8 lines
However, I would like some clarification as to what
this role is recognized to be and how interactions with the community will occur.Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed. I'm fairly sure you are in agreement with this, as this is what you've been doing already.
Quoted 7 lines
Yes I am in agreement with this.
Quoted 3 lines
But
since we are formalizing this with the above entry, I want it to be written somewhere :)Isn't the comment on top of this README above sufficient to formalize this?
It is sufficient for me.
For giggles, I did a quick look at the contributors since it was added.
$ git log meta-arm-toolchain/ | grep Author | sort | uniq -c 14 Author: Denys Dmytriyenko <[email protected]> 2 Author: Jon Mason <[email protected]> 1 Author: Ralph Siemsen <[email protected]> 2 Author: Sumit Garg <[email protected]>
Quoted 6 lines
It looks like Denys should probably be a maintainer too. Given that he has a unique use case and is testing this throughly (as he's found my patches to be very lacking). I don't know if he is interested in the extra burden of this, but I think you two would make a good pair and help give some validity to this being a group project.
It's fine with me. Could you make the corresponding change while applying or would you like me to spin up the next version?
-Sumit
Quoted 20 lines
Anyway, I'll pull this series in now.
Thanks,
JonQuoted 15 lines
-Sumit
Quoted 12 lines
Thanks,
JonQuoted 5 lines
--
2.7.4
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
Quoted 178 lines · Sumit Garg
Quoted 170 lines · Jon Mason
Quoted 149 lines · Sumit Garg
Quoted 11 lines · Jon Mason
Quoted 9 lines · Sumit Garg
Document usage details for GNU Arm toolchains which could either be built from source or pre-built.
Signed-off-by Sumit Garg <[email protected]>--- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.mdQuoted 14 lines
Quoted 6 lines
meta-arm-toolchain/README.md new file +0
-0meta-arm-toolchain/README.md line 8
Quoted 8 lines
meta-arm-toolchain/README.md new file +8
-0@@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file.This comment.
Quoted 100 lines
Quoted 100 lines
meta-arm-toolchain/README.md new file +100
-0+ +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "<path-to-the-toolchain>" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + <installation-path>/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. +Quoted 8 lines
meta-arm-toolchain/README.md line 113
Quoted 5 lines
meta-arm-toolchain/README.md new file +5
-0+Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>Linaro is the origin of this code, and I think it is important to recognize this.
Thanks.
Quoted 8 lines
However, I would like some clarification as to what
this role is recognized to be and how interactions with the community will occur.Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed. I'm fairly sure you are in agreement with this, as this is what you've been doing already.
Quoted 7 lines
Yes I am in agreement with this.
Quoted 3 lines
But
since we are formalizing this with the above entry, I want it to be written somewhere :)Isn't the comment on top of this README above sufficient to formalize this?
It is sufficient for me.
For giggles, I did a quick look at the contributors since it was added.
$ git log meta-arm-toolchain/ | grep Author | sort | uniq -c 14 Author: Denys Dmytriyenko <[email protected]> 2 Author: Jon Mason <[email protected]> 1 Author: Ralph Siemsen <[email protected]> 2 Author: Sumit Garg <[email protected]>Quoted 6 lines
It looks like Denys should probably be a maintainer too. Given that he has a unique use case and is testing this throughly (as he's found my patches to be very lacking). I don't know if he is interested in the extra burden of this, but I think you two would make a good pair and help give some validity to this being a group project.
Quoted 2 lines
It's fine with me. Could you make the corresponding change while applying or would you like me to spin up the next version?
I took the silence on this series as an implicit ack and pushed it this morning before seeing the new comments. Sorry about that.
Given the above, I committed a single line patch to add Denys as a co-maintainer and pushed it to master.
So, hopefully no one is pissed off too much with both of the above. If so, please respond to patches with
"Hold off. I want to review this before committing". Otherwise, I'll take silence as an ack.
Thanks,
Jon
Quoted 23 lines
-Sumit
Quoted 20 lines
Anyway, I'll pull this series in now.
Thanks,
JonQuoted 15 lines
-Sumit
Quoted 12 lines
Thanks,
JonQuoted 5 lines
--
2.7.4
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [meta-arm] [PATCH v3 4/5] meta-arm-toolchain: Add README
Quoted 19 lines · Daniel Thompson
Quoted 18 lines · Jon Mason
meta-arm-toolchain/README.md line 113
Quoted 11 lines · Sumit Garg
meta-arm-toolchain/README.md new file +11
-0+gcc-aarch64-none-elf_<version>.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. + +Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg <[email protected]>Linaro is the origin of this code, and I think it is important to recognize this. However, I would like some clarification as to what this role is recognized to be and how interactions with the community will occur.
Quoted 8 lines
Quoted 3 lines
Specifically, I want all patches on the list and no pull requests. This is an active community, and I want to guarantee that all voices are heard, and comments addressed.
Agree entirely that is the right way to organise contributions.
I also couldn't help noticing that this policy is not currently enacted in the Contributing section for meta-arm-autonomy ;-) .
Noted and working on resolving that. :)
Thanks,
Jon
Quoted 3 lines
Daniel.
PATCH v3 5/5 external-arm-toolchain: Add package specific licenses
In reply to Sumit GargAdd license.inc file to state license of various packages provided by pre-built Arm tool-set.
--- .../external-arm-toolchain.bb | 4 +- .../external-arm-toolchain/license.inc | 76 ++++++++++++++++++++++ 2 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +2 -2
@@ -1,9 +1,9 @@ require recipes-core/glibc/glibc-package.inc +require license.inc + INHIBIT_DEFAULT_DEPS = "1" -# License applies to this recipe code, not the toolchain itself -LICENSE = "MIT" LIC_FILES_CHKSUM = "\ file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc new file +76 -0
76 lines not on this page · raw message
Signature · 1 line
2.7.4