Import ARM GNU-A toolset recipes from meta-linaro
PATCH 1/1 Import ARM GNU-A toolset recipes from meta-linaro
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:504ca3b217c9602b10eda0ec8a9f1055b59e482f.
--- README.md | 3 + .../include/external-arm-toolchain-versions.inc | 133 ++++ .../conf/distro/include/tcmode-external-arm.inc | 116 ++++ meta-arm-toolchain/conf/layer.conf | 15 + .../external-arm-toolchain.bb | 666 +++++++++++++++++++++ .../external-arm-toolchain/files/SUPPORTED | 1 + .../recipes-devtools/gcc/gcc-arm-8.2.inc | 114 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0003-gcc-poison-system-directories.patch | 194 ++++++ .../0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-8.2/0006-64-bit-multilib-hack.patch | 85 +++ .../gcc/gcc-arm-8.2/0007-optional-libstdc.patch | 125 ++++ ...0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++ .../gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0011-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch | 54 ++ .../0013-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 248 ++++++++ ...0015-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-8.2/0016-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-8.2/0017-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-8.2/0021-export-CPP.patch | 53 ++ ...-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 62 ++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 29 + .../0027-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...34-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 465 ++++++++++++++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 86 +++ .../0037-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0039-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0040-Re-introduce-spe-commandline-options.patch | 41 ++ .../gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch | 44 ++ ...werpc-powerpc64-Add-support-for-musl-ldso.patch | 31 + .../0043-riscv-Disable-multilib-for-OE.patch | 27 + .../recipes-devtools/gcc/gcc-arm-8.3.inc | 113 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0002-gcc-poison-system-directories.patch | 203 +++++++ .../0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-8.3/0004-64-bit-multilib-hack.patch | 85 +++ .../gcc/gcc-arm-8.3/0005-optional-libstdc.patch | 125 ++++ ...0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++ .../gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0009-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch | 54 ++ .../0011-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 248 ++++++++ ...0013-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-8.3/0014-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-8.3/0015-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-8.3/0019-export-CPP.patch | 53 ++ ...-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 98 +++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 28 + .../0025-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...32-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 125 ++++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 85 +++ .../0035-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0037-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0038-Re-introduce-spe-commandline-options.patch | 41 ++ .../0039-riscv-Disable-multilib-for-OE.patch | 27 + ...werpc-powerpc64-Add-support-for-musl-ldso.patch | 31 + .../recipes-devtools/gcc/gcc-arm-9.2.inc | 124 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0002-gcc-poison-system-directories.patch | 203 +++++++ .../0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-9.2/0004-64-bit-multilib-hack.patch | 119 ++++ .../gcc/gcc-arm-9.2/0005-optional-libstdc.patch | 125 ++++ .../gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0008-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch | 54 ++ .../0010-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 243 ++++++++ ...0012-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-9.2/0013-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-9.2/0014-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-9.2/0018-export-CPP.patch | 53 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 55 ++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 29 + .../0023-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 346 +++++++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...30-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 79 +++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 86 +++ .../0033-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0035-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0036-Re-introduce-spe-commandline-options.patch | 41 ++ ...x-up-libsanitizer-build-with-master-glibc.patch | 70 +++ .../gcc/gcc-cross-canadian_arm-8.2.bb | 5 + .../gcc/gcc-cross-canadian_arm-8.3.bb | 5 + .../gcc/gcc-cross-canadian_arm-9.2.bb | 5 + .../recipes-devtools/gcc/gcc-cross_arm-8.2.bb | 3 + .../recipes-devtools/gcc/gcc-cross_arm-8.3.bb | 3 + .../recipes-devtools/gcc/gcc-cross_arm-9.2.bb | 3 + .../recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb | 2 + .../recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb | 2 + .../recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb | 2 + .../recipes-devtools/gcc/gcc-runtime_arm-8.2.bb | 7 + .../recipes-devtools/gcc/gcc-runtime_arm-8.3.bb | 7 + .../recipes-devtools/gcc/gcc-runtime_arm-9.2.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb | 7 + .../recipes-devtools/gcc/gcc-source_arm-8.2.bb | 4 + .../recipes-devtools/gcc/gcc-source_arm-8.3.bb | 4 + .../recipes-devtools/gcc/gcc-source_arm-9.2.bb | 4 + .../recipes-devtools/gcc/gcc_arm-8.2.bb | 14 + .../recipes-devtools/gcc/gcc_arm-8.3.bb | 14 + .../recipes-devtools/gcc/gcc_arm-9.2.bb | 14 + .../recipes-devtools/gcc/libgcc-initial_arm-8.2.bb | 2 + .../recipes-devtools/gcc/libgcc-initial_arm-8.3.bb | 2 + .../recipes-devtools/gcc/libgcc-initial_arm-9.2.bb | 5 + .../recipes-devtools/gcc/libgcc_arm-8.2.bb | 2 + .../recipes-devtools/gcc/libgcc_arm-8.3.bb | 2 + .../recipes-devtools/gcc/libgcc_arm-9.2.bb | 5 + .../recipes-devtools/gcc/libgfortran_arm-8.2.bb | 3 + .../recipes-devtools/gcc/libgfortran_arm-8.3.bb | 3 + .../recipes-devtools/gcc/libgfortran_arm-9.2.bb | 3 + 157 files changed, 11368 insertions(+) create mode 100644 meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc create mode 100644 meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc create mode 100644 meta-arm-toolchain/conf/layer.conf create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0003-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0006-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0007-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0011-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0013-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0015-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0016-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0017-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0021-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0027-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0037-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0039-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0040-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0043-riscv-Disable-multilib-for-OE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0002-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0004-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0005-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0009-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0011-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0013-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0014-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0015-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0019-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0025-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0035-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0037-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0038-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0039-riscv-Disable-multilib-for-OE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0002-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0004-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0005-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0008-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0010-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0012-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0013-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0014-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0018-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0020-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0021-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0022-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0023-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0024-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0026-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0027-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0029-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0030-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0031-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0032-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0033-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0034-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0035-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0036-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0037-Fix-up-libsanitizer-build-with-master-glibc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-9.2.bb
README.md +3 -0
@@ -13,6 +13,9 @@ meta-arm-bsp: meta-arm-iota: This layer provides support for Arm's IOTA Linux Distribution +meta-arm-toolchain: + This layer provides support for Arm's GNU-A toolset releases + Contributing ------------ Currently, we only accept patches from the meta-arm mailing list. For general
meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc new file +133 -0
133 lines not on this page · raw message
meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc new file +116 -0
116 lines not on this page · raw message
meta-arm-toolchain/conf/layer.conf new file +15 -0
@@ -0,0 +1,15 @@ +BBPATH .= ":${LAYERDIR}" +BBFILES += "\ + ${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend \ + " + +BBFILE_COLLECTIONS += "arm-toolchain" +BBFILE_PATTERN_arm-toolchain := "^${LAYERDIR}/" +BBFILE_PRIORITY_arm-toolchain = "30" + +LAYERSERIES_COMPAT_arm-toolchain = "zeus" + +# do not error out on bbappends for missing recipes +BB_DANGLINGAPPENDS_WARNONLY = "true" +
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb new file +666 -0
666 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED new file +1 -0
@@ -0,0 +1 @@ +POSIX
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2.inc new file +114 -0
114 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0003-gcc-poison-system-directories.patch new file +194 -0
194 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73 -0
73 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0006-64-bit-multilib-hack.patch new file +85 -0
85 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0007-optional-libstdc.patch new file +125 -0
125 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59 -0
59 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch new file +38 -0
@@ -0,0 +1,38 @@ +From e19d25847f08eeb5ef26a031fa5eff732bfd0d43 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:16:28 +0400 +Subject: [PATCH 09/39] COLLECT_GCC_OPTIONS + +This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to +invoke collect2. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/gcc.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 8cd27a5dad5..d355d65583a 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -4677,6 +4677,15 @@ set_collect_gcc_options (void) + sizeof ("COLLECT_GCC_OPTIONS=") - 1); + + first_time = TRUE; ++#ifdef HAVE_LD_SYSROOT ++ if (target_system_root_changed && target_system_root) ++ { ++ obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); ++ obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); ++ obstack_grow (&collect_obstack, "'", 1); ++ first_time = FALSE; ++ } ++#endif + for (i = 0; (int) i < n_switches; i++) + { + const char *const *args; +-- +2.17.0 +
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96 -0
96 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0011-fortran-cross-compile-hack.patch new file +46 -0
46 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0013-MIPS64-Default-to-N64-ABI.patch new file +57 -0
57 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +248 -0
248 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0015-gcc-Fix-argument-list-too-long-error.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 2e75a14cd60227e036790184f0eb400abc3c870b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:26:37 +0400 +Subject: [PATCH 15/39] gcc: Fix argument list too long error. + +There would be an "Argument list too long" error when the +build directory is longer than 200, this is caused by: + +headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u` + +The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle +it, use the $(sort list) of GNU make which can handle the too long list +would fix the problem, the header would be short enough after sorted. +The "tr ' ' '\012'" was used for translating the space to "\n", the +$(sort list) doesn't need this. + +Signed-off-by: Robert Yang <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 1367136bfac..71a8275c39f 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -3538,7 +3538,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype + # We keep the directory structure for files in config or c-family and .def + # files. All other files are flattened to a single directory. + $(mkinstalldirs) $(DESTDIR)$(plugin_includedir) +- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \ ++ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \ + for file in $$headers; do \ + if [ -f $$file ] ; then \ +-- +2.17.0 +
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0016-Disable-sdt.patch new file +113 -0
113 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0017-libtool.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43 -0
43 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102 -0
102 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31 -0
@@ -0,0 +1,31 @@ +From a7266111a5ba2d146c979e86ff84f6b807ca5fdc Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 09:39:38 +0000 +Subject: [PATCH 20/39] Avoid using libdir from .la which usually points to a + host path + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Jonathan Liu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ltmain.sh b/ltmain.sh +index 0121fba707f..52bdbdb5f9c 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -5628,6 +5628,9 @@ func_mode_link () + absdir="$abs_ladir" + libdir="$abs_ladir" + else ++ # Instead of using libdir from .la which usually points to a host path, ++ # use the path the .la is contained in. ++ libdir="$abs_ladir" + dir="$libdir" + absdir="$libdir" + fi +-- +2.17.0 +
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0021-export-CPP.patch new file +53 -0
53 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch new file +62 -0
62 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38 -0
@@ -0,0 +1,38 @@ +From fd96c9b35c592f1bdd32bc5ae669157473e44063 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 3 Mar 2015 08:21:19 +0000 +Subject: [PATCH 25/39] Don't search host directory during "relink" if + $inst_prefix is provided + +http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html + +Upstream-Status: Submitted + +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/ltmain.sh b/ltmain.sh +index 52bdbdb5f9c..82bcec39f05 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -6004,12 +6004,13 @@ func_mode_link () + fi + else + # We cannot seem to hardcode it, guess we'll fake it. ++ # Default if $libdir is not relative to the prefix: + add_dir="-L$libdir" +- # Try looking first in the location we're being installed to. ++ + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) +- add_dir="$add_dir -L$inst_prefix_dir$libdir" ++ add_dir="-L$inst_prefix_dir$libdir" + ;; + esac + fi +-- +2.17.0 +
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29 -0
@@ -0,0 +1,29 @@ +From c2e400afe8c514357859fca88af4d3e1fcbfe2ff Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:15:27 -0700 +Subject: [PATCH 26/39] Use SYSTEMLIBS_DIR replacement instead of hardcoding + base_libdir + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index bf1327e98cc..64436183bc8 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER + #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" +-- +2.17.0 +
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0027-aarch64-Add-support-for-musl-ldso.patch new file +28 -0
@@ -0,0 +1,28 @@ +From a2cc175769fd8255750eaecae64e3d1f9c38d48f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:18:39 -0700 +Subject: [PATCH 27/39] aarch64: Add support for musl ldso + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index 64436183bc8..ba156676026 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -24,7 +24,7 @@ + #define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER +-#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define MUSL_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef ASAN_CC1_SPEC + #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" +-- +2.17.0 +
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch new file +213 -0
98 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102 -0
102 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137 -0
137 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87 -0
87 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +465 -0
465 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86 -0
86 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0037-sync-gcc-stddef.h-with-musl.patch new file +91 -0
91 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60 -0
60 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0039-Fix-for-testsuite-failure.patch new file +258 -0
258 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0040-Re-introduce-spe-commandline-options.patch new file +41 -0
41 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch new file +44 -0
44 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch new file +31 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0043-riscv-Disable-multilib-for-OE.patch new file +27 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3.inc new file +113 -0
113 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0002-gcc-poison-system-directories.patch new file +203 -0
203 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73 -0
73 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0004-64-bit-multilib-hack.patch new file +85 -0
85 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0005-optional-libstdc.patch new file +125 -0
125 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59 -0
59 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch new file +38 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96 -0
96 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0009-fortran-cross-compile-hack.patch new file +46 -0
46 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0011-MIPS64-Default-to-N64-ABI.patch new file +57 -0
57 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +248 -0
248 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0013-gcc-Fix-argument-list-too-long-error.patch new file +40 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0014-Disable-sdt.patch new file +113 -0
113 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0015-libtool.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43 -0
43 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102 -0
102 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0019-export-CPP.patch new file +53 -0
53 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch new file +98 -0
98 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +28 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0025-aarch64-Add-support-for-musl-ldso.patch new file +28 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch new file +213 -0
213 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102 -0
102 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137 -0
137 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87 -0
87 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +125 -0
125 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +85 -0
85 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0035-sync-gcc-stddef.h-with-musl.patch new file +91 -0
91 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60 -0
60 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0037-Fix-for-testsuite-failure.patch new file +258 -0
258 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0038-Re-introduce-spe-commandline-options.patch new file +41 -0
41 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0039-riscv-Disable-multilib-for-OE.patch new file +27 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch new file +31 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2.inc new file +124 -0
124 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0002-gcc-poison-system-directories.patch new file +203 -0
203 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73 -0
73 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0004-64-bit-multilib-hack.patch new file +119 -0
119 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0005-optional-libstdc.patch new file +125 -0
125 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch new file +38 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96 -0
96 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0008-fortran-cross-compile-hack.patch new file +46 -0
46 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0010-MIPS64-Default-to-N64-ABI.patch new file +57 -0
57 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +243 -0
243 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0012-gcc-Fix-argument-list-too-long-error.patch new file +40 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0013-Disable-sdt.patch new file +113 -0
113 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0014-libtool.patch new file +42 -0
42 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43 -0
43 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102 -0
102 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0018-export-CPP.patch new file +53 -0
53 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch new file +55 -0
55 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0020-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0021-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0022-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0023-aarch64-Add-support-for-musl-ldso.patch new file +28 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0024-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54 -0
54 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch new file +346 -0
346 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0026-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102 -0
102 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0027-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137 -0
137 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0029-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87 -0
87 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0030-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +79 -0
79 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0031-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0032-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86 -0
86 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0033-sync-gcc-stddef.h-with-musl.patch new file +91 -0
91 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0034-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60 -0
60 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0035-Fix-for-testsuite-failure.patch new file +258 -0
258 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0036-Re-introduce-spe-commandline-options.patch new file +41 -0
41 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0037-Fix-up-libsanitizer-build-with-master-glibc.patch new file +70 -0
70 lines not on this page · raw message
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.2.bb new file +5 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.3.bb new file +5 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-9.2.bb new file +5 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.2.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.3.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-9.2.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.2.bb new file +7 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.3.bb new file +7 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-9.2.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb new file +7 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.2.bb new file +4 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.3.bb new file +4 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-9.2.bb new file +4 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.2.bb new file +14 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.3.bb new file +14 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-9.2.bb new file +14 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.2.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.3.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-9.2.bb new file +5 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.2.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.3.bb new file +2 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-9.2.bb new file +5 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.2.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.3.bb new file +3 -0
Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-9.2.bb new file +3 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.7.4
Part of the diff is not shown here. View the raw message.
Quoted 5 lines · Sumit Garg
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.Signed-off-by Sumit Garg <[email protected]>
It's an exact copy of what's currently in meta-linaro-toolchain, but I still decided to test it - I applied this patch to meta-arm and reconfigured my setup by replacing meta-linaro-toolchain with the new meta-arm-toolchain and ran few builds that use external-arm-toolchain and gcc-arm recipes:
Quoted 12,634 lines
--- README.md | 3 + .../include/external-arm-toolchain-versions.inc | 133 ++++ .../conf/distro/include/tcmode-external-arm.inc | 116 ++++ meta-arm-toolchain/conf/layer.conf | 15 + .../external-arm-toolchain.bb | 666 +++++++++++++++++++++ .../external-arm-toolchain/files/SUPPORTED | 1 + .../recipes-devtools/gcc/gcc-arm-8.2.inc | 114 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0003-gcc-poison-system-directories.patch | 194 ++++++ .../0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-8.2/0006-64-bit-multilib-hack.patch | 85 +++ .../gcc/gcc-arm-8.2/0007-optional-libstdc.patch | 125 ++++ ...0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++ .../gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0011-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch | 54 ++ .../0013-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 248 ++++++++ ...0015-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-8.2/0016-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-8.2/0017-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-8.2/0021-export-CPP.patch | 53 ++ ...-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 62 ++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 29 + .../0027-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...34-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 465 ++++++++++++++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 86 +++ .../0037-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0039-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0040-Re-introduce-spe-commandline-options.patch | 41 ++ .../gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch | 44 ++ ...werpc-powerpc64-Add-support-for-musl-ldso.patch | 31 + .../0043-riscv-Disable-multilib-for-OE.patch | 27 + .../recipes-devtools/gcc/gcc-arm-8.3.inc | 113 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0002-gcc-poison-system-directories.patch | 203 +++++++ .../0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-8.3/0004-64-bit-multilib-hack.patch | 85 +++ .../gcc/gcc-arm-8.3/0005-optional-libstdc.patch | 125 ++++ ...0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++ .../gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0009-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch | 54 ++ .../0011-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 248 ++++++++ ...0013-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-8.3/0014-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-8.3/0015-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-8.3/0019-export-CPP.patch | 53 ++ ...-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 98 +++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 28 + .../0025-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...32-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 125 ++++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 85 +++ .../0035-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0037-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0038-Re-introduce-spe-commandline-options.patch | 41 ++ .../0039-riscv-Disable-multilib-for-OE.patch | 27 + ...werpc-powerpc64-Add-support-for-musl-ldso.patch | 31 + .../recipes-devtools/gcc/gcc-arm-9.2.inc | 124 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0002-gcc-poison-system-directories.patch | 203 +++++++ .../0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-9.2/0004-64-bit-multilib-hack.patch | 119 ++++ .../gcc/gcc-arm-9.2/0005-optional-libstdc.patch | 125 ++++ .../gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0008-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch | 54 ++ .../0010-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 243 ++++++++ ...0012-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-9.2/0013-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-9.2/0014-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-9.2/0018-export-CPP.patch | 53 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 55 ++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 29 + .../0023-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 346 +++++++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...30-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 79 +++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 86 +++ .../0033-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0035-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0036-Re-introduce-spe-commandline-options.patch | 41 ++ ...x-up-libsanitizer-build-with-master-glibc.patch | 70 +++ .../gcc/gcc-cross-canadian_arm-8.2.bb | 5 + .../gcc/gcc-cross-canadian_arm-8.3.bb | 5 + .../gcc/gcc-cross-canadian_arm-9.2.bb | 5 + .../recipes-devtools/gcc/gcc-cross_arm-8.2.bb | 3 + .../recipes-devtools/gcc/gcc-cross_arm-8.3.bb | 3 + .../recipes-devtools/gcc/gcc-cross_arm-9.2.bb | 3 + .../recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb | 2 + .../recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb | 2 + .../recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb | 2 + .../recipes-devtools/gcc/gcc-runtime_arm-8.2.bb | 7 + .../recipes-devtools/gcc/gcc-runtime_arm-8.3.bb | 7 + .../recipes-devtools/gcc/gcc-runtime_arm-9.2.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb | 7 + .../recipes-devtools/gcc/gcc-source_arm-8.2.bb | 4 + .../recipes-devtools/gcc/gcc-source_arm-8.3.bb | 4 + .../recipes-devtools/gcc/gcc-source_arm-9.2.bb | 4 + .../recipes-devtools/gcc/gcc_arm-8.2.bb | 14 + .../recipes-devtools/gcc/gcc_arm-8.3.bb | 14 + .../recipes-devtools/gcc/gcc_arm-9.2.bb | 14 + .../recipes-devtools/gcc/libgcc-initial_arm-8.2.bb | 2 + .../recipes-devtools/gcc/libgcc-initial_arm-8.3.bb | 2 + .../recipes-devtools/gcc/libgcc-initial_arm-9.2.bb | 5 + .../recipes-devtools/gcc/libgcc_arm-8.2.bb | 2 + .../recipes-devtools/gcc/libgcc_arm-8.3.bb | 2 + .../recipes-devtools/gcc/libgcc_arm-9.2.bb | 5 + .../recipes-devtools/gcc/libgfortran_arm-8.2.bb | 3 + .../recipes-devtools/gcc/libgfortran_arm-8.3.bb | 3 + .../recipes-devtools/gcc/libgfortran_arm-9.2.bb | 3 + 157 files changed, 11368 insertions(+) create mode 100644 meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc create mode 100644 meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc create mode 100644 meta-arm-toolchain/conf/layer.conf create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0003-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0006-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0007-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0011-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0013-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0015-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0016-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0017-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0021-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0027-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0037-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0039-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0040-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0043-riscv-Disable-multilib-for-OE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0002-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0004-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0005-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0009-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0011-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0013-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0014-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0015-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0019-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0025-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0035-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0037-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0038-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0039-riscv-Disable-multilib-for-OE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0002-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0004-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0005-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0008-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0010-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0012-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0013-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0014-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0018-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0020-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0021-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0022-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0023-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0024-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0026-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0027-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0029-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0030-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0031-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0032-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0033-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0034-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0035-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0036-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0037-Fix-up-libsanitizer-build-with-master-glibc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-9.2.bbREADME.md +3
-0@@ -13,6 +13,9 @@ meta-arm-bsp: meta-arm-iota: This layer provides support for Arm's IOTA Linux Distribution +meta-arm-toolchain: + This layer provides support for Arm's GNU-A toolset releases + Contributing ------------ Currently, we only accept patches from the meta-arm mailing list. For generalmeta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc new file +133
-0@@ -0,0 +1,133 @@ +def eat_run(d, cmd, *args): + import bb.process + import subprocess + + topdir = d.getVar('TOPDIR', True) + toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN', True) + if not toolchain_path: + return 'UNKNOWN', 'UNKNOWN' + + target_prefix = d.getVar('TARGET_PREFIX', True) + path = os.path.join(toolchain_path, 'bin', target_prefix + cmd) + args = [path] + list(args) + + return bb.process.run(args, cwd=topdir, stderr=subprocess.PIPE) + +def eat_get_version(d): + try: + stdout, stderr = eat_run(d, 'gcc', '-v') + except bb.process.CmdError as exc: + bb.error('Failed to obtain external Arm toolchain version: %s' % exc) + return 'UNKNOWN' + else: + last_line = stderr.splitlines()[-1] + return last_line + +# Extract the YYYY.MM version +def eat_get_main_version(d): + version = eat_get_version(d) + bb.debug(2, 'Trying for parse version info from: %s' % version) + if version != 'UNKNOWN': + if version.split()[4] == '(GNU': + # gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) + # gcc version 8.2.1 20180802 (GNU Toolchain for the A-profile Architecture 8.2-2018.11 (arm-rel-8.26)) + return version.split()[10].split('-')[1] + elif version.split()[3] == '(GNU': + # gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) + return version.split()[9].split('-')[1] + else: + bb.error('Failed to parse external Arm toolchain version from: %s' % version) + else: + return version + +# Extract the x.y.z version from 'gcc version 4.9.1' +def eat_get_gcc_version(d): + version = eat_get_version(d) + if version != 'UNKNOWN': + return version.split()[2] + else: + return version + +def eat_get_libc_version(d): + import os,bb + syspath = bb.data.expand('${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}', d) + if not syspath: + return 'UNKNOWN' + + libpath = syspath + '/libc/' + bb.data.expand('${EAT_LIBDIR}/${EAT_TARGET_SYS}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + + libpath = syspath + '/libc/' + bb.data.expand('${EAT_LIBDIR}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + + libpath = syspath + '/libc/usr/' + bb.data.expand('${EAT_LIBDIR}/${EAT_TARGET_SYS}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + + libpath = syspath + '/libc/usr/' + bb.data.expand('${EAT_LIBDIR}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + return 'UNKNOWN' + +def eat_get_kernel_version(d): + import os,bb + syspath = bb.data.expand('${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}', d) + if not syspath: + return 'UNKNOWN' + + vf = syspath + '/libc/usr/include/linux/version.h' + + try: + f = open(vf, 'r') + except (OSError, IOError): + return 'UNKNOWN' + + l = f.readlines(); + f.close(); + for s in l: + if s.find('LINUX_VERSION_CODE') > 0: + ver = int(s.split()[2]) + maj = ver / 65536 + ver = ver % 65536 + min = ver / 256 + ver = ver % 256 + return str(maj)+'.'+str(min)+'.'+str(ver) + return 'UNKNOWN' + +def eat_get_gdb_version(d): + try: + stdout, stderr = eat_run(d, 'gdb', '-v') + except bb.process.CmdError: + return 'UNKNOWN' + else: + first_line = stdout.splitlines()[0] + return first_line.split()[-1] + +python external_arm_toolchain_version_handler () { + if not isinstance(e, bb.event.ConfigParsed): + return + d = e.data + ld = d.createCopy() + ld.finalize() + + d.setVar('EAT_VER_MAIN', eat_get_main_version(ld)) + d.setVar('EAT_VER_GCC', eat_get_gcc_version(ld)) + d.setVar('EAT_VER_LIBC', eat_get_libc_version(ld)) + d.setVar('EAT_VER_KERNEL', eat_get_kernel_version(ld)) + d.setVar('EAT_VER_GDB', eat_get_gdb_version(ld)) +} +addhandler external_arm_toolchain_version_handlermeta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc new file +116
-0@@ -0,0 +1,116 @@ +# +# Configuration to use an external Arm binary toolchain +# + +EXTERNAL_TOOLCHAIN ?= "/usr/local/arm-binary-toolchain/${TARGET_ARCH}" + +TOOLCHAIN_PATH_ADD = "${EXTERNAL_TOOLCHAIN}/bin:" +PATH =. "${TOOLCHAIN_PATH_ADD}" + +EAT_TARGET_SYS_arm ?= "${@ 'arm-none-linux-gnueabihf' if os.path.exists('${EXTERNAL_TOOLCHAIN}/bin/arm-none-linux-gnueabihf-gcc') else 'arm-linux-gnueabihf'}" +EAT_TARGET_SYS_aarch64 ?= "${@ 'aarch64-none-linux-gnu' if os.path.exists('${EXTERNAL_TOOLCHAIN}/bin/aarch64-none-linux-gnu-gcc') else 'aarch64-linux-gnu'}" +EAT_TARGET_SYS = "${TARGET_SYS}" +TARGET_PREFIX = "${EAT_TARGET_SYS}-" + +EAT_LIBDIR_arm = "lib" +EAT_LIBDIR_aarch64 = "lib64" + +GCCMULTILIB_forcevariable = "--disable-multilib" +IMAGE_LINGUAS_forcevariable = "" + +# Blacklist toolchain recipes as a belt-and-suspenders way to use the external toolchain +PNBLACKLIST[glibc] = "Using external toolchain" +PNBLACKLIST[libgcc] = "Using external toolchain" +PNBLACKLIST[gcc-cross] = "Using external toolchain" +PNBLACKLIST[gcc-runtime] = "Using external toolchain" +PNBLACKLIST[gcc-sanitizers] = "Using external toolchain" + +PREFERRED_PROVIDER_linux-libc-headers = "external-arm-toolchain" +PREFERRED_PROVIDER_linux-libc-headers-dev = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "external-arm-toolchain" +PREFERRED_PROVIDER_glibc = "external-arm-toolchain" +PREFERRED_PROVIDER_libgcc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libc-locale = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libintl = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libiconv = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/crypt = "external-arm-toolchain" +PREFERRED_PROVIDER_glibc-thread-db = "external-arm-toolchain" +PREFERRED_PROVIDER_glibc-mtrace = "external-arm-toolchain" +PREFERRED_PROVIDER_libc-mtrace = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/linux-libc-headers = "external-arm-toolchain" +TARGET_CPPFLAGS_prepend = " -isystem${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include " +TARGET_LDFLAGS_prepend = " -L${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/lib -Wl,-rpath-link,${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/lib " + +TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_HOST}" + +DISTRO_FEATURES_LIBC = "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-crypt \ + libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse \ + libc-getlogin libc-idn libc-inet-anl libc-libm libc-libm-big \ + libc-locales libc-locale-code libc-charsets \ + libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc \ + libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \ + libc-posix-wchar-io" + +ENABLE_BINARY_LOCALE_GENERATION = "0" +GLIBC_INTERNAL_USE_BINARY_LOCALE = "precompiled" +LIBCOVERRIDE = ":libc-glibc" + +ERROR_QA[type] ?= "list" +python toolchain_metadata_setup () { + import subprocess + if not isinstance(e, bb.event.ConfigParsed): + return + + d = e.data + l = d.createCopy() + l.finalize() + oe_import(l) + + external_toolchain = l.getVar('EXTERNAL_TOOLCHAIN', True) + if not external_toolchain or external_toolchain == 'UNDEFINED': + bb.fatal("Error: EXTERNAL_TOOLCHAIN must be set to the path to your arm toolchain") + + if not os.path.exists(external_toolchain): + bb.fatal("Error: EXTERNAL_TOOLCHAIN path '%s' does not exist" % external_toolchain) + + # The external toolchain may not have been built with the oe-core preferred + # gnu hash setting, so ensure that the corresponding sanity check is not an error. + error_qa = oe.data.typed_value('ERROR_QA', l) + if 'ldflags' in error_qa: + error_qa.remove('ldflags') + d.setVar('ERROR_QA', ' '.join(error_qa)) +} +addhandler toolchain_metadata_setup + +def populate_toolchain_links(d): + import errno + import os + from glob import glob + + d = d.createCopy() + d.finalize() + + pattern = bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/${TARGET_PREFIX}*', d) + files = glob(pattern) + if not files: + bb.fatal("Unable to populate toolchain binary symlinks") + + bindir = d.getVar('STAGING_BINDIR_TOOLCHAIN', True) + bb.mkdirhier(bindir) + for f in files: + base = os.path.basename(f) + newpath = os.path.join(bindir, base) + try: + os.symlink(f, newpath) + except OSError as exc: + if exc.errno == errno.EEXIST: + break + bb.fatal("Unable to populate toolchain binary symlink for %s: %s" % (newpath, exc)) + +require conf/distro/include/external-arm-toolchain-versions.incmeta-arm-toolchain/conf/layer.conf new file +15
-0@@ -0,0 +1,15 @@ +BBPATH .= ":${LAYERDIR}" +BBFILES += "\ + ${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend \ + " + +BBFILE_COLLECTIONS += "arm-toolchain" +BBFILE_PATTERN_arm-toolchain := "^${LAYERDIR}/" +BBFILE_PRIORITY_arm-toolchain = "30" + +LAYERSERIES_COMPAT_arm-toolchain = "zeus" + +# do not error out on bbappends for missing recipes +BB_DANGLINGAPPENDS_WARNONLY = "true" +meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb new file +666
-0@@ -0,0 +1,666 @@ +require recipes-core/glibc/glibc-package.inc + +INHIBIT_DEFAULT_DEPS = "1" +INHIBIT_PACKAGE_STRIP = "1" +INHIBIT_PACKAGE_DEBUG_SPLIT = "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 \ +" + +PROVIDES += "\ + linux-libc-headers \ + virtual/${TARGET_PREFIX}gcc \ + virtual/${TARGET_PREFIX}g++ \ + virtual/${TARGET_PREFIX}gcc-initial \ + virtual/${TARGET_PREFIX}binutils \ + binutils-cross-${TARGET_ARCH} \ + virtual/${TARGET_PREFIX}libc-for-gcc \ + virtual/${TARGET_PREFIX}compilerlibs \ + virtual/libc \ + virtual/libintl \ + virtual/libiconv \ + virtual/crypt \ + glibc-mtrace \ + glibc-thread-db \ + glibc \ + libc-mtrace \ + gcc-runtime \ + libgcc \ + libg2c \ + libg2c-dev \ + libssp \ + libssp-dev \ + libssp-staticdev \ + libgfortran \ + libgfortran-dev \ + libgfortran-staticdev \ + libmudflap \ + libmudflap-dev \ + libgomp \ + libgomp-dev \ + libgomp-staticdev \ + libitm \ + libitm-dev \ + libitm-staticdev \ + libquadmath \ + libquadmath-dev \ + libquadmath-staticdev \ + virtual/linux-libc-headers \ + libgcov-staticdev \ + virtual/libc-locale \ +" + +PV = "${EAT_VER_MAIN}" + +BINV = "${EAT_VER_GCC}" +TARGET_SYS = "${EAT_TARGET_SYS}" + +SRC_URI = "file://SUPPORTED" + +do_install() { + # Add stubs for files OE-core expects + install -d ${S}/nscd/ + touch ${S}/nscd/nscd.init + touch ${S}/nscd/nscd.conf + touch ${S}/nscd/nscd.service + touch ${S}/../makedbs.sh + + install -d ${D}${base_libdir} + install -d ${D}${base_sbindir} + install -d ${D}${bindir} + install -d ${D}${sbindir} + install -d ${D}${libdir} + install -d ${D}${libexecdir} + 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} + + CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir} + if [ -d ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/${EAT_TARGET_SYS} ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/${EAT_TARGET_SYS}/* ${D}${base_libdir} + else + if [ -f ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/ld-${EAT_VER_LIBC}.so ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/* ${D}${base_libdir} + else + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/*.so* ${D}${base_libdir} + fi + fi + if [ -d ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/${EAT_TARGET_SYS} ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}/* ${D}${libdir} + else + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/* ${D}${libdir} + if [ ! -f ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/ld-${EAT_VER_LIBC}.so ]; then + rm -rf ${D}${libdir}/*.so* + fi + fi + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/share/* ${D}${datadir} + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/* ${D}${includedir} + if [ -d ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/${EAT_TARGET_SYS} ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/${EAT_TARGET_SYS}/* ${D}${includedir} + rm -r ${D}${includedir}/${EAT_TARGET_SYS} + fi + + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + ln -sf ../usr/include/c++ ${D}/include/c++ + + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir} + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/sbin/* ${D}${sbindir} + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/sbin/* ${D}${base_sbindir} + rm -rf ${D}${bindir}/gdbserver + sed -i -e 's#/arm/tools/gnu/bash/4.2/rhe6-x86_64##' ${D}${bindir}/tzselect + sed -i -e 's#/arm/tools/gnu/bash/4.2/rhe6-x86_64##' ${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}/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}/ + + # 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)}" + ln -sf ld-${EAT_VER_LIBC}.so ${D}${base_libdir}/${linker_name} + ln -sf ../../lib/librt.so.1 ${D}${libdir}/librt.so + ln -sf ../../lib/libcrypt.so.1 ${D}${libdir}/libcrypt.so + ln -sf ../../lib/libresolv.so.2 ${D}${libdir}/libresolv.so + ln -sf ../../lib/libnss_hesiod.so.2 ${D}${libdir}/libnss_hesiod.so + ln -sf ../../lib/libutil.so.1 ${D}${libdir}/libutil.so + ln -sf ../../lib/libBrokenLocale.so.1 ${D}${libdir}/libBrokenLocale.so + ln -sf ../../lib/libpthread.so.0 ${D}${libdir}/libpthread.so + ln -sf ../../lib/libthread_db.so.1 ${D}${libdir}/libthread_db.so + ln -sf ../../lib/libanl.so.1 ${D}${libdir}/libanl.so + ln -sf ../../lib/libdl.so.2 ${D}${libdir}/libdl.so + ln -sf ../../lib/libnss_db.so.2 ${D}${libdir}/libnss_db.so + ln -sf ../../lib/libnss_dns.so.2 ${D}${libdir}/libnss_dns.so + ln -sf ../../lib/libnss_files.so.2 ${D}${libdir}/libnss_files.so + ln -sf ../../lib/libnss_compat.so.2 ${D}${libdir}/libnss_compat.so + ln -sf ../../lib/libm.so.6 ${D}${libdir}/libm.so + + # remove potential .so duplicates from base_libdir + # for all symlinks created above in libdir + rm -f ${D}${base_libdir}/librt.so + rm -f ${D}${base_libdir}/libcrypt.so + rm -f ${D}${base_libdir}/libresolv.so + rm -f ${D}${base_libdir}/libnss_hesiod.so + rm -f ${D}${base_libdir}/libutil.so + rm -f ${D}${base_libdir}/libBrokenLocale.so + rm -f ${D}${base_libdir}/libpthread.so + rm -f ${D}${base_libdir}/libthread_db.so + rm -f ${D}${base_libdir}/libanl.so + rm -f ${D}${base_libdir}/libdl.so + rm -f ${D}${base_libdir}/libnss_db.so + rm -f ${D}${base_libdir}/libnss_dns.so + rm -f ${D}${base_libdir}/libnss_files.so + rm -f ${D}${base_libdir}/libnss_compat.so + rm -f ${D}${base_libdir}/libm.so + + # Move these completely to ${libdir} and delete duplicates in ${base_libdir} + for lib in asan atomic gfortran gomp itm lsan sanitizer stdc++ tsan ubsan; do + if [ -e ${D}${base_libdir}/lib${lib}.spec ] ; then + mv ${D}${base_libdir}/lib${lib}.spec ${D}${libdir} + fi + if [ -e ${D}${base_libdir}/lib${lib}.a ] ; then + mv ${D}${base_libdir}/lib${lib}.a ${D}${libdir} + fi + rm -f ${D}${base_libdir}/lib${lib}* + done + + # Clean up duplicate libs that are both in base_libdir and libdir + rm -f ${D}${libdir}/libgcc* + + # Besides ld-${EAT_VER_LIBC}.so, other libs can have duplicates like lib*-${EAT_VER_LIBC}.so + # Only remove them if both are regular files and are identical + for i in ${D}${base_libdir}/lib*-${EAT_VER_LIBC}.so; do + f=$(echo $i | sed 's/-${EAT_VER_LIBC}//') + l=$(ls $f.*) + if [ $(readlink -f $i ) = $l ]; then + echo "$i is a symlink of $l, keep it" + elif [ $(readlink -f $l ) = $i ]; then + echo "$l is a symlink of $i, keep it" + else + cmp -s $i $l + if [ $? -eq 0 ]; then + echo "$i is a duplicate of $l, remove it" + rm $i + else + echo "$i and $l are different files, keep them both" + fi + fi + done + + if [ -d ${D}${base_libdir}/arm-linux-gnueabi ]; then + rm -rf ${D}${base_libdir}/arm-linux-gnueabi + fi + + if [ -d ${D}${base_libdir}/ldscripts ]; then + rm -rf ${D}${base_libdir}/ldscripts + fi + + # Provided by libnsl2 + rm -rf ${D}${includedir}/rpcsvc/yppasswd.* + # Provided by quota + rm -rf ${D}${includedir}/rpcsvc/rquota.* + + if [ -f ${D}${libdir}/libc.so ];then + sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../${EAT_LIBDIR}#g" -e "s# /usr/${EAT_LIBDIR}/# /usr/lib/#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" -e "s# /${EAT_LIBDIR}/ld-linux# ../../${EAT_LIBDIR}/ld-linux#g" ${D}${libdir}/libc.so + sed -i -e "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${libdir}/libc.so + sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so + fi + + if [ -f ${D}${base_libdir}/libc.so ];then + sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../lib#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" "s# /${EAT_LIBDIR}/# /lib/#g" ${D}${base_libdir}/libc.so + if [ -f ${D}${base_libdir}/libc.so.6 ]; then + sed -i -e "s# /usr/${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${base_libdir}/libc.so.6 + fi + fi + + # Remove if empty + rmdir ${D}${bindir} || true + rmdir ${D}${sbindir} || true + rmdir ${D}${base_sbindir} || true +} + +# External toolchain doesn't provide multilib support so make corresponding +# install API as an empty API to avoid an unnecessary errors. +oe_multilib_header () { + return +} + +PACKAGES_DYNAMIC = "^locale-base-.* \ + ^glibc-gconv-.* ^glibc-charmap-.* ^glibc-localedata-.* ^glibc-binary-localedata-.* \ + ^${MLPREFIX}glibc-gconv$" + +# PACKAGES is split up according to the 'source' recipes/includes in OE-core +# Stylistic differences are kept to make copy/pasting easier. + +# From gcc-runtime.inc + +PACKAGES += "\ + gcc-runtime-dbg \ + libstdc++ \ + libstdc++-precompile-dev \ + libstdc++-dev \ + libstdc++-staticdev \ + libg2c \ + libg2c-dev \ + libssp \ + libssp-dev \ + libssp-staticdev \ + libmudflap \ + libmudflap-dev \ + libmudflap-staticdev \ + libquadmath \ + libquadmath-dev \ + libquadmath-staticdev \ + libgomp \ + libgomp-dev \ + libgomp-staticdev \ + libatomic \ + libatomic-dev \ + libatomic-staticdev \ + libitm \ + libitm-dev \ + libitm-staticdev \ +" + +# From gcc-sanitizers.inc + +PACKAGES += "gcc-sanitizers gcc-sanitizers-dbg" +PACKAGES += "libasan libubsan liblsan libtsan" +PACKAGES += "libasan-dev libubsan-dev liblsan-dev libtsan-dev" +PACKAGES += "libasan-staticdev libubsan-staticdev liblsan-staticdev libtsan-staticdev" + +# From libgfortran.inc: + +PACKAGES += "\ + libgfortran-dbg \ + libgfortran \ + libgfortran-dev \ + libgfortran-staticdev \ +" + +# libgcc.inc uses ${PN}, so replace that + +PACKAGES += "\ + libgcc \ + libgcc-dev \ + libgcc-dbg \ +" + +# ... and the leftovers + +PACKAGES =+ "\ + ${PN}-mtrace \ + libgcov-staticdev \ + linux-libc-headers \ + linux-libc-headers-dev \ +" + +INSANE_SKIP_${PN}-dbg = "staticdev" +INSANE_SKIP_${PN}-utils += "ldflags" +INSANE_SKIP_libstdc++ += "ldflags" +INSANE_SKIP_libgfortran += "ldflags" +INSANE_SKIP_libgcc += "ldflags dev-deps" +INSANE_SKIP_libgfortran += "ldflags dev-deps" +INSANE_SKIP_libstdc++ += "ldflags dev-deps" +INSANE_SKIP_libatomic += "ldflags" +INSANE_SKIP_libasan += "ldflags" +INSANE_SKIP_libubsan += "ldflags" +INSANE_SKIP_libssp += "ldflags" +INSANE_SKIP_libgomp += "ldflags" +INSANE_SKIP_libitm += "ldflags" +INSANE_SKIP_gdbserver += "ldflags" + +# OE-core has literally listed 'glibc' in LIBC_DEPENDENCIES :/ +RPROVIDES_${PN} = "glibc rtld(GNU_HASH)" +# Add runtime provides for the other libc* packages as well +RPROVIDES_${PN}-dev = "glibc-dev" +RPROVIDES_${PN}-doc = "glibc-doc" +RPROVIDES_${PN}-dbg = "glibc-dbg" +RPROVIDES_${PN}-pic = "glibc-pic" +RPROVIDES_${PN}-utils = "glibc-utils" +RPROVIDES_${PN}-mtrace = "glibc-mtrace libc-mtrace" + +PKG_${PN} = "glibc" +PKG_${PN}-dev = "glibc-dev" +PKG_${PN}-doc = "glibc-doc" +PKG_${PN}-dbg = "glibc-dbg" +PKG_${PN}-pic = "glibc-pic" +PKG_${PN}-utils = "glibc-utils" +PKG_${PN}-mtrace = "glibc-mtrace" +PKG_${PN}-gconv = "glibc-gconv" +PKG_${PN}-extra-nss = "glibc-extra-nss" +PKG_${PN}-thread-db = "glibc-thread-db" +PKG_${PN}-pcprofile = "glibc-pcprofile" +PKG_${PN}-staticdev = "glibc-staticdev" + +PKGV = "${EAT_VER_LIBC}" +PKGV_${PN} = "${EAT_VER_LIBC}" +PKGV_${PN}-dev = "${EAT_VER_LIBC}" +PKGV_${PN}-doc = "${EAT_VER_LIBC}" +PKGV_${PN}-dbg = "${EAT_VER_LIBC}" +PKGV_${PN}-pic = "${EAT_VER_LIBC}" +PKGV_${PN}-utils = "${EAT_VER_LIBC}" +PKGV_${PN}-mtrace = "${EAT_VER_LIBC}" +PKGV_${PN}-gconv = "${EAT_VER_LIBC}" +PKGV_${PN}-extra-nss = "${EAT_VER_LIBC}" +PKGV_${PN}-thread-db = "${EAT_VER_LIBC}" +PKGV_${PN}-pcprofile = "${EAT_VER_LIBC}" +PKGV_${PN}-staticdev = "${EAT_VER_LIBC}" +PKGV_catchsegv = "${EAT_VER_LIBC}" +PKGV_glibc-extra-nss = "${EAT_VER_LIBC}" +PKGV_glibc-thread-db = "${EAT_VER_LIBC}" + +PKGV_libmemusage = "${EAT_VER_LIBC}" +PKGV_libsegfault = "${EAT_VER_LIBC}" +PKGV_libsotruss = "${EAT_VER_LIBC}" +PKGV_sln = "${EAT_VER_LIBC}" +PKGV_nscd = "${EAT_VER_LIBC}" +PKGV_ldd = "${EAT_VER_LIBC}" + +PKGV_libasan-dev = "${EAT_VER_GCC}" +PKGV_libasan = "${EAT_VER_GCC}" +PKGV_libasan-staticdev = "${EAT_VER_GCC}" +PKGV_libatomic-dev = "${EAT_VER_GCC}" +PKGV_libatomic = "${EAT_VER_GCC}" +PKGV_libatomic-staticdev = "${EAT_VER_GCC}" +PKGV_libg2c-dev = "${EAT_VER_GCC}" +PKGV_libg2c = "${EAT_VER_GCC}" +PKGV_libgcc-dev = "${EAT_VER_GCC}" +PKGV_libgcc = "${EAT_VER_GCC}" +PKGV_libgfortran-dbg = "${EAT_VER_GCC}" +PKGV_libgfortran-dev = "${EAT_VER_GCC}" +PKGV_libgfortran = "${EAT_VER_GCC}" +PKGV_libgfortran-staticdev = "${EAT_VER_GCC}" +PKGV_libgomp-dev = "${EAT_VER_GCC}" +PKGV_libgomp = "${EAT_VER_GCC}" +PKGV_libgomp-staticdev = "${EAT_VER_GCC}" +PKGV_libitm-dev = "${EAT_VER_GCC}" +PKGV_libitm = "${EAT_VER_GCC}" +PKGV_libitm-staticdev = "${EAT_VER_GCC}" +PKGV_liblsan-dev = "${EAT_VER_GCC}" +PKGV_liblsan = "${EAT_VER_GCC}" +PKGV_liblsan-staticdev = "${EAT_VER_GCC}" +PKGV_libmudflap-dev = "${EAT_VER_GCC}" +PKGV_libmudflap = "${EAT_VER_GCC}" +PKGV_libmudflap-staticdev = "${EAT_VER_GCC}" +PKGV_libquadmath-dev = "${EAT_VER_GCC}" +PKGV_libquadmath = "${EAT_VER_GCC}" +PKGV_libquadmath-staticdev = "${EAT_VER_GCC}" +PKGV_libssp-dev = "${EAT_VER_GCC}" +PKGV_libssp = "${EAT_VER_GCC}" +PKGV_libssp-staticdev = "${EAT_VER_GCC}" +PKGV_libstdc++-dbg = "${EAT_VER_GCC}" +PKGV_libstdc++-dev = "${EAT_VER_GCC}" +PKGV_libstdc++ = "${EAT_VER_GCC}" +PKGV_libstdc++-precompile-dev = "${EAT_VER_GCC}" +PKGV_libstdc++-staticdev = "${EAT_VER_GCC}" +PKGV_libtsan-dev = "${EAT_VER_GCC}" +PKGV_libtsan = "${EAT_VER_GCC}" +PKGV_libtsan-staticdev = "${EAT_VER_GCC}" +PKGV_libubsan-dev = "${EAT_VER_GCC}" +PKGV_libubsan = "${EAT_VER_GCC}" +PKGV_libubsan-staticdev = "${EAT_VER_GCC}" + +PKGV_linux-libc-headers-dev = "${EAT_VER_KERNEL}" +PKGV_linux-libc-headers = "${EAT_VER_KERNEL}" + +PKGV_gdbserver = "${EAT_VER_GDBSERVER}" + +ALLOW_EMPTY_${PN}-mtrace = "1" +FILES_${PN}-mtrace = "${bindir}/mtrace" + +FILES_libgcov-staticdev = "${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcov.a" + +FILES_libsegfault = "${base_libdir}/libSegFault*" + +FILES_catchsegv = "${bindir}/catchsegv" +RDEPENDS_catchsegv = "libsegfault" + +RDEPENDS_ldd = "bash" +RDEPENDS_tzcode = "bash" + +# From libgfortran.inc: + +FILES_libgfortran = "${libdir}/libgfortran.so.*" +FILES_libgfortran-dev = "\ + ${libdir}/libgfortran*.so \ + ${libdir}/libgfortran.spec \ + ${libdir}/libgfortran.la \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/libgfortranbegin.* \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/libcaf_single* \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \ +" +FILES_libgfortran-staticdev = "${libdir}/libgfortran.a" + + +# From gcc-sanitizers.inc: + +FILES_libasan += "${libdir}/libasan.so.*" +FILES_libasan-dev += "\ + ${libdir}/libasan_preinit.o \ + ${libdir}/libasan.so \ + ${libdir}/libasan.la \ +" +FILES_libasan-staticdev += "${libdir}/libasan.a" + +FILES_libubsan += "${libdir}/libubsan.so.*" +FILES_libubsan-dev += "\ + ${libdir}/libubsan.so \ + ${libdir}/libubsan.la \ +" +FILES_libubsan-staticdev += "${libdir}/libubsan.a" + +FILES_liblsan += "${libdir}/liblsan.so.*" +FILES_liblsan-dev += "\ + ${libdir}/liblsan.so \ + ${libdir}/liblsan.la \ + ${libdir}/liblsan_preinit.o \ +" +FILES_liblsan-staticdev += "${libdir}/liblsan.a" + +FILES_libtsan += "${libdir}/libtsan.so.*" +FILES_libtsan-dev += "\ + ${libdir}/libtsan.so \ + ${libdir}/libtsan.la \ + ${libdir}/libtsan_*.o \ +" +FILES_libtsan-staticdev += "${libdir}/libtsan.a" + +FILES_gcc-sanitizers = "${libdir}/*.spec ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/sanitizer/*.h" + +# From libgcc.inc: + +FILES_libgcc = "${base_libdir}/libgcc_s.so.1" + +FILES_libgcc-dev = "\ + ${base_libdir}/libgcc*.so \ + ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ + ${libdir}/${TARGET_SYS}/${BINV}* \ + ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include \ +" + +FILES_linux-libc-headers = "" +FILES_linux-libc-headers-dev = "\ + ${includedir}/asm* \ + ${includedir}/linux \ + ${includedir}/mtd \ + ${includedir}/rdma \ + ${includedir}/scsi \ + ${includedir}/sound \ + ${includedir}/video \ +" +FILES_${PN} += "\ + ${libdir}/bin \ + ${libdir}/locale \ + ${libdir}/gconv/gconv-modules \ + ${datadir}/zoneinfo \ + ${base_libdir}/libcrypt*.so.* \ + ${base_libdir}/libcrypt-*.so \ + ${base_libdir}/libc.so.* \ + ${base_libdir}/libc-*.so \ + ${base_libdir}/libm.so.* \ + ${base_libdir}/libmemusage.so \ + ${base_libdir}/libm-*.so \ + ${base_libdir}/ld*.so.* \ + ${base_libdir}/ld-*.so \ + ${base_libdir}/libpthread*.so.* \ + ${base_libdir}/libpthread*.so \ + ${base_libdir}/libpthread-*.so \ + ${base_libdir}/libresolv*.so.* \ + ${base_libdir}/libresolv-*.so \ + ${base_libdir}/librt*.so.* \ + ${base_libdir}/librt-*.so \ + ${base_libdir}/libutil*.so.* \ + ${base_libdir}/libutil-*.so \ + ${base_libdir}/libnss_files*.so.* \ + ${base_libdir}/libnss_files-*.so \ + ${base_libdir}/libnss_compat*.so.* \ + ${base_libdir}/libnss_compat-*.so \ + ${base_libdir}/libnss_dns*.so.* \ + ${base_libdir}/libnss_dns-*.so \ + ${base_libdir}/libnss_nis*.so.* \ + ${base_libdir}/libnss_nisplus-*.so \ + ${base_libdir}/libnss_nisplus*.so.* \ + ${base_libdir}/libnss_nis-*.so \ + ${base_libdir}/libnss_hesiod*.so.* \ + ${base_libdir}/libnss_hesiod-*.so \ + ${base_libdir}/libdl*.so.* \ + ${base_libdir}/libdl-*.so \ + ${base_libdir}/libanl*.so.* \ + ${base_libdir}/libanl-*.so \ + ${base_libdir}/libBrokenLocale*.so.* \ + ${base_libdir}/libBrokenLocale-*.so \ + ${base_libdir}/libthread_db*.so.* \ + ${base_libdir}/libthread_db-*.so \ + ${base_libdir}/libmemusage.so \ + ${base_libdir}/libSegFault.so \ + ${base_libdir}/libpcprofile.so \ + " + +FILES_${PN}-dbg += "${base_libdir}/debug" + +# From gcc-runtime.inc + +# include python debugging scripts +FILES_gcc-runtime-dbg += "\ + ${libdir}/libstdc++.so.*-gdb.py \ + ${datadir}/gcc-${BINV}/python/libstdcxx \ +" + +FILES_libg2c = "${target_libdir}/libg2c.so.*" +SUMMARY_libg2c = "Companion runtime library for g77" +FILES_libg2c-dev = "\ + ${libdir}/libg2c.so \ + ${libdir}/libg2c.a \ + ${libdir}/libfrtbegin.a \ +" +SUMMARY_libg2c-dev = "Companion runtime library for g77 - development files" + +FILES_libstdc++ = "${libdir}/libstdc++.so.*" +SUMMARY_libstdc++ = "GNU standard C++ library" +FILES_libstdc++-dev = "\ + /include/c++ \ + ${includedir}/c++/ \ + ${libdir}/libstdc++.so \ + ${libdir}/libstdc++*.la \ + ${libdir}/libsupc++.la \ +" +SUMMARY_libstdc++-dev = "GNU standard C++ library - development files" + +FILES_libstdc++-staticdev = "\ + ${libdir}/libstdc++*.a \ + ${libdir}/libsupc++.a \ +" +SUMMARY_libstdc++-staticdev = "GNU standard C++ library - static development files" + +FILES_libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" +SUMMARY_libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files" + +FILES_libssp = "${libdir}/libssp.so.*" +SUMMARY_libssp = "GNU stack smashing protection library" +FILES_libssp-dev = "\ + ${libdir}/libssp*.so \ + ${libdir}/libssp*_nonshared.a \ + ${libdir}/libssp*.la \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ssp \ +" +SUMMARY_libssp-dev = "GNU stack smashing protection library - development files" +FILES_libssp-staticdev = "${libdir}/libssp*.a" +SUMMARY_libssp-staticdev = "GNU stack smashing protection library - static development files" + +FILES_libquadmath = "${libdir}/libquadmath*.so.*" +SUMMARY_libquadmath = "GNU quad-precision math library" +FILES_libquadmath-dev = "\ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/quadmath* \ + ${libdir}/libquadmath*.so \ + ${libdir}/libquadmath.la \ +" +SUMMARY_libquadmath-dev = "GNU quad-precision math library - development files" +FILES_libquadmath-staticdev = "${libdir}/libquadmath.a" +SUMMARY_libquadmath-staticdev = "GNU quad-precision math library - static development files" + +# NOTE: mudflap has been removed as of gcc 4.9 and has been superseded by the address sanitiser +FILES_libmudflap = "${libdir}/libmudflap*.so.*" +SUMMARY_libmudflap = "Pointer debugging library for gcc" +FILES_libmudflap-dev = "\ + ${libdir}/libmudflap*.so \ + ${libdir}/libmudflap.la \ +" +SUMMARY_libmudflap-dev = "Pointer debugging library for gcc - development files" +FILES_libmudflap-staticdev = "${libdir}/libmudflap.a" +SUMMARY_libmudflap-staticdev = "Pointer debugging library for gcc - static development files" + +FILES_libgomp = "${libdir}/libgomp*${SOLIBS}" +SUMMARY_libgomp = "GNU OpenMP parallel programming library" +FILES_libgomp-dev = "\ + ${libdir}/libgomp*${SOLIBSDEV} \ + ${libdir}/libgomp*.la \ + ${libdir}/libgomp.spec \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/omp.h \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/openacc.h \ +" +SUMMARY_libgomp-dev = "GNU OpenMP parallel programming library - development files" +FILES_libgomp-staticdev = "${libdir}/libgomp*.a" +SUMMARY_libgomp-staticdev = "GNU OpenMP parallel programming library - static development files" + +FILES_libatomic = "${libdir}/libatomic.so.*" +SUMMARY_libatomic = "GNU C++11 atomics support library" +FILES_libatomic-dev = "\ + ${libdir}/libatomic.so \ + ${libdir}/libatomic.la \ +" +SUMMARY_libatomic-dev = "GNU C++11 atomics support library - development files" +FILES_libatomic-staticdev = "${libdir}/libatomic.a" +SUMMARY_libatomic-staticdev = "GNU C++11 atomics support library - static development files" + +FILES_libitm = "${libdir}/libitm.so.*" +SUMMARY_libitm = "GNU transactional memory support library" +FILES_libitm-dev = "\ + ${libdir}/libitm.so \ + ${libdir}/libitm.la \ + ${libdir}/libitm.spec \ +" +SUMMARY_libitm-dev = "GNU transactional memory support library - development files" +FILES_libitm-staticdev = "${libdir}/libitm.a" +SUMMARY_libitm-staticdev = "GNU transactional memory support library - static development files" + +EAT_VER_MAIN ??= "" + + +python () { + if not d.getVar("EAT_VER_MAIN", False): + raise bb.parse.SkipPackage("External ARM toolchain not configured (EAT_VER_MAIN not set).") + import re + notglibc = (re.match('.*uclibc$', d.getVar('TARGET_OS', True)) != None) or (re.match('.*musl$', d.getVar('TARGET_OS', True)) != None) + if notglibc: + raise bb.parse.SkipPackage("incompatible with target %s" % + d.getVar('TARGET_OS', True)) +}meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED new file +1
-0@@ -0,0 +1 @@ +POSIXmeta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2.inc new file +114
-0@@ -0,0 +1,114 @@ +require recipes-devtools/gcc/gcc-common.inc + +BASEPV = "8.2" +PV = "arm-${BASEPV}" + +MMYY = "19.01" +RELEASE = "20${MMYY}" +PR = "r${RELEASE}" +BINV = "${BASEPV}.1" + +FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-${BASEPV}:${FILE_DIRNAME}/gcc-${BASEPV}/backport:" + +DEPENDS =+ "mpfr gmp libmpc zlib flex-native" +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native" + +LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" + +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ + file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ + file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ + file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ +" + +#BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2" +SRCREV = "1a721bce9532193e63acdcdb56fc16e8ac70b20a" +BASEURI ?= "git://git.linaro.org/toolchain/gcc.git;protocol=https;branch=linaro-local/ARM/arm-8-branch" + +SRC_URI = "\ + ${BASEURI} \ + file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ + file://0003-gcc-poison-system-directories.patch \ + file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ + file://0006-64-bit-multilib-hack.patch \ + file://0007-optional-libstdc.patch \ + file://0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ + file://0009-COLLECT_GCC_OPTIONS.patch \ + file://0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ + file://0011-fortran-cross-compile-hack.patch \ + file://0012-cpp-honor-sysroot.patch \ + file://0013-MIPS64-Default-to-N64-ABI.patch \ + file://0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ + file://0015-gcc-Fix-argument-list-too-long-error.patch \ + file://0016-Disable-sdt.patch \ + file://0017-libtool.patch \ + file://0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ + file://0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ + file://0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ + file://0021-export-CPP.patch \ + file://0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \ + file://0023-Ensure-target-gcc-headers-can-be-included.patch \ + file://0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ + file://0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ + file://0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ + file://0027-aarch64-Add-support-for-musl-ldso.patch \ + file://0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ + file://0029-handle-sysroot-support-for-nativesdk-gcc.patch \ + file://0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ + file://0031-Fix-various-_FOR_BUILD-and-related-variables.patch \ + file://0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ + file://0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ + file://0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch \ + file://0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ + file://0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ + file://0037-sync-gcc-stddef.h-with-musl.patch \ + file://0038-fix-segmentation-fault-in-precompiled-header-generat.patch \ + file://0039-Fix-for-testsuite-failure.patch \ + file://0040-Re-introduce-spe-commandline-options.patch \ + file://0041-ARC-fix-spec-gen.patch \ + file://0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch \ + file://0043-riscv-Disable-multilib-for-OE.patch \ + ${BACKPORTS} \ +" +BACKPORTS = "\ +" + +S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}" +B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" + +# Language Overrides +FORTRAN = "" +JAVA = "" + +LTO = "--enable-lto" +SSP ?= "--disable-libssp" +SSP_mingw32 = "--enable-libssp" + +EXTRA_OECONF_BASE = "\ + ${LTO} \ + ${SSP} \ + --enable-libitm \ + --disable-bootstrap \ + --disable-libmudflap \ + --with-system-zlib \ + ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \ + --enable-linker-build-id \ + --with-ppl=no \ + --with-cloog=no \ + --enable-checking=release \ + --enable-cheaders=c_global \ + --without-isl \ +" + +EXTRA_OECONF_append_aarchilp32 = " --with-abi=ilp32" + +EXTRA_OECONF_PATHS = "\ + --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ + --with-sysroot=/not/exist \ + --with-build-sysroot=${STAGING_DIR_TARGET} \ +"meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42
-0@@ -0,0 +1,42 @@ +From b752fb2b6d6f6da68da5386b96abf0d74cd4bbe6 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 08:37:11 +0400 +Subject: [PATCH 01/39] gcc-4.3.1: ARCH_FLAGS_FOR_TARGET + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [embedded specific] +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 69c99e99cca..517fb70192e 100755 +--- a/configure ++++ b/configure +@@ -7511,7 +7511,7 @@ fi + # for target_alias and gcc doesn't manage it consistently. + target_configargs="--cache-file=./config.cache ${target_configargs}" + +-FLAGS_FOR_TARGET= ++FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" + case " $target_configdirs " in + *" newlib "*) + case " $target_configargs " in +diff --git a/configure.ac b/configure.ac +index a1edc369a27..f8c254f1fac 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3100,7 +3100,7 @@ fi + # for target_alias and gcc doesn't manage it consistently. + target_configargs="--cache-file=./config.cache ${target_configargs}" + +-FLAGS_FOR_TARGET= ++FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" + case " $target_configdirs " in + *" newlib "*) + case " $target_configargs " in +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0003-gcc-poison-system-directories.patch new file +194
-0@@ -0,0 +1,194 @@ +From 48c670d2678e0323d88eb72205e039f393cabe05 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 08:59:00 +0400 +Subject: [PATCH 03/39] gcc: poison-system-directories + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [distribution: codesourcery] +--- + gcc/common.opt | 4 ++++ + gcc/config.in | 6 ++++++ + gcc/configure | 16 ++++++++++++++++ + gcc/configure.ac | 10 ++++++++++ + gcc/doc/invoke.texi | 9 +++++++++ + gcc/gcc.c | 2 ++ + gcc/incpath.c | 19 +++++++++++++++++++ + 7 files changed, 66 insertions(+) + +diff --git a/gcc/common.opt b/gcc/common.opt +index d6ef85928f3..7b29efe3882 100644 +--- a/gcc/common.opt ++++ b/gcc/common.opt +@@ -679,6 +679,10 @@ Wreturn-local-addr + Common Var(warn_return_local_addr) Init(1) Warning + Warn about returning a pointer/reference to a local or temporary variable. + ++Wpoison-system-directories ++Common Var(flag_poison_system_directories) Init(1) Warning ++Warn for -I and -L options using system directories if cross compiling ++ + Wshadow + Common Var(warn_shadow) Warning + Warn when one variable shadows another. Same as -Wshadow=global. +diff --git a/gcc/config.in b/gcc/config.in +index 5bccb408016..1c784a8276b 100644 +--- a/gcc/config.in ++++ b/gcc/config.in +@@ -194,6 +194,12 @@ + #endif + + ++/* Define to warn for use of native system header directories */ ++#ifndef USED_FOR_TARGET ++#undef ENABLE_POISON_SYSTEM_DIRECTORIES ++#endif ++ ++ + /* Define if you want all operations on RTL (the basic data structure of the + optimizer and back end) to be checked for dynamic type safety at runtime. + This is quite expensive. */ +diff --git a/gcc/configure b/gcc/configure +index 5c345ce0fd7..cafd05fd150 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -953,6 +953,7 @@ with_system_zlib + enable_maintainer_mode + enable_link_mutex + enable_version_specific_runtime_libs ++enable_poison_system_directories + enable_plugin + enable_host_shared + enable_libquadmath_support +@@ -1696,6 +1697,8 @@ Optional Features: + --enable-version-specific-runtime-libs + specify that runtime libraries should be installed + in a compiler-specific directory ++ --enable-poison-system-directories ++ warn for use of native system header directories + --enable-plugin enable plugin support + --enable-host-shared build host code as shared libraries + --disable-libquadmath-support +@@ -29715,6 +29718,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then : + fi + + ++# Check whether --enable-poison-system-directories was given. ++if test "${enable_poison_system_directories+set}" = set; then : ++ enableval=$enable_poison_system_directories; ++else ++ enable_poison_system_directories=no ++fi ++ ++if test "x${enable_poison_system_directories}" = "xyes"; then ++ ++$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h ++ ++fi ++ + # Substitute configuration variables + + +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 65dbf1f2f80..dd5b38195ce 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -6341,6 +6341,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs, + [specify that runtime libraries should be + installed in a compiler-specific directory])]) + ++AC_ARG_ENABLE([poison-system-directories], ++ AS_HELP_STRING([--enable-poison-system-directories], ++ [warn for use of native system header directories]),, ++ [enable_poison_system_directories=no]) ++if test "x${enable_poison_system_directories}" = "xyes"; then ++ AC_DEFINE([ENABLE_POISON_SYSTEM_DIRECTORIES], ++ [1], ++ [Define to warn for use of native system header directories]) ++fi ++ + # Substitute configuration variables + AC_SUBST(subdirs) + AC_SUBST(srcdir) +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi +index 255149fcfb8..cb71b60fe3c 100644 +--- a/gcc/doc/invoke.texi ++++ b/gcc/doc/invoke.texi +@@ -303,6 +303,7 @@ Objective-C and Objective-C++ Dialects}. + -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wpadded @gol + -Wparentheses -Wno-pedantic-ms-format @gol + -Wplacement-new -Wplacement-new=@var{n} @gol ++-Wno-poison-system-directories @gol + -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast @gol + -Wno-pragmas -Wredundant-decls -Wrestrict -Wno-return-local-addr @gol + -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar @gol +@@ -5712,6 +5713,14 @@ made up of data only and thus requires no special treatment. But, for + most targets, it is made up of code and thus requires the stack to be + made executable in order for the program to work properly. + ++@item -Wno-poison-system-directories ++@opindex Wno-poison-system-directories ++Do not warn for @option{-I} or @option{-L} options using system ++directories such as @file{/usr/include} when cross compiling. This ++option is intended for use in chroot environments when such ++directories contain the correct headers and libraries for the target ++system rather than the host. ++ + @item -Wfloat-equal + @opindex Wfloat-equal + @opindex Wno-float-equal +diff --git a/gcc/gcc.c b/gcc/gcc.c +index a716f708259..02b3cd39fc2 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -1037,6 +1037,8 @@ proper position among the other output files. */ + "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ + "%X %{o*} %{e*} %{N} %{n} %{r}\ + %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} \ ++ %{Wno-poison-system-directories:--no-poison-system-directories} \ ++ %{Werror=poison-system-directories:--error-poison-system-directories} \ + %{static|no-pie|static-pie:} %{L*} %(mfwrap) %(link_libgcc) " \ + VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o " CHKP_SPEC " \ + %{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\ +diff --git a/gcc/incpath.c b/gcc/incpath.c +index b11c6a57939..e3b7a21966f 100644 +--- a/gcc/incpath.c ++++ b/gcc/incpath.c +@@ -26,6 +26,7 @@ + #include "intl.h" + #include "incpath.h" + #include "cppdefault.h" ++#include "diagnostic-core.h" + + /* Microsoft Windows does not natively support inodes. + VMS has non-numeric inodes. */ +@@ -393,6 +394,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) + } + fprintf (stderr, _("End of search list.\n")); + } ++ ++#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES ++ if (flag_poison_system_directories) ++ { ++ struct cpp_dir *p; ++ ++ for (p = heads[INC_QUOTE]; p; p = p->next) ++ { ++ if ((!strncmp (p->name, "/usr/include", 12)) ++ || (!strncmp (p->name, "/usr/local/include", 18)) ++ || (!strncmp (p->name, "/usr/X11R6/include", 18)) ++ || (!strncmp (p->name, "/sw/include", 11)) ++ || (!strncmp (p->name, "/opt/include", 12))) ++ warning (OPT_Wpoison_system_directories, ++ "include location \"%s\" is unsafe for " ++ "cross-compilation", ++ p->name); ++ } ++ } ++#endif + } + + /* Use given -I paths for #include "..." but not #include <...>, and +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73
-0@@ -0,0 +1,73 @@ +From ae3fe6e5e50937de6e4223ca90810187372a8cf5 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:08:31 +0400 +Subject: [PATCH 05/39] gcc-4.3.3: SYSROOT_CFLAGS_FOR_TARGET + +Before committing, I noticed that PR/32161 was marked as a dup of PR/32009, but my previous patch did not fix it. + +This alternative patch is better because it lets you just use CFLAGS_FOR_TARGET to set the compilation flags for libgcc. Since bootstrapped target libraries are never compiled with the native compiler, it makes little sense to use different flags for stage1 and later stages. And it also makes little sense to use a different variable than CFLAGS_FOR_TARGET. + +Other changes I had to do include: + +- moving the creation of default CFLAGS_FOR_TARGET from Makefile.am to configure.ac, because otherwise the BOOT_CFLAGS are substituted into CFLAGS_FOR_TARGET (which is "-O2 -g $(CFLAGS)") via $(CFLAGS). It is also cleaner this way though. + +- passing the right CFLAGS to configure scripts as exported environment variables + +I also stopped passing LIBCFLAGS to configure scripts since they are unused in the whole src tree. And I updated the documentation as H-P reminded me to do. + +Bootstrapped/regtested i686-pc-linux-gnu, will commit to 4.4 shortly. Ok for 4.3? + +Signed-off-by: Paolo Bonzini <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + configure | 32 ++++++++++++++++++++++++++++++++ + 1 file changed, 32 insertions(+) + +diff --git a/configure b/configure +index 517fb70192e..acd2b97df40 100755 +--- a/configure ++++ b/configure +@@ -6772,6 +6772,38 @@ fi + + + ++# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS ++# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS ++# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). ++# We want to ensure that TARGET libraries (which we know are built with ++# gcc) are built with "-O2 -g", so include those options when setting ++# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. ++if test "x$CFLAGS_FOR_TARGET" = x; then ++ CFLAGS_FOR_TARGET=$CFLAGS ++ case " $CFLAGS " in ++ *" -O2 "*) ;; ++ *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; ++ esac ++ case " $CFLAGS " in ++ *" -g "* | *" -g3 "*) ;; ++ *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; ++ esac ++fi ++ ++ ++if test "x$CXXFLAGS_FOR_TARGET" = x; then ++ CXXFLAGS_FOR_TARGET=$CXXFLAGS ++ case " $CXXFLAGS " in ++ *" -O2 "*) ;; ++ *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; ++ esac ++ case " $CXXFLAGS " in ++ *" -g "* | *" -g3 "*) ;; ++ *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; ++ esac ++fi ++ ++ + # Handle --with-headers=XXX. If the value is not "yes", the contents of + # the named directory are copied to $(tooldir)/sys-include. + if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0006-64-bit-multilib-hack.patch new file +85
-0@@ -0,0 +1,85 @@ +From 89af3b7399313b337f06c19cc2d787aa16d27711 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:10:06 +0400 +Subject: [PATCH 06/39] 64-bit multilib hack. + +GCC has internal multilib handling code but it assumes a very specific rigid directory +layout. The build system implementation of multilib layout is very generic and allows +complete customisation of the library directories. + +This patch is a partial solution to allow any custom directories to be passed into gcc +and handled correctly. It forces gcc to use the base_libdir (which is the current +directory, "."). We need to do this for each multilib that is configured as we don't +know which compiler options may be being passed into the compiler. Since we have a compiler +per mulitlib at this point that isn't an issue. + +The one problem is the target compiler is only going to work for the default multlilib at +this point. Ideally we'd figure out which multilibs were being enabled with which paths +and be able to patch these entries with a complete set of correct paths but this we +don't have such code at this point. This is something the target gcc recipe should do +and override these platform defaults in its build config. + +RP 15/8/11 + +Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Elvis Dowson <[email protected]> + +Upstream-Status: Pending +--- + gcc/config/i386/t-linux64 | 6 ++---- + gcc/config/mips/t-linux64 | 10 +++------- + gcc/config/rs6000/t-linux64 | 5 ++--- + 3 files changed, 7 insertions(+), 14 deletions(-) + +diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64 +index 8ea0faff369..266c6008004 100644 +--- a/gcc/config/i386/t-linux64 ++++ b/gcc/config/i386/t-linux64 +@@ -32,7 +32,5 @@ + # + comma=, + MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG)) +-MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS))) +-MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu) +-MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu) +-MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32) ++MULTILIB_DIRNAMES = . . ++MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) +diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64 +index c017b7d04c5..126892cf40b 100644 +--- a/gcc/config/mips/t-linux64 ++++ b/gcc/config/mips/t-linux64 +@@ -17,10 +17,6 @@ + # <http://www.gnu.org/licenses/>. + + MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64 +-MULTILIB_DIRNAMES = n32 32 64 +-MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el) +-MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft) +-MULTILIB_OSDIRNAMES = \ +- ../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \ +- ../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \ +- ../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT)) ++MULTILIB_DIRNAMES = . . . ++MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) ++ +diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64 +index 0faa2a02df4..13fd8ca971e 100644 +--- a/gcc/config/rs6000/t-linux64 ++++ b/gcc/config/rs6000/t-linux64 +@@ -26,10 +26,9 @@ + # MULTILIB_OSDIRNAMES according to what is found on the target. + + MULTILIB_OPTIONS := m64/m32 +-MULTILIB_DIRNAMES := 64 32 ++MULTILIB_DIRNAMES := . . + MULTILIB_EXTRA_OPTS := +-MULTILIB_OSDIRNAMES := m64=../lib64$(call if_multiarch,:powerpc64-linux-gnu) +-MULTILIB_OSDIRNAMES += m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:powerpc-linux-gnu) ++MULTILIB_OSDIRNAMES := ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) + + rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c + $(COMPILE) $< +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0007-optional-libstdc.patch new file +125
-0@@ -0,0 +1,125 @@ +From fb7df63e9548c29b70601d642a1850fc455f8565 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:12:56 +0400 +Subject: [PATCH 07/39] optional libstdc + +gcc-runtime builds libstdc++ separately from gcc-cross-*. Its configure tests using g++ +will not run correctly since by default the linker will try to link against libstdc++ +which shouldn't exist yet. We need an option to disable -lstdc++ +option whilst leaving -lc, -lgcc and other automatic library dependencies added by gcc +driver. This patch adds such an option which only disables the -lstdc++. + +A "standard" gcc build uses xgcc and hence avoids this. We should ask upstream how to +do this officially, the likely answer is don't build libstdc++ separately. + +RP 29/6/10 + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [embedded specific] +--- + gcc/c-family/c.opt | 4 ++++ + gcc/cp/g++spec.c | 1 + + gcc/doc/invoke.texi | 32 +++++++++++++++++++++++++++++++- + gcc/gcc.c | 1 + + 4 files changed, 37 insertions(+), 1 deletion(-) + +diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt +index 5013501b232..6312f2c8f90 100644 +--- a/gcc/c-family/c.opt ++++ b/gcc/c-family/c.opt +@@ -1900,6 +1900,10 @@ nostdinc++ + C++ ObjC++ + Do not search standard system include directories for C++. + ++nostdlib++ ++Driver ++Do not link standard C++ runtime library ++ + o + C ObjC C++ ObjC++ Joined Separate + ; Documented in common.opt +diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c +index 443a1746da3..e9b51be62ef 100644 +--- a/gcc/cp/g++spec.c ++++ b/gcc/cp/g++spec.c +@@ -137,6 +137,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, + switch (decoded_options[i].opt_index) + { + case OPT_nostdlib: ++ case OPT_nostdlib__: + case OPT_nodefaultlibs: + library = -1; + break; +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi +index cb71b60fe3c..b0d481e3a30 100644 +--- a/gcc/doc/invoke.texi ++++ b/gcc/doc/invoke.texi +@@ -211,6 +211,9 @@ in the following sections. + -fno-weak -nostdinc++ @gol + -fvisibility-inlines-hidden @gol + -fvisibility-ms-compat @gol ++-fvtable-verify=@r{[}std@r{|}preinit@r{|}none@r{]} @gol ++-fvtv-counts -fvtv-debug @gol ++-nostdlib++ @gol + -fext-numeric-literals @gol + -Wabi=@var{n} -Wabi-tag -Wconversion-null -Wctor-dtor-privacy @gol + -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance @gol +@@ -509,7 +512,7 @@ Objective-C and Objective-C++ Dialects}. + -s -static -static-pie -static-libgcc -static-libstdc++ @gol + -static-libasan -static-libtsan -static-liblsan -static-libubsan @gol + -static-libmpx -static-libmpxwrappers @gol +--shared -shared-libgcc -symbolic @gol ++-shared -shared-libgcc -symbolic -nostdlib++ @gol + -T @var{script} -Wl,@var{option} -Xlinker @var{option} @gol + -u @var{symbol} -z @var{keyword}} + +@@ -12331,6 +12334,33 @@ library subroutines. + constructors are called; @pxref{Collect2,,@code{collect2}, gccint, + GNU Compiler Collection (GCC) Internals}.) + ++@item -nostdlib++ ++@opindex nostdlib++ ++Do not use the standard system C++ runtime libraries when linking. ++Only the libraries you specify will be passed to the linker. ++ ++@cindex @option{-lgcc}, use with @option{-nostdlib} ++@cindex @option{-nostdlib} and unresolved references ++@cindex unresolved references and @option{-nostdlib} ++@cindex @option{-lgcc}, use with @option{-nodefaultlibs} ++@cindex @option{-nodefaultlibs} and unresolved references ++@cindex unresolved references and @option{-nodefaultlibs} ++One of the standard libraries bypassed by @option{-nostdlib} and ++@option{-nodefaultlibs} is @file{libgcc.a}, a library of internal subroutines ++which GCC uses to overcome shortcomings of particular machines, or special ++needs for some languages. ++(@xref{Interface,,Interfacing to GCC Output,gccint,GNU Compiler ++Collection (GCC) Internals}, ++for more discussion of @file{libgcc.a}.) ++In most cases, you need @file{libgcc.a} even when you want to avoid ++other standard libraries. In other words, when you specify @option{-nostdlib} ++or @option{-nodefaultlibs} you should usually specify @option{-lgcc} as well. ++This ensures that you have no unresolved references to internal GCC ++library subroutines. ++(An example of such an internal subroutine is @code{__main}, used to ensure C++ ++constructors are called; @pxref{Collect2,,@code{collect2}, gccint, ++GNU Compiler Collection (GCC) Internals}.) ++ + @item -pie + @opindex pie + Produce a dynamically linked position independent executable on targets +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 02b3cd39fc2..8cd27a5dad5 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -1047,6 +1047,7 @@ proper position among the other output files. */ + %(mflib) " STACK_SPLIT_SPEC "\ + %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} " SANITIZER_SPEC " \ + %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\ ++ %{!nostdlib++:}\ + %{!nostdlib:%{!nostartfiles:%E}} %{T*} \n%(post_link) }}}}}}" + #endif + +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59
-0@@ -0,0 +1,59 @@ +From 11eb97efccb90b830c84ed077a25b1a15ad3335b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:14:20 +0400 +Subject: [PATCH 08/39] gcc: disable MASK_RELAX_PIC_CALLS bit + +The new feature added after 4.3.3 +"http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html" +will cause cc1plus eat up all the system memory when build webkit-gtk. +The function mips_get_pic_call_symbol keeps on recursively calling itself. +Disable this feature to walk aside the bug. + +Signed-off-by: Dongxiao Xu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [configuration] +--- + gcc/configure | 7 ------- + gcc/configure.ac | 7 ------- + 2 files changed, 14 deletions(-) + +diff --git a/gcc/configure b/gcc/configure +index cafd05fd150..19ba051d673 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -27553,13 +27553,6 @@ $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; + rm -f conftest.* + fi + fi +- if test $gcc_cv_as_ld_jalr_reloc = yes; then +- if test x$target_cpu_default = x; then +- target_cpu_default=MASK_RELAX_PIC_CALLS +- else +- target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" +- fi +- fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 + $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } + +diff --git a/gcc/configure.ac b/gcc/configure.ac +index dd5b38195ce..066dfe19bb6 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -4798,13 +4798,6 @@ x: + rm -f conftest.* + fi + fi +- if test $gcc_cv_as_ld_jalr_reloc = yes; then +- if test x$target_cpu_default = x; then +- target_cpu_default=MASK_RELAX_PIC_CALLS +- else +- target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" +- fi +- fi + AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc) + + AC_CACHE_CHECK([linker for .eh_frame personality relaxation], +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch new file +38
-0@@ -0,0 +1,38 @@ +From e19d25847f08eeb5ef26a031fa5eff732bfd0d43 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:16:28 +0400 +Subject: [PATCH 09/39] COLLECT_GCC_OPTIONS + +This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to +invoke collect2. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/gcc.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 8cd27a5dad5..d355d65583a 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -4677,6 +4677,15 @@ set_collect_gcc_options (void) + sizeof ("COLLECT_GCC_OPTIONS=") - 1); + + first_time = TRUE; ++#ifdef HAVE_LD_SYSROOT ++ if (target_system_root_changed && target_system_root) ++ { ++ obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); ++ obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); ++ obstack_grow (&collect_obstack, "'", 1); ++ first_time = FALSE; ++ } ++#endif + for (i = 0; (int) i < n_switches; i++) + { + const char *const *args; +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96
-0@@ -0,0 +1,96 @@ +From 265cb883c310f3bb7e49fd13b81362476fbeb6c1 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:17:25 +0400 +Subject: [PATCH 10/39] Use the defaults.h in ${B} instead of ${S}, and t-oe in + ${B} + +Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that +the source can be shared between gcc-cross-initial, +gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending + +While compiling gcc-crosssdk-initial-x86_64 on some host, there is +occasionally failure that test the existance of default.h doesn't +work, the reason is tm_include_list='** defaults.h' rather than +tm_include_list='** ./defaults.h' + +So we add the test condition for this situation. +Signed-off-by: Hongxu Jia <[email protected]> +--- + gcc/Makefile.in | 2 +- + gcc/configure | 4 ++-- + gcc/configure.ac | 4 ++-- + gcc/mkconfig.sh | 4 ++-- + 4 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 20bee0494b1..1367136bfac 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -538,7 +538,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ + TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@ + + xmake_file=@xmake_file@ +-tmake_file=@tmake_file@ ++tmake_file=@tmake_file@ ./t-oe + TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@ + TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ + TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ +diff --git a/gcc/configure b/gcc/configure +index 19ba051d673..a575839c1b2 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -12158,8 +12158,8 @@ for f in $tm_file; do + tm_include_list="${tm_include_list} $f" + ;; + defaults.h ) +- tm_file_list="${tm_file_list} \$(srcdir)/$f" +- tm_include_list="${tm_include_list} $f" ++ tm_file_list="${tm_file_list} ./$f" ++ tm_include_list="${tm_include_list} ./$f" + ;; + * ) + tm_file_list="${tm_file_list} \$(srcdir)/config/$f" +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 066dfe19bb6..676116a6d96 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -1922,8 +1922,8 @@ for f in $tm_file; do + tm_include_list="${tm_include_list} $f" + ;; + defaults.h ) +- tm_file_list="${tm_file_list} \$(srcdir)/$f" +- tm_include_list="${tm_include_list} $f" ++ tm_file_list="${tm_file_list} ./$f" ++ tm_include_list="${tm_include_list} ./$f" + ;; + * ) + tm_file_list="${tm_file_list} \$(srcdir)/config/$f" +diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh +index 0f75c863c0b..68d8d6613cf 100644 +--- a/gcc/mkconfig.sh ++++ b/gcc/mkconfig.sh +@@ -77,7 +77,7 @@ if [ -n "$HEADERS" ]; then + if [ $# -ge 1 ]; then + echo '#ifdef IN_GCC' >> ${output}T + for file in "$@"; do +- if test x"$file" = x"defaults.h"; then ++ if test x"$file" = x"./defaults.h" -o x"$file" = x"defaults.h"; then + postpone_defaults_h="yes" + else + echo "# include \"$file\"" >> ${output}T +@@ -106,7 +106,7 @@ esac + + # If we postponed including defaults.h, add the #include now. + if test x"$postpone_defaults_h" = x"yes"; then +- echo "# include \"defaults.h\"" >> ${output}T ++ echo "# include \"./defaults.h\"" >> ${output}T + fi + + # Add multiple inclusion protection guard, part two. +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0011-fortran-cross-compile-hack.patch new file +46
-0@@ -0,0 +1,46 @@ +From 71cba188d47b6ae9d9b87261eb4bc9eb68ae355d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:20:01 +0400 +Subject: [PATCH 11/39] fortran cross-compile hack. + +* Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used +used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross +directory. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [embedded specific] +--- + libgfortran/configure | 2 +- + libgfortran/configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libgfortran/configure b/libgfortran/configure +index 91fce8fecd0..6747f86eb98 100755 +--- a/libgfortran/configure ++++ b/libgfortran/configure +@@ -12883,7 +12883,7 @@ esac + + # We need gfortran to compile parts of the library + #AC_PROG_FC(gfortran) +-FC="$GFORTRAN" ++#FC="$GFORTRAN" + ac_ext=${ac_fc_srcext-f} + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' +diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac +index bf6d3634dda..9dbe43cc616 100644 +--- a/libgfortran/configure.ac ++++ b/libgfortran/configure.ac +@@ -250,7 +250,7 @@ AC_SUBST(enable_static) + + # We need gfortran to compile parts of the library + #AC_PROG_FC(gfortran) +-FC="$GFORTRAN" ++#FC="$GFORTRAN" + AC_PROG_FC(gfortran) + + # extra LD Flags which are required for targets +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch new file +54
-0@@ -0,0 +1,54 @@ +From b3e8e7e8ae106e3207e9edc3d23dcce1464b755f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:22:00 +0400 +Subject: [PATCH 12/39] cpp: honor sysroot. + +Currently, if the gcc toolchain is relocated and installed from sstate, then you try and compile +preprocessed source (.i or .ii files), the compiler will try and access the builtin sysroot location +rather than the --sysroot option specified on the commandline. If access to that directory is +permission denied (unreadable), gcc will error. + +This happens when ccache is in use due to the fact it uses preprocessed source files. + +The fix below adds %I to the cpp-output spec macro so the default substitutions for -iprefix, +-isystem, -isysroot happen and the correct sysroot is used. + +[YOCTO #2074] + +RP 2012/04/13 + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/cp/lang-specs.h | 2 +- + gcc/gcc.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h +index f0802b8915c..f324d299849 100644 +--- a/gcc/cp/lang-specs.h ++++ b/gcc/cp/lang-specs.h +@@ -64,5 +64,5 @@ along with GCC; see the file COPYING3. If not see + {".ii", "@c++-cpp-output", 0, 0, 0}, + {"@c++-cpp-output", + "%{!M:%{!MM:%{!E:\ +- cc1plus -fpreprocessed %i %(cc1_options) %2\ ++ cc1plus -fpreprocessed %i %I %(cc1_options) %2\ + %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, +diff --git a/gcc/gcc.c b/gcc/gcc.c +index d355d65583a..570cdc00034 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -1343,7 +1343,7 @@ static const struct compiler default_compilers[] = + %W{o*:--output-pch=%*}}%V}}}}}}}", 0, 0, 0}, + {".i", "@cpp-output", 0, 0, 0}, + {"@cpp-output", +- "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, ++ "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %I %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, + {".s", "@assembler", 0, 0, 0}, + {"@assembler", + "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 0, 0}, +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0013-MIPS64-Default-to-N64-ABI.patch new file +57
-0@@ -0,0 +1,57 @@ +From 0f3629978cd7c98614e87d4fd190b89864221631 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:23:08 +0400 +Subject: [PATCH 13/39] MIPS64: Default to N64 ABI + +MIPS64 defaults to n32 ABI, this patch makes it +so that it defaults to N64 ABI + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [OE config specific] +--- + gcc/config.gcc | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/gcc/config.gcc b/gcc/config.gcc +index 8741dd1e3b2..2ffcb39d85f 100644 +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -2137,29 +2137,29 @@ mips*-*-linux*) # Linux MIPS, either endian. + default_mips_arch=mips32 + ;; + mips64el-st-linux-gnu) +- default_mips_abi=n32 ++ default_mips_abi=64 + tm_file="${tm_file} mips/st.h" + tmake_file="${tmake_file} mips/t-st" + enable_mips_multilibs="yes" + ;; + mips64octeon*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" + target_cpu_default=MASK_SOFT_FLOAT_ABI + enable_mips_multilibs="yes" + ;; + mipsisa64r6*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + default_mips_arch=mips64r6 + enable_mips_multilibs="yes" + ;; + mipsisa64r2*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + default_mips_arch=mips64r2 + enable_mips_multilibs="yes" + ;; + mips64*-*-linux* | mipsisa64*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + enable_mips_multilibs="yes" + ;; + esac +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +248
-0@@ -0,0 +1,248 @@ +From 53f1c382b1366c5621c8edead9c766950c290fd9 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:24:50 +0400 +Subject: [PATCH 14/39] Define GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER + relative to SYSTEMLIBS_DIR + +This patch defines GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER +relative to SYSTEMLIBS_DIR which can be set in generated headers +This breaks the assumption of hardcoded multilib in gcc +Change is only for the supported architectures in OE including +SH, sparc, alpha for possible future support (if any) + +Removes the do_headerfix task in metadata + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [OE configuration] +--- + gcc/config/alpha/linux-elf.h | 4 ++-- + gcc/config/arm/linux-eabi.h | 4 ++-- + gcc/config/arm/linux-elf.h | 2 +- + gcc/config/i386/linux.h | 2 +- + gcc/config/i386/linux64.h | 6 +++--- + gcc/config/linux.h | 8 ++++---- + gcc/config/mips/linux.h | 12 ++++++------ + gcc/config/riscv/linux.h | 2 +- + gcc/config/rs6000/linux64.h | 16 ++++++---------- + gcc/config/sh/linux.h | 2 +- + gcc/config/sparc/linux.h | 2 +- + gcc/config/sparc/linux64.h | 4 ++-- + 12 files changed, 30 insertions(+), 34 deletions(-) + +diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h +index 36b74dc1993..02373578af8 100644 +--- a/gcc/config/alpha/linux-elf.h ++++ b/gcc/config/alpha/linux-elf.h +@@ -23,8 +23,8 @@ along with GCC; see the file COPYING3. If not see + #define EXTRA_SPECS \ + { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" +-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" ++#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" + #if DEFAULT_LIBC == LIBC_UCLIBC + #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}" + #elif DEFAULT_LIBC == LIBC_GLIBC +diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h +index 8585fde3d41..b3af68cac57 100644 +--- a/gcc/config/arm/linux-eabi.h ++++ b/gcc/config/arm/linux-eabi.h +@@ -62,8 +62,8 @@ + GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */ + + #undef GLIBC_DYNAMIC_LINKER +-#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" +-#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" ++#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT SYSTEMLIBS_DIR "ld-linux.so.3" ++#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT SYSTEMLIBS_DIR "ld-linux-armhf.so.3" + #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT + + #define GLIBC_DYNAMIC_LINKER \ +diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h +index cfcd9cb1a5c..a798e987ecb 100644 +--- a/gcc/config/arm/linux-elf.h ++++ b/gcc/config/arm/linux-elf.h +@@ -60,7 +60,7 @@ + + #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc" + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #define LINUX_TARGET_LINK_SPEC "%{h*} \ + %{static:-Bstatic} \ +diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h +index 69f97f15b0d..71bc31d9231 100644 +--- a/gcc/config/i386/linux.h ++++ b/gcc/config/i386/linux.h +@@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see + <http://www.gnu.org/licenses/>. */ + + #define GNU_USER_LINK_EMULATION "elf_i386" +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #undef MUSL_DYNAMIC_LINKER + #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1" +diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h +index f2d913e30ac..8725f33d8a5 100644 +--- a/gcc/config/i386/linux64.h ++++ b/gcc/config/i386/linux64.h +@@ -27,9 +27,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + #define GNU_USER_LINK_EMULATION64 "elf_x86_64" + #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64" + +-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" +-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" +-#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2" ++#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux-x86-64.so.2" ++#define GLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ld-linux-x32.so.2" + + #undef MUSL_DYNAMIC_LINKER32 + #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1" +diff --git a/gcc/config/linux.h b/gcc/config/linux.h +index 2ea4ff92c1d..487b0c0923b 100644 +--- a/gcc/config/linux.h ++++ b/gcc/config/linux.h +@@ -81,10 +81,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + GLIBC_DYNAMIC_LINKER must be defined for each target using them, or + GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets + supporting both 32-bit and 64-bit compilation. */ +-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ldx32-uClibc.so.0" + #define BIONIC_DYNAMIC_LINKER "/system/bin/linker" + #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker" + #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64" +diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h +index 2dfd0c18b90..12057c51b5e 100644 +--- a/gcc/config/mips/linux.h ++++ b/gcc/config/mips/linux.h +@@ -22,20 +22,20 @@ along with GCC; see the file COPYING3. If not see + #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32" + + #define GLIBC_DYNAMIC_LINKER32 \ +- "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" + #define GLIBC_DYNAMIC_LINKER64 \ +- "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" + #define GLIBC_DYNAMIC_LINKERN32 \ +- "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" + + #undef UCLIBC_DYNAMIC_LINKER32 + #define UCLIBC_DYNAMIC_LINKER32 \ +- "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" + #undef UCLIBC_DYNAMIC_LINKER64 + #define UCLIBC_DYNAMIC_LINKER64 \ +- "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld64-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld64-uClibc.so.0}" + #define UCLIBC_DYNAMIC_LINKERN32 \ +- "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" + + #undef MUSL_DYNAMIC_LINKER32 + #define MUSL_DYNAMIC_LINKER32 \ +diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h +index aa8a28d5d..ebf9551c9 100644 +--- a/gcc/config/riscv/linux.h ++++ b/gcc/config/riscv/linux.h +@@ -22,7 +22,7 @@ along with GCC; see the file COPYING3. + GNU_USER_TARGET_OS_CPP_BUILTINS(); \ + } while (0) + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1" + + #define MUSL_ABI_SUFFIX \ + "%{mabi=ilp32:-sf}" \ +diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h +index 90fe6566255..55695dadd91 100644 +--- a/gcc/config/rs6000/linux64.h ++++ b/gcc/config/rs6000/linux64.h +@@ -420,16 +420,11 @@ extern int dot_symbols; + #undef LINK_OS_DEFAULT_SPEC + #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" + +-#define GLIBC_DYNAMIC_LINKER32 "%(dynamic_linker_prefix)/lib/ld.so.1" +- ++#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld.so.1" + #ifdef LINUX64_DEFAULT_ABI_ELFv2 +-#define GLIBC_DYNAMIC_LINKER64 \ +-"%{mabi=elfv1:%(dynamic_linker_prefix)/lib64/ld64.so.1;" \ +-":%(dynamic_linker_prefix)/lib64/ld64.so.2}" ++#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:" SYSTEMLIBS_DIR "ld64.so.1;:" SYSTEMLIBS_DIR "ld64.so.2}" + #else +-#define GLIBC_DYNAMIC_LINKER64 \ +-"%{mabi=elfv2:%(dynamic_linker_prefix)/lib64/ld64.so.2;" \ +-":%(dynamic_linker_prefix)/lib64/ld64.so.1}" ++#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:" SYSTEMLIBS_DIR "ld64.so.2;:" SYSTEMLIBS_DIR "ld64.so.1}" + #endif + + #define MUSL_DYNAMIC_LINKER32 \ +@@ -437,8 +432,9 @@ extern int dot_symbols; + #define MUSL_DYNAMIC_LINKER64 \ + "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" + +-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" ++ + #if DEFAULT_LIBC == LIBC_UCLIBC + #define CHOOSE_DYNAMIC_LINKER(G, U, M) \ + "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}" +diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h +index 6d2ccd012ba..ec78a89ce15 100644 +--- a/gcc/config/sh/linux.h ++++ b/gcc/config/sh/linux.h +@@ -64,7 +64,7 @@ along with GCC; see the file COPYING3. If not see + "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E MUSL_DYNAMIC_LINKER_FP \ + "%{mfdpic:-fdpic}.so.1" + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #undef SUBTARGET_LINK_EMUL_SUFFIX + #define SUBTARGET_LINK_EMUL_SUFFIX "%{mfdpic:_fd;:_linux}" +diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h +index 9fb03af0fe9..401fddbbb22 100644 +--- a/gcc/config/sparc/linux.h ++++ b/gcc/config/sparc/linux.h +@@ -83,7 +83,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); + When the -shared link option is used a final link is not being + done. */ + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #undef LINK_SPEC + #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \ +diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h +index c1fe42165b7..26a79bfa2e3 100644 +--- a/gcc/config/sparc/linux64.h ++++ b/gcc/config/sparc/linux64.h +@@ -84,8 +84,8 @@ along with GCC; see the file COPYING3. If not see + When the -shared link option is used a final link is not being + done. */ + +-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" +-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux.so.2" + + #ifdef SPARC_BI_ARCH + +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0015-gcc-Fix-argument-list-too-long-error.patch new file +40
-0@@ -0,0 +1,40 @@ +From 2e75a14cd60227e036790184f0eb400abc3c870b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:26:37 +0400 +Subject: [PATCH 15/39] gcc: Fix argument list too long error. + +There would be an "Argument list too long" error when the +build directory is longer than 200, this is caused by: + +headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u` + +The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle +it, use the $(sort list) of GNU make which can handle the too long list +would fix the problem, the header would be short enough after sorted. +The "tr ' ' '\012'" was used for translating the space to "\n", the +$(sort list) doesn't need this. + +Signed-off-by: Robert Yang <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 1367136bfac..71a8275c39f 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -3538,7 +3538,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype + # We keep the directory structure for files in config or c-family and .def + # files. All other files are flattened to a single directory. + $(mkinstalldirs) $(DESTDIR)$(plugin_includedir) +- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \ ++ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \ + for file in $$headers; do \ + if [ -f $$file ] ; then \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0016-Disable-sdt.patch new file +113
-0@@ -0,0 +1,113 @@ +From 423d87ac47d21e399d759d7ff3b638f0c721a7df Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:28:10 +0400 +Subject: [PATCH 16/39] Disable sdt. + +We don't list dtrace in DEPENDS so we shouldn't be depending on this header. +It may or may not exist from preivous builds though. To be determinstic, disable +sdt.h usage always. This avoids build failures if the header is removed after configure +but before libgcc is compiled for example. + +RP 2012/8/7 + +Signed-off-by: Khem Raj <[email protected]> + +Disable sdt for libstdc++-v3. + +Signed-off-by: Robert Yang <[email protected]> + +Upstream-Status: Inappropriate [hack] +--- + gcc/configure | 12 ++++++------ + gcc/configure.ac | 18 +++++++++--------- + libstdc++-v3/configure | 6 +++--- + libstdc++-v3/configure.ac | 2 +- + 4 files changed, 19 insertions(+), 19 deletions(-) + +diff --git a/gcc/configure b/gcc/configure +index a575839c1b2..872338f29b6 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -29296,12 +29296,12 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 + $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } + have_sys_sdt_h=no +-if test -f $target_header_dir/sys/sdt.h; then +- have_sys_sdt_h=yes +- +-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h +- +-fi ++#if test -f $target_header_dir/sys/sdt.h; then ++# have_sys_sdt_h=yes ++# ++#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h ++# ++#fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 + $as_echo "$have_sys_sdt_h" >&6; } + +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 676116a6d96..55046e68926 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -5957,15 +5957,15 @@ fi + AC_SUBST([enable_default_ssp]) + + # Test for <sys/sdt.h> on the target. +-GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) +-AC_MSG_CHECKING(sys/sdt.h in the target C library) +-have_sys_sdt_h=no +-if test -f $target_header_dir/sys/sdt.h; then +- have_sys_sdt_h=yes +- AC_DEFINE(HAVE_SYS_SDT_H, 1, +- [Define if your target C library provides sys/sdt.h]) +-fi +-AC_MSG_RESULT($have_sys_sdt_h) ++#GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) ++#AC_MSG_CHECKING(sys/sdt.h in the target C library) ++#have_sys_sdt_h=no ++#if test -f $target_header_dir/sys/sdt.h; then ++# have_sys_sdt_h=yes ++# AC_DEFINE(HAVE_SYS_SDT_H, 1, ++# [Define if your target C library provides sys/sdt.h]) ++#fi ++#AC_MSG_RESULT($have_sys_sdt_h) + + # Check if TFmode long double should be used by default or not. + # Some glibc targets used DFmode long double, but with glibc 2.4 +diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure +index c9dbaa139d5..c64a77d152b 100755 +--- a/libstdc++-v3/configure ++++ b/libstdc++-v3/configure +@@ -21786,11 +21786,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + +- if test $glibcxx_cv_sys_sdt_h = yes; then ++# if test $glibcxx_cv_sys_sdt_h = yes; then + +-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h ++#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h + +- fi ++# fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5 + $as_echo "$glibcxx_cv_sys_sdt_h" >&6; } + +diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac +index 0ef96270c9c..afe55a1b215 100644 +--- a/libstdc++-v3/configure.ac ++++ b/libstdc++-v3/configure.ac +@@ -230,7 +230,7 @@ GLIBCXX_CHECK_SC_NPROCESSORS_ONLN + GLIBCXX_CHECK_SC_NPROC_ONLN + GLIBCXX_CHECK_PTHREADS_NUM_PROCESSORS_NP + GLIBCXX_CHECK_SYSCTL_HW_NCPU +-GLIBCXX_CHECK_SDT_H ++#GLIBCXX_CHECK_SDT_H + + # Check for available headers. + AC_CHECK_HEADERS([endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0017-libtool.patch new file +42
-0@@ -0,0 +1,42 @@ +From c8b11e96b11910b2d4df6ae8104466e3303d933f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:29:11 +0400 +Subject: [PATCH 17/39] libtool + +libstdc++ from gcc-runtime gets created with -rpath=/usr/lib/../lib for qemux86-64 +when running on am x86_64 build host. + +This patch stops this speading to libdir in the libstdc++.la file within libtool. +Arguably, it shouldn't be passing this into libtool in the first place but +for now this resolves the nastiest problems this causes. + +func_normal_abspath would resolve an empty path to `pwd` so we need +to filter the zero case. + +RP 2012/8/24 + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + ltmain.sh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/ltmain.sh b/ltmain.sh +index 9503ec85d70..0121fba707f 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -6359,6 +6359,10 @@ func_mode_link () + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" ++ if test -n "$install_libdir"; then ++ func_normal_abspath "$install_libdir" ++ install_libdir=$func_normal_abspath_result ++ fi + + oldlibs= + if test -z "$rpath"; then +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43
-0@@ -0,0 +1,43 @@ +From 7dbba844a59bdf6e7d724f8bfa7927246cb7af8f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:30:32 +0400 +Subject: [PATCH 18/39] gcc: armv4: pass fix-v4bx to linker to support EABI. + +The LINK_SPEC for linux gets overwritten by linux-eabi.h which +means the value of TARGET_FIX_V4BX_SPEC gets lost and as a result +the option is not passed to linker when chosing march=armv4 +This patch redefines this in linux-eabi.h and reinserts it +for eabi defaulting toolchains. + +We might want to send it upstream. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/config/arm/linux-eabi.h | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h +index b3af68cac57..330b6e13c5f 100644 +--- a/gcc/config/arm/linux-eabi.h ++++ b/gcc/config/arm/linux-eabi.h +@@ -88,10 +88,14 @@ + #define MUSL_DYNAMIC_LINKER \ + "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1" + ++/* For armv4 we pass --fix-v4bx to linker to support EABI */ ++#undef TARGET_FIX_V4BX_SPEC ++#define TARGET_FIX_V4BX_SPEC "%{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4: --fix-v4bx}" ++ + /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to + use the GNU/Linux version, not the generic BPABI version. */ + #undef LINK_SPEC +-#define LINK_SPEC EABI_LINK_SPEC \ ++#define LINK_SPEC TARGET_FIX_V4BX_SPEC EABI_LINK_SPEC \ + LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \ + LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC) + +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102
-0@@ -0,0 +1,102 @@ +From 117140acd3c383f620ff75894276001c7405dcce Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:33:04 +0400 +Subject: [PATCH 19/39] Use the multilib config files from ${B} instead of + using the ones from ${S} + +Use the multilib config files from ${B} instead of using the ones from ${S} +so that the source can be shared between gcc-cross-initial, +gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. + +Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Constantin Musca <[email protected]> + +Upstream-Status: Inappropriate [configuration] +--- + gcc/configure | 22 ++++++++++++++++++---- + gcc/configure.ac | 22 ++++++++++++++++++---- + 2 files changed, 36 insertions(+), 8 deletions(-) + +diff --git a/gcc/configure b/gcc/configure +index 872338f29b6..cfcadc93a01 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -12138,10 +12138,20 @@ done + tmake_file_= + for f in ${tmake_file} + do +- if test -f ${srcdir}/config/$f +- then +- tmake_file_="${tmake_file_} \$(srcdir)/config/$f" +- fi ++ case $f in ++ */t-linux64 ) ++ if test -f ./config/$f ++ then ++ tmake_file_="${tmake_file_} ./config/$f" ++ fi ++ ;; ++ * ) ++ if test -f ${srcdir}/config/$f ++ then ++ tmake_file_="${tmake_file_} \$(srcdir)/config/$f" ++ fi ++ ;; ++ esac + done + tmake_file="${tmake_file_}" + +@@ -12152,6 +12162,10 @@ tm_file_list="options.h" + tm_include_list="options.h insn-constants.h" + for f in $tm_file; do + case $f in ++ */linux64.h ) ++ tm_file_list="${tm_file_list} ./config/$f" ++ tm_include_list="${tm_include_list} ./config/$f" ++ ;; + ./* ) + f=`echo $f | sed 's/^..//'` + tm_file_list="${tm_file_list} $f" +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 55046e68926..44b90478f55 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -1902,10 +1902,20 @@ done + tmake_file_= + for f in ${tmake_file} + do +- if test -f ${srcdir}/config/$f +- then +- tmake_file_="${tmake_file_} \$(srcdir)/config/$f" +- fi ++ case $f in ++ */t-linux64 ) ++ if test -f ./config/$f ++ then ++ tmake_file_="${tmake_file_} ./config/$f" ++ fi ++ ;; ++ * ) ++ if test -f ${srcdir}/config/$f ++ then ++ tmake_file_="${tmake_file_} \$(srcdir)/config/$f" ++ fi ++ ;; ++ esac + done + tmake_file="${tmake_file_}" + +@@ -1916,6 +1926,10 @@ tm_file_list="options.h" + tm_include_list="options.h insn-constants.h" + for f in $tm_file; do + case $f in ++ */linux64.h ) ++ tm_file_list="${tm_file_list} ./config/$f" ++ tm_include_list="${tm_include_list} ./config/$f" ++ ;; + ./* ) + f=`echo $f | sed 's/^..//'` + tm_file_list="${tm_file_list} $f" +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31
-0@@ -0,0 +1,31 @@ +From a7266111a5ba2d146c979e86ff84f6b807ca5fdc Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 09:39:38 +0000 +Subject: [PATCH 20/39] Avoid using libdir from .la which usually points to a + host path + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Jonathan Liu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ltmain.sh b/ltmain.sh +index 0121fba707f..52bdbdb5f9c 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -5628,6 +5628,9 @@ func_mode_link () + absdir="$abs_ladir" + libdir="$abs_ladir" + else ++ # Instead of using libdir from .la which usually points to a host path, ++ # use the path the .la is contained in. ++ libdir="$abs_ladir" + dir="$libdir" + absdir="$libdir" + fi +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0021-export-CPP.patch new file +53
-0@@ -0,0 +1,53 @@ +From c8599fc3b5781b319707c9c0f1b0a1ef7cddb027 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 09:40:59 +0000 +Subject: [PATCH 21/39] export CPP + +The OE environment sets and exports CPP as being the target gcc. When +building gcc-cross-canadian for a mingw targetted sdk, the following can be found +in build.x86_64-pokysdk-mingw32.i586-poky-linux/build-x86_64-linux/libiberty/config.log: + +configure:3641: checking for _FILE_OFFSET_BITS value needed for large files +configure:3666: gcc -c -isystem/media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe conftest.c >&5 +configure:3666: $? = 0 +configure:3698: result: no +configure:3786: checking how to run the C preprocessor +configure:3856: result: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 +configure:3876: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 conftest.c +configure:3876: $? = 0 + +Note this is a *build* target (in build-x86_64-linux) so it should be +using the host "gcc", not x86_64-pokysdk-mingw32-gcc. Since the mingw32 +headers are very different, using the wrong cpp is a real problem. It is leaking +into configure through the CPP variable. Ultimately this leads to build +failures related to not being able to include a process.h file for pem-unix.c. + +The fix is to ensure we export a sane CPP value into the build +environment when using build targets. We could define a CPP_FOR_BUILD value which may be +the version which needs to be upstreamed but for now, this fix is good enough to +avoid the problem. + +RP 22/08/2013 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + Makefile.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.in b/Makefile.in +index 2bf83b72265..1af45580086 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -149,6 +149,7 @@ BUILD_EXPORTS = \ + AR="$(AR_FOR_BUILD)"; export AR; \ + AS="$(AS_FOR_BUILD)"; export AS; \ + CC="$(CC_FOR_BUILD)"; export CC; \ ++ CPP="$(CC_FOR_BUILD) -E"; export CPP; \ + CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ + CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ + CXX="$(CXX_FOR_BUILD)"; export CXX; \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42
-0@@ -0,0 +1,42 @@ +From 5e2ee46c720b6ce03a18da70dd4e0917c258ab0b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 10:21:55 +0000 +Subject: [PATCH 22/39] Disable the MULTILIB_OSDIRNAMES and other multilib + options. + +Hard coding the MULTILIB_OSDIRNAMES with ../lib64 is causing problems on +systems where the libdir is NOT set to /lib64. This is allowed by the +ABI, as +long as the dynamic loader is present in /lib. + +We simply want to use the default rules in gcc to find and configure the +normal libdir. + +Upstream-Status: Inappropriate[OE-Specific] + +Signed-off-by: Mark Hatle <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/config/aarch64/t-aarch64-linux | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/gcc/config/aarch64/t-aarch64-linux b/gcc/config/aarch64/t-aarch64-linux +index b9897785a89..7d06f0d0edb 100644 +--- a/gcc/config/aarch64/t-aarch64-linux ++++ b/gcc/config/aarch64/t-aarch64-linux +@@ -21,8 +21,8 @@ + LIB1ASMSRC = aarch64/lib1funcs.asm + LIB1ASMFUNCS = _aarch64_sync_cache_range + +-AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be) +-MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu) +-MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu) ++#AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be) ++#MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu) ++#MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu) + +-MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) ++#MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch new file +62
-0@@ -0,0 +1,62 @@ +From 73766424a2f71b1810fb8afdd863028855d87e5a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 10:25:11 +0000 +Subject: [PATCH 23/39] Ensure target gcc headers can be included + +There are a few headers installed as part of the OpenEmbedded +gcc-runtime target (omp.h, ssp/*.h). Being installed from a recipe +built for the target architecture, these are within the target +sysroot and not cross/nativesdk; thus they weren't able to be +found by gcc with the existing search paths. Add support for +picking up these headers under the sysroot supplied on the gcc +command line in order to resolve this. + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/Makefile.in | 2 ++ + gcc/cppdefault.c | 4 ++++ + gcc/defaults.h | 9 +++++++++ + gcc/gcc.c | 7 ------- + 4 files changed, 15 insertions(+), 7 deletions(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 71a8275c39f..5ae693fb06c 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -614,6 +614,7 @@ libexecdir = @libexecdir@ + + # Directory in which the compiler finds libraries etc. + libsubdir = $(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) ++libsubdir_target = gcc/$(target_noncanonical)/$(version) + # Directory in which the compiler finds executables + libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) + # Directory in which all plugin resources are installed +@@ -2870,6 +2871,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\" + + PREPROCESSOR_DEFINES = \ + -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ ++ -DGCC_INCLUDE_SUBDIR_TARGET=\"$(libsubdir_target)/include\" \ + -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \ + -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ + -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \ +diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c +index b36a979d5ba..e2e187dedaf 100644 +--- a/gcc/cppdefault.c ++++ b/gcc/cppdefault.c +@@ -59,6 +59,10 @@ const struct default_include cpp_include_defaults[] + /* This is the dir for gcc's private headers. */ + { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, + #endif ++#ifdef GCC_INCLUDE_SUBDIR_TARGET ++ /* This is the dir for gcc's private headers under the specified sysroot. */ ++ { STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET, "GCC", 0, 0, 1, 0 }, ++#endif + #ifdef LOCAL_INCLUDE_DIR + /* /usr/local/include comes before the fixincluded header files. */ + { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54
-0@@ -0,0 +1,54 @@ +From 57beef69396f6c187014b8e61cdc966218479d07 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 11:17:19 +0000 +Subject: [PATCH 24/39] gcc 4.8+ won't build with --disable-dependency-tracking + +since the *.Ppo files don't get created unless --enable-dependency-tracking is true. + +This patch ensures we only use those compiler options when its enabled. + +Upstream-Status: Submitted + +(Problem was already reported upstream, attached this patch there +http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55930) + +RP +2012/09/22 + +Signed-off-by: Khem Raj <[email protected]> +--- + libatomic/Makefile.am | 3 ++- + libatomic/Makefile.in | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/libatomic/Makefile.am b/libatomic/Makefile.am +index 803b292cce5..b47842eb590 100644 +--- a/libatomic/Makefile.am ++++ b/libatomic/Makefile.am +@@ -101,7 +101,8 @@ PAT_S = $(word 3,$(PAT_SPLIT)) + IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) + IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) + +-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_FALSE@M_DEPS = + M_SIZE = -DN=$(PAT_N) + M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) + M_FILE = $(PAT_BASE)_n.c +diff --git a/libatomic/Makefile.in b/libatomic/Makefile.in +index c8f38be5835..4fab7cec3ea 100644 +--- a/libatomic/Makefile.in ++++ b/libatomic/Makefile.in +@@ -335,7 +335,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) + PAT_S = $(word 3,$(PAT_SPLIT)) + IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) + IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) +-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_FALSE@M_DEPS = + M_SIZE = -DN=$(PAT_N) + M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) + M_FILE = $(PAT_BASE)_n.c +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38
-0@@ -0,0 +1,38 @@ +From fd96c9b35c592f1bdd32bc5ae669157473e44063 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 3 Mar 2015 08:21:19 +0000 +Subject: [PATCH 25/39] Don't search host directory during "relink" if + $inst_prefix is provided + +http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html + +Upstream-Status: Submitted + +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/ltmain.sh b/ltmain.sh +index 52bdbdb5f9c..82bcec39f05 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -6004,12 +6004,13 @@ func_mode_link () + fi + else + # We cannot seem to hardcode it, guess we'll fake it. ++ # Default if $libdir is not relative to the prefix: + add_dir="-L$libdir" +- # Try looking first in the location we're being installed to. ++ + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) +- add_dir="$add_dir -L$inst_prefix_dir$libdir" ++ add_dir="-L$inst_prefix_dir$libdir" + ;; + esac + fi +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29
-0@@ -0,0 +1,29 @@ +From c2e400afe8c514357859fca88af4d3e1fcbfe2ff Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:15:27 -0700 +Subject: [PATCH 26/39] Use SYSTEMLIBS_DIR replacement instead of hardcoding + base_libdir + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index bf1327e98cc..64436183bc8 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER + #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0027-aarch64-Add-support-for-musl-ldso.patch new file +28
-0@@ -0,0 +1,28 @@ +From a2cc175769fd8255750eaecae64e3d1f9c38d48f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:18:39 -0700 +Subject: [PATCH 27/39] aarch64: Add support for musl ldso + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index 64436183bc8..ba156676026 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -24,7 +24,7 @@ + #define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER +-#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define MUSL_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef ASAN_CC1_SPEC + #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54
-0@@ -0,0 +1,54 @@ +From a8a8a02788ff98f253ce0b33adcb0e661d24b1e3 Mon Sep 17 00:00:00 2001 +From: Robert Yang <[email protected]> +Date: Sun, 5 Jul 2015 20:25:18 -0700 +Subject: [PATCH 28/39] libcc1: fix libcc1's install path and rpath + +* Install libcc1.so and libcc1plugin.so into + $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version), as what we + had done to lto-plugin. +* Fix bad RPATH iussue: + gcc-5.2.0: package gcc-plugins contains bad RPATH /patht/to/tmp/sysroots/qemux86-64/usr/lib64/../lib64 in file + /path/to/gcc/5.2.0-r0/packages-split/gcc-plugins/usr/lib64/gcc/x86_64-poky-linux/5.2.0/plugin/libcc1plugin.so.0.0.0 + [rpaths] + +Upstream-Status: Inappropriate [OE configuration] + +Signed-off-by: Robert Yang <[email protected]> +--- + libcc1/Makefile.am | 4 ++-- + libcc1/Makefile.in | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am +index 6ecb66b4365..634cce3c2a9 100644 +--- a/libcc1/Makefile.am ++++ b/libcc1/Makefile.am +@@ -37,8 +37,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \ + $(Wc)$(libiberty_normal))) + libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty)) + +-plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin +-cc1libdir = $(libdir)/$(libsuffix) ++cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) ++plugindir = $(cc1libdir) + + if ENABLE_PLUGIN + plugin_LTLIBRARIES = libcc1plugin.la libcp1plugin.la +diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in +index 47be10025ad..8d5481d87bd 100644 +--- a/libcc1/Makefile.in ++++ b/libcc1/Makefile.in +@@ -303,8 +303,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \ + $(Wc)$(libiberty_normal))) + + libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty)) +-plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin +-cc1libdir = $(libdir)/$(libsuffix) ++cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) ++plugindir = $(cc1libdir) + @ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = libcc1plugin.la libcp1plugin.la + @ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la + shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch new file +213
-0@@ -0,0 +1,213 @@ +From 3bb74495e45e0e798daae5556497e688b8fc4eef Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 7 Dec 2015 23:39:54 +0000 +Subject: [PATCH 29/39] handle sysroot support for nativesdk-gcc + +Being able to build a nativesdk gcc is useful, particularly in cases +where the host compiler may be of an incompatible version (or a 32 +bit compiler is needed). + +Sadly, building nativesdk-gcc is not straight forward. We install +nativesdk-gcc into a relocatable location and this means that its +library locations can change. "Normal" sysroot support doesn't help +in this case since the values of paths like "libdir" change, not just +base root directory of the system. + +In order to handle this we do two things: + +a) Add %r into spec file markup which can be used for injected paths + such as SYSTEMLIBS_DIR (see gcc_multilib_setup()). +b) Add other paths which need relocation into a .gccrelocprefix section + which the relocation code will notice and adjust automatically. + +Upstream-Status: Inappropriate +RP 2015/7/28 + +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/cppdefault.c | 50 +++++++++++++++++++++++++++++++++++------------- + gcc/cppdefault.h | 3 ++- + gcc/gcc.c | 20 +++++++++++++------ + 3 files changed, 53 insertions(+), 20 deletions(-) + +diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c +index e2e187dedaf..2faba2b1d63 100644 +--- a/gcc/cppdefault.c ++++ b/gcc/cppdefault.c +@@ -35,6 +35,30 @@ + # undef CROSS_INCLUDE_DIR + #endif + ++static char GPLUSPLUS_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_INCLUDE_DIR; ++static char GCC_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GCC_INCLUDE_DIR; ++static char GPLUSPLUS_TOOL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_TOOL_INCLUDE_DIR; ++static char GPLUSPLUS_BACKWARD_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_BACKWARD_INCLUDE_DIR; ++static char STANDARD_STARTFILE_PREFIX_2VAR[4096] __attribute__ ((section (".gccrelocprefix"))) = STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET; ++#ifdef LOCAL_INCLUDE_DIR ++static char LOCAL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = LOCAL_INCLUDE_DIR; ++#endif ++#ifdef PREFIX_INCLUDE_DIR ++static char PREFIX_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = PREFIX_INCLUDE_DIR; ++#endif ++#ifdef FIXED_INCLUDE_DIR ++static char FIXED_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = FIXED_INCLUDE_DIR; ++#endif ++#ifdef CROSS_INCLUDE_DIR ++static char CROSS_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = CROSS_INCLUDE_DIR; ++#endif ++#ifdef TOOL_INCLUDE_DIR ++static char TOOL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = TOOL_INCLUDE_DIR; ++#endif ++#ifdef NATIVE_SYSTEM_HEADER_DIR ++static char NATIVE_SYSTEM_HEADER_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = NATIVE_SYSTEM_HEADER_DIR; ++#endif ++ + const struct default_include cpp_include_defaults[] + #ifdef INCLUDE_DEFAULTS + = INCLUDE_DEFAULTS; +@@ -42,38 +66,38 @@ const struct default_include cpp_include_defaults[] + = { + #ifdef GPLUSPLUS_INCLUDE_DIR + /* Pick up GNU C++ generic include files. */ +- { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, ++ { GPLUSPLUS_INCLUDE_DIRVAR, "G++", 1, 1, + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, + #endif + #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR + /* Pick up GNU C++ target-dependent include files. */ +- { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, ++ { GPLUSPLUS_TOOL_INCLUDE_DIRVAR, "G++", 1, 1, + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 1 }, + #endif + #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR + /* Pick up GNU C++ backward and deprecated include files. */ +- { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, ++ { GPLUSPLUS_BACKWARD_INCLUDE_DIRVAR, "G++", 1, 1, + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, + #endif + #ifdef GCC_INCLUDE_DIR + /* This is the dir for gcc's private headers. */ +- { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, ++ { GCC_INCLUDE_DIRVAR, "GCC", 0, 0, 0, 0 }, + #endif + #ifdef GCC_INCLUDE_SUBDIR_TARGET + /* This is the dir for gcc's private headers under the specified sysroot. */ +- { STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET, "GCC", 0, 0, 1, 0 }, ++ { STANDARD_STARTFILE_PREFIX_2VAR, "GCC", 0, 0, 1, 0 }, + #endif + #ifdef LOCAL_INCLUDE_DIRLines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +465
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0037-sync-gcc-stddef.h-with-musl.patch new file +91
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0039-Fix-for-testsuite-failure.patch new file +258
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0040-Re-introduce-spe-commandline-options.patch new file +41
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch new file +44
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0043-riscv-Disable-multilib-for-OE.patch new file +27
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3.inc new file +113
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0002-gcc-poison-system-directories.patch new file +203
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0004-64-bit-multilib-hack.patch new file +85
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0005-optional-libstdc.patch new file +125
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0009-fortran-cross-compile-hack.patch new file +46
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0011-MIPS64-Default-to-N64-ABI.patch new file +57
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +248
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0013-gcc-Fix-argument-list-too-long-error.patch new file +40
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0014-Disable-sdt.patch new file +113
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0015-libtool.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0019-export-CPP.patch new file +53
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch new file +98
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0025-aarch64-Add-support-for-musl-ldso.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch new file +213
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +125
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +85
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0035-sync-gcc-stddef.h-with-musl.patch new file +91
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0037-Fix-for-testsuite-failure.patch new file +258
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0038-Re-introduce-spe-commandline-options.patch new file +41
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0039-riscv-Disable-multilib-for-OE.patch new file +27
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2.inc new file +124
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0002-gcc-poison-system-directories.patch new file +203
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0004-64-bit-multilib-hack.patch new file +119
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0005-optional-libstdc.patch new file +125
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0008-fortran-cross-compile-hack.patch new file +46
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0010-MIPS64-Default-to-N64-ABI.patch new file +57
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +243
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0012-gcc-Fix-argument-list-too-long-error.patch new file +40
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0013-Disable-sdt.patch new file +113
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0014-libtool.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0018-export-CPP.patch new file +53
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch new file +55
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0020-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0021-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0022-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0023-aarch64-Add-support-for-musl-ldso.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0024-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch new file +346
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0026-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0027-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0029-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0030-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +79
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0031-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0032-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0033-sync-gcc-stddef.h-with-musl.patch new file +91
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0034-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0035-Fix-for-testsuite-failure.patch new file +258
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0036-Re-introduce-spe-commandline-options.patch new file +41
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0037-Fix-up-libsanitizer-build-with-master-glibc.patch new file +70
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.3.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-9.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.3.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-9.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.2.bb new file +7
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.3.bb new file +7
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-9.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb new file +7
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.2.bb new file +4
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.3.bb new file +4
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-9.2.bb new file +4
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.2.bb new file +14
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.3.bb new file +14
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-9.2.bb new file +14
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-9.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-9.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.3.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-9.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.7.4
Part of the diff is not shown here. View the raw message.
Quoted 6 lines · Denys Dmytriyenko
Quoted 4 lines · Sumit Garg
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.
Quoted 8 lines
Quoted 1 line
Signed-off-by Sumit Garg <[email protected]>It's an exact copy of what's currently in meta-linaro-toolchain, but I still decided to test it - I applied this patch to meta-arm and reconfigured my setup by replacing meta-linaro-toolchain with the new meta-arm-toolchain and ran few builds that use external-arm-toolchain and gcc-arm recipes:
Tested-by Denys Dmytriyenko <[email protected]>
Thank you for the patch, Sumit, and for testing, Denys. It is now included in meta-arm, see
https://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=c0a59f3d94c633d6c902e7bd436690bc890bbc40
Thanks,
Jon
Quoted 12,637 lines
Quoted 12,636 lines
--- README.md | 3 + .../include/external-arm-toolchain-versions.inc | 133 ++++ .../conf/distro/include/tcmode-external-arm.inc | 116 ++++ meta-arm-toolchain/conf/layer.conf | 15 + .../external-arm-toolchain.bb | 666 +++++++++++++++++++++ .../external-arm-toolchain/files/SUPPORTED | 1 + .../recipes-devtools/gcc/gcc-arm-8.2.inc | 114 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0003-gcc-poison-system-directories.patch | 194 ++++++ .../0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-8.2/0006-64-bit-multilib-hack.patch | 85 +++ .../gcc/gcc-arm-8.2/0007-optional-libstdc.patch | 125 ++++ ...0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++ .../gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0011-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch | 54 ++ .../0013-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 248 ++++++++ ...0015-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-8.2/0016-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-8.2/0017-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-8.2/0021-export-CPP.patch | 53 ++ ...-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 62 ++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 29 + .../0027-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...34-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 465 ++++++++++++++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 86 +++ .../0037-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0039-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0040-Re-introduce-spe-commandline-options.patch | 41 ++ .../gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch | 44 ++ ...werpc-powerpc64-Add-support-for-musl-ldso.patch | 31 + .../0043-riscv-Disable-multilib-for-OE.patch | 27 + .../recipes-devtools/gcc/gcc-arm-8.3.inc | 113 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0002-gcc-poison-system-directories.patch | 203 +++++++ .../0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-8.3/0004-64-bit-multilib-hack.patch | 85 +++ .../gcc/gcc-arm-8.3/0005-optional-libstdc.patch | 125 ++++ ...0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 ++ .../gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0009-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch | 54 ++ .../0011-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 248 ++++++++ ...0013-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-8.3/0014-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-8.3/0015-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-8.3/0019-export-CPP.patch | 53 ++ ...-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch | 42 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 98 +++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 28 + .../0025-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 213 +++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...32-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 125 ++++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 85 +++ .../0035-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0037-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0038-Re-introduce-spe-commandline-options.patch | 41 ++ .../0039-riscv-Disable-multilib-for-OE.patch | 27 + ...werpc-powerpc64-Add-support-for-musl-ldso.patch | 31 + .../recipes-devtools/gcc/gcc-arm-9.2.inc | 124 ++++ .../0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 42 ++ .../0002-gcc-poison-system-directories.patch | 203 +++++++ .../0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch | 73 +++ .../gcc-arm-9.2/0004-64-bit-multilib-hack.patch | 119 ++++ .../gcc/gcc-arm-9.2/0005-optional-libstdc.patch | 125 ++++ .../gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch | 38 ++ ...efaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 96 +++ .../0008-fortran-cross-compile-hack.patch | 46 ++ .../gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch | 54 ++ .../0010-MIPS64-Default-to-N64-ABI.patch | 57 ++ ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 243 ++++++++ ...0012-gcc-Fix-argument-list-too-long-error.patch | 40 ++ .../gcc/gcc-arm-9.2/0013-Disable-sdt.patch | 113 ++++ .../gcc/gcc-arm-9.2/0014-libtool.patch | 42 ++ ...4-pass-fix-v4bx-to-linker-to-support-EABI.patch | 43 ++ ...tilib-config-files-from-B-instead-of-usin.patch | 102 ++++ ...-libdir-from-.la-which-usually-points-to-.patch | 31 + .../gcc/gcc-arm-9.2/0018-export-CPP.patch | 53 ++ ...Ensure-target-gcc-headers-can-be-included.patch | 55 ++ ...-t-build-with-disable-dependency-tracking.patch | 54 ++ ...h-host-directory-during-relink-if-inst_pr.patch | 38 ++ ...IBS_DIR-replacement-instead-of-hardcoding.patch | 29 + .../0023-aarch64-Add-support-for-musl-ldso.patch | 28 + ...ibcc1-fix-libcc1-s-install-path-and-rpath.patch | 54 ++ ...-handle-sysroot-support-for-nativesdk-gcc.patch | 346 +++++++++++ ...et-sysroot-gcc-version-specific-dirs-with.patch | 102 ++++ ...-various-_FOR_BUILD-and-related-variables.patch | 137 +++++ .../0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 + ...shared-to-link-commandline-for-musl-targe.patch | 87 +++ ...30-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch | 79 +++ ...bgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch | 29 + ...e-alias-for-__cpu_indicator_init-instead-.patch | 86 +++ .../0033-sync-gcc-stddef.h-with-musl.patch | 91 +++ ...ation-fault-in-precompiled-header-generat.patch | 60 ++ .../0035-Fix-for-testsuite-failure.patch | 258 ++++++++ ...0036-Re-introduce-spe-commandline-options.patch | 41 ++ ...x-up-libsanitizer-build-with-master-glibc.patch | 70 +++ .../gcc/gcc-cross-canadian_arm-8.2.bb | 5 + .../gcc/gcc-cross-canadian_arm-8.3.bb | 5 + .../gcc/gcc-cross-canadian_arm-9.2.bb | 5 + .../recipes-devtools/gcc/gcc-cross_arm-8.2.bb | 3 + .../recipes-devtools/gcc/gcc-cross_arm-8.3.bb | 3 + .../recipes-devtools/gcc/gcc-cross_arm-9.2.bb | 3 + .../recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb | 2 + .../recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb | 2 + .../recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb | 2 + .../recipes-devtools/gcc/gcc-runtime_arm-8.2.bb | 7 + .../recipes-devtools/gcc/gcc-runtime_arm-8.3.bb | 7 + .../recipes-devtools/gcc/gcc-runtime_arm-9.2.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb | 2 + .../recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb | 7 + .../recipes-devtools/gcc/gcc-source_arm-8.2.bb | 4 + .../recipes-devtools/gcc/gcc-source_arm-8.3.bb | 4 + .../recipes-devtools/gcc/gcc-source_arm-9.2.bb | 4 + .../recipes-devtools/gcc/gcc_arm-8.2.bb | 14 + .../recipes-devtools/gcc/gcc_arm-8.3.bb | 14 + .../recipes-devtools/gcc/gcc_arm-9.2.bb | 14 + .../recipes-devtools/gcc/libgcc-initial_arm-8.2.bb | 2 + .../recipes-devtools/gcc/libgcc-initial_arm-8.3.bb | 2 + .../recipes-devtools/gcc/libgcc-initial_arm-9.2.bb | 5 + .../recipes-devtools/gcc/libgcc_arm-8.2.bb | 2 + .../recipes-devtools/gcc/libgcc_arm-8.3.bb | 2 + .../recipes-devtools/gcc/libgcc_arm-9.2.bb | 5 + .../recipes-devtools/gcc/libgfortran_arm-8.2.bb | 3 + .../recipes-devtools/gcc/libgfortran_arm-8.3.bb | 3 + .../recipes-devtools/gcc/libgfortran_arm-9.2.bb | 3 + 157 files changed, 11368 insertions(+) create mode 100644 meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc create mode 100644 meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc create mode 100644 meta-arm-toolchain/conf/layer.conf create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0003-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0006-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0007-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0011-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0013-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0015-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0016-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0017-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0021-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0027-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0037-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0039-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0040-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0043-riscv-Disable-multilib-for-OE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0002-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0004-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0005-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0009-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0011-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0013-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0014-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0015-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0019-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0025-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0035-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0037-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0038-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0039-riscv-Disable-multilib-for-OE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2.inc create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0002-gcc-poison-system-directories.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0004-64-bit-multilib-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0005-optional-libstdc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0008-fortran-cross-compile-hack.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0010-MIPS64-Default-to-N64-ABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0012-gcc-Fix-argument-list-too-long-error.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0013-Disable-sdt.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0014-libtool.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0018-export-CPP.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0020-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0021-Don-t-search-host-directory-during-relink-if-inst_pr.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0022-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0023-aarch64-Add-support-for-musl-ldso.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0024-libcc1-fix-libcc1-s-install-path-and-rpath.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0026-Search-target-sysroot-gcc-version-specific-dirs-with.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0027-Fix-various-_FOR_BUILD-and-related-variables.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0029-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0030-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0031-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0032-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0033-sync-gcc-stddef.h-with-musl.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0034-fix-segmentation-fault-in-precompiled-header-generat.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0035-Fix-for-testsuite-failure.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0036-Re-introduce-spe-commandline-options.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0037-Fix-up-libsanitizer-build-with-master-glibc.patch create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-9.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.2.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.3.bb create mode 100644 meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-9.2.bbREADME.md +3
-0@@ -13,6 +13,9 @@ meta-arm-bsp: meta-arm-iota: This layer provides support for Arm's IOTA Linux Distribution +meta-arm-toolchain: + This layer provides support for Arm's GNU-A toolset releases + Contributing ------------ Currently, we only accept patches from the meta-arm mailing list. For generalmeta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc new file +133
-0@@ -0,0 +1,133 @@ +def eat_run(d, cmd, *args): + import bb.process + import subprocess + + topdir = d.getVar('TOPDIR', True) + toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN', True) + if not toolchain_path: + return 'UNKNOWN', 'UNKNOWN' + + target_prefix = d.getVar('TARGET_PREFIX', True) + path = os.path.join(toolchain_path, 'bin', target_prefix + cmd) + args = [path] + list(args) + + return bb.process.run(args, cwd=topdir, stderr=subprocess.PIPE) + +def eat_get_version(d): + try: + stdout, stderr = eat_run(d, 'gcc', '-v') + except bb.process.CmdError as exc: + bb.error('Failed to obtain external Arm toolchain version: %s' % exc) + return 'UNKNOWN' + else: + last_line = stderr.splitlines()[-1] + return last_line + +# Extract the YYYY.MM version +def eat_get_main_version(d): + version = eat_get_version(d) + bb.debug(2, 'Trying for parse version info from: %s' % version) + if version != 'UNKNOWN': + if version.split()[4] == '(GNU': + # gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) + # gcc version 8.2.1 20180802 (GNU Toolchain for the A-profile Architecture 8.2-2018.11 (arm-rel-8.26)) + return version.split()[10].split('-')[1] + elif version.split()[3] == '(GNU': + # gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) + return version.split()[9].split('-')[1] + else: + bb.error('Failed to parse external Arm toolchain version from: %s' % version) + else: + return version + +# Extract the x.y.z version from 'gcc version 4.9.1' +def eat_get_gcc_version(d): + version = eat_get_version(d) + if version != 'UNKNOWN': + return version.split()[2] + else: + return version + +def eat_get_libc_version(d): + import os,bb + syspath = bb.data.expand('${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}', d) + if not syspath: + return 'UNKNOWN' + + libpath = syspath + '/libc/' + bb.data.expand('${EAT_LIBDIR}/${EAT_TARGET_SYS}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + + libpath = syspath + '/libc/' + bb.data.expand('${EAT_LIBDIR}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + + libpath = syspath + '/libc/usr/' + bb.data.expand('${EAT_LIBDIR}/${EAT_TARGET_SYS}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + + libpath = syspath + '/libc/usr/' + bb.data.expand('${EAT_LIBDIR}/', d) + + if os.path.exists(libpath): + for file in os.listdir(libpath): + if file.find('libc-') == 0: + return file[5:-3] + return 'UNKNOWN' + +def eat_get_kernel_version(d): + import os,bb + syspath = bb.data.expand('${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}', d) + if not syspath: + return 'UNKNOWN' + + vf = syspath + '/libc/usr/include/linux/version.h' + + try: + f = open(vf, 'r') + except (OSError, IOError): + return 'UNKNOWN' + + l = f.readlines(); + f.close(); + for s in l: + if s.find('LINUX_VERSION_CODE') > 0: + ver = int(s.split()[2]) + maj = ver / 65536 + ver = ver % 65536 + min = ver / 256 + ver = ver % 256 + return str(maj)+'.'+str(min)+'.'+str(ver) + return 'UNKNOWN' + +def eat_get_gdb_version(d): + try: + stdout, stderr = eat_run(d, 'gdb', '-v') + except bb.process.CmdError: + return 'UNKNOWN' + else: + first_line = stdout.splitlines()[0] + return first_line.split()[-1] + +python external_arm_toolchain_version_handler () { + if not isinstance(e, bb.event.ConfigParsed): + return + d = e.data + ld = d.createCopy() + ld.finalize() + + d.setVar('EAT_VER_MAIN', eat_get_main_version(ld)) + d.setVar('EAT_VER_GCC', eat_get_gcc_version(ld)) + d.setVar('EAT_VER_LIBC', eat_get_libc_version(ld)) + d.setVar('EAT_VER_KERNEL', eat_get_kernel_version(ld)) + d.setVar('EAT_VER_GDB', eat_get_gdb_version(ld)) +} +addhandler external_arm_toolchain_version_handlermeta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc new file +116
-0@@ -0,0 +1,116 @@ +# +# Configuration to use an external Arm binary toolchain +# + +EXTERNAL_TOOLCHAIN ?= "/usr/local/arm-binary-toolchain/${TARGET_ARCH}" + +TOOLCHAIN_PATH_ADD = "${EXTERNAL_TOOLCHAIN}/bin:" +PATH =. "${TOOLCHAIN_PATH_ADD}" + +EAT_TARGET_SYS_arm ?= "${@ 'arm-none-linux-gnueabihf' if os.path.exists('${EXTERNAL_TOOLCHAIN}/bin/arm-none-linux-gnueabihf-gcc') else 'arm-linux-gnueabihf'}" +EAT_TARGET_SYS_aarch64 ?= "${@ 'aarch64-none-linux-gnu' if os.path.exists('${EXTERNAL_TOOLCHAIN}/bin/aarch64-none-linux-gnu-gcc') else 'aarch64-linux-gnu'}" +EAT_TARGET_SYS = "${TARGET_SYS}" +TARGET_PREFIX = "${EAT_TARGET_SYS}-" + +EAT_LIBDIR_arm = "lib" +EAT_LIBDIR_aarch64 = "lib64" + +GCCMULTILIB_forcevariable = "--disable-multilib" +IMAGE_LINGUAS_forcevariable = "" + +# Blacklist toolchain recipes as a belt-and-suspenders way to use the external toolchain +PNBLACKLIST[glibc] = "Using external toolchain" +PNBLACKLIST[libgcc] = "Using external toolchain" +PNBLACKLIST[gcc-cross] = "Using external toolchain" +PNBLACKLIST[gcc-runtime] = "Using external toolchain" +PNBLACKLIST[gcc-sanitizers] = "Using external toolchain" + +PREFERRED_PROVIDER_linux-libc-headers = "external-arm-toolchain" +PREFERRED_PROVIDER_linux-libc-headers-dev = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "external-arm-toolchain" +PREFERRED_PROVIDER_glibc = "external-arm-toolchain" +PREFERRED_PROVIDER_libgcc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libc = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libc-locale = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libintl = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/libiconv = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/crypt = "external-arm-toolchain" +PREFERRED_PROVIDER_glibc-thread-db = "external-arm-toolchain" +PREFERRED_PROVIDER_glibc-mtrace = "external-arm-toolchain" +PREFERRED_PROVIDER_libc-mtrace = "external-arm-toolchain" +PREFERRED_PROVIDER_virtual/linux-libc-headers = "external-arm-toolchain" +TARGET_CPPFLAGS_prepend = " -isystem${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include " +TARGET_LDFLAGS_prepend = " -L${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/lib -Wl,-rpath-link,${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/lib " + +TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_HOST}" + +DISTRO_FEATURES_LIBC = "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-crypt \ + libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse \ + libc-getlogin libc-idn libc-inet-anl libc-libm libc-libm-big \ + libc-locales libc-locale-code libc-charsets \ + libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc \ + libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \ + libc-posix-wchar-io" + +ENABLE_BINARY_LOCALE_GENERATION = "0" +GLIBC_INTERNAL_USE_BINARY_LOCALE = "precompiled" +LIBCOVERRIDE = ":libc-glibc" + +ERROR_QA[type] ?= "list" +python toolchain_metadata_setup () { + import subprocess + if not isinstance(e, bb.event.ConfigParsed): + return + + d = e.data + l = d.createCopy() + l.finalize() + oe_import(l) + + external_toolchain = l.getVar('EXTERNAL_TOOLCHAIN', True) + if not external_toolchain or external_toolchain == 'UNDEFINED': + bb.fatal("Error: EXTERNAL_TOOLCHAIN must be set to the path to your arm toolchain") + + if not os.path.exists(external_toolchain): + bb.fatal("Error: EXTERNAL_TOOLCHAIN path '%s' does not exist" % external_toolchain) + + # The external toolchain may not have been built with the oe-core preferred + # gnu hash setting, so ensure that the corresponding sanity check is not an error. + error_qa = oe.data.typed_value('ERROR_QA', l) + if 'ldflags' in error_qa: + error_qa.remove('ldflags') + d.setVar('ERROR_QA', ' '.join(error_qa)) +} +addhandler toolchain_metadata_setup + +def populate_toolchain_links(d): + import errno + import os + from glob import glob + + d = d.createCopy() + d.finalize() + + pattern = bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/${TARGET_PREFIX}*', d) + files = glob(pattern) + if not files: + bb.fatal("Unable to populate toolchain binary symlinks") + + bindir = d.getVar('STAGING_BINDIR_TOOLCHAIN', True) + bb.mkdirhier(bindir) + for f in files: + base = os.path.basename(f) + newpath = os.path.join(bindir, base) + try: + os.symlink(f, newpath) + except OSError as exc: + if exc.errno == errno.EEXIST: + break + bb.fatal("Unable to populate toolchain binary symlink for %s: %s" % (newpath, exc)) + +require conf/distro/include/external-arm-toolchain-versions.incmeta-arm-toolchain/conf/layer.conf new file +15
-0@@ -0,0 +1,15 @@ +BBPATH .= ":${LAYERDIR}" +BBFILES += "\ + ${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend \ + " + +BBFILE_COLLECTIONS += "arm-toolchain" +BBFILE_PATTERN_arm-toolchain := "^${LAYERDIR}/" +BBFILE_PRIORITY_arm-toolchain = "30" + +LAYERSERIES_COMPAT_arm-toolchain = "zeus" + +# do not error out on bbappends for missing recipes +BB_DANGLINGAPPENDS_WARNONLY = "true" +meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb new file +666
-0@@ -0,0 +1,666 @@ +require recipes-core/glibc/glibc-package.inc + +INHIBIT_DEFAULT_DEPS = "1" +INHIBIT_PACKAGE_STRIP = "1" +INHIBIT_PACKAGE_DEBUG_SPLIT = "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 \ +" + +PROVIDES += "\ + linux-libc-headers \ + virtual/${TARGET_PREFIX}gcc \ + virtual/${TARGET_PREFIX}g++ \ + virtual/${TARGET_PREFIX}gcc-initial \ + virtual/${TARGET_PREFIX}binutils \ + binutils-cross-${TARGET_ARCH} \ + virtual/${TARGET_PREFIX}libc-for-gcc \ + virtual/${TARGET_PREFIX}compilerlibs \ + virtual/libc \ + virtual/libintl \ + virtual/libiconv \ + virtual/crypt \ + glibc-mtrace \ + glibc-thread-db \ + glibc \ + libc-mtrace \ + gcc-runtime \ + libgcc \ + libg2c \ + libg2c-dev \ + libssp \ + libssp-dev \ + libssp-staticdev \ + libgfortran \ + libgfortran-dev \ + libgfortran-staticdev \ + libmudflap \ + libmudflap-dev \ + libgomp \ + libgomp-dev \ + libgomp-staticdev \ + libitm \ + libitm-dev \ + libitm-staticdev \ + libquadmath \ + libquadmath-dev \ + libquadmath-staticdev \ + virtual/linux-libc-headers \ + libgcov-staticdev \ + virtual/libc-locale \ +" + +PV = "${EAT_VER_MAIN}" + +BINV = "${EAT_VER_GCC}" +TARGET_SYS = "${EAT_TARGET_SYS}" + +SRC_URI = "file://SUPPORTED" + +do_install() { + # Add stubs for files OE-core expects + install -d ${S}/nscd/ + touch ${S}/nscd/nscd.init + touch ${S}/nscd/nscd.conf + touch ${S}/nscd/nscd.service + touch ${S}/../makedbs.sh + + install -d ${D}${base_libdir} + install -d ${D}${base_sbindir} + install -d ${D}${bindir} + install -d ${D}${sbindir} + install -d ${D}${libdir} + install -d ${D}${libexecdir} + 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} + + CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/${EAT_LIBDIR}/* ${D}${base_libdir} + if [ -d ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/${EAT_TARGET_SYS} ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/${EAT_TARGET_SYS}/* ${D}${base_libdir} + else + if [ -f ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/ld-${EAT_VER_LIBC}.so ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/* ${D}${base_libdir} + else + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/*.so* ${D}${base_libdir} + fi + fi + if [ -d ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/${EAT_TARGET_SYS} ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}/* ${D}${libdir} + else + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/${EAT_LIBDIR}/* ${D}${libdir} + if [ ! -f ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/${EAT_LIBDIR}/ld-${EAT_VER_LIBC}.so ]; then + rm -rf ${D}${libdir}/*.so* + fi + fi + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/share/* ${D}${datadir} + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/* ${D}${includedir} + if [ -d ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/${EAT_TARGET_SYS} ]; then + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/include/${EAT_TARGET_SYS}/* ${D}${includedir} + rm -r ${D}${includedir}/${EAT_TARGET_SYS} + fi + + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/include/* ${D}${includedir} + ln -sf ../usr/include/c++ ${D}/include/c++ + + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/bin/* ${D}${bindir} + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/usr/sbin/* ${D}${sbindir} + cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/${EAT_TARGET_SYS}/libc/sbin/* ${D}${base_sbindir} + rm -rf ${D}${bindir}/gdbserver + sed -i -e 's#/arm/tools/gnu/bash/4.2/rhe6-x86_64##' ${D}${bindir}/tzselect + sed -i -e 's#/arm/tools/gnu/bash/4.2/rhe6-x86_64##' ${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}/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}/ + + # 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)}" + ln -sf ld-${EAT_VER_LIBC}.so ${D}${base_libdir}/${linker_name} + ln -sf ../../lib/librt.so.1 ${D}${libdir}/librt.so + ln -sf ../../lib/libcrypt.so.1 ${D}${libdir}/libcrypt.so + ln -sf ../../lib/libresolv.so.2 ${D}${libdir}/libresolv.so + ln -sf ../../lib/libnss_hesiod.so.2 ${D}${libdir}/libnss_hesiod.so + ln -sf ../../lib/libutil.so.1 ${D}${libdir}/libutil.so + ln -sf ../../lib/libBrokenLocale.so.1 ${D}${libdir}/libBrokenLocale.so + ln -sf ../../lib/libpthread.so.0 ${D}${libdir}/libpthread.so + ln -sf ../../lib/libthread_db.so.1 ${D}${libdir}/libthread_db.so + ln -sf ../../lib/libanl.so.1 ${D}${libdir}/libanl.so + ln -sf ../../lib/libdl.so.2 ${D}${libdir}/libdl.so + ln -sf ../../lib/libnss_db.so.2 ${D}${libdir}/libnss_db.so + ln -sf ../../lib/libnss_dns.so.2 ${D}${libdir}/libnss_dns.so + ln -sf ../../lib/libnss_files.so.2 ${D}${libdir}/libnss_files.so + ln -sf ../../lib/libnss_compat.so.2 ${D}${libdir}/libnss_compat.so + ln -sf ../../lib/libm.so.6 ${D}${libdir}/libm.so + + # remove potential .so duplicates from base_libdir + # for all symlinks created above in libdir + rm -f ${D}${base_libdir}/librt.so + rm -f ${D}${base_libdir}/libcrypt.so + rm -f ${D}${base_libdir}/libresolv.so + rm -f ${D}${base_libdir}/libnss_hesiod.so + rm -f ${D}${base_libdir}/libutil.so + rm -f ${D}${base_libdir}/libBrokenLocale.so + rm -f ${D}${base_libdir}/libpthread.so + rm -f ${D}${base_libdir}/libthread_db.so + rm -f ${D}${base_libdir}/libanl.so + rm -f ${D}${base_libdir}/libdl.so + rm -f ${D}${base_libdir}/libnss_db.so + rm -f ${D}${base_libdir}/libnss_dns.so + rm -f ${D}${base_libdir}/libnss_files.so + rm -f ${D}${base_libdir}/libnss_compat.so + rm -f ${D}${base_libdir}/libm.so + + # Move these completely to ${libdir} and delete duplicates in ${base_libdir} + for lib in asan atomic gfortran gomp itm lsan sanitizer stdc++ tsan ubsan; do + if [ -e ${D}${base_libdir}/lib${lib}.spec ] ; then + mv ${D}${base_libdir}/lib${lib}.spec ${D}${libdir} + fi + if [ -e ${D}${base_libdir}/lib${lib}.a ] ; then + mv ${D}${base_libdir}/lib${lib}.a ${D}${libdir} + fi + rm -f ${D}${base_libdir}/lib${lib}* + done + + # Clean up duplicate libs that are both in base_libdir and libdir + rm -f ${D}${libdir}/libgcc* + + # Besides ld-${EAT_VER_LIBC}.so, other libs can have duplicates like lib*-${EAT_VER_LIBC}.so + # Only remove them if both are regular files and are identical + for i in ${D}${base_libdir}/lib*-${EAT_VER_LIBC}.so; do + f=$(echo $i | sed 's/-${EAT_VER_LIBC}//') + l=$(ls $f.*) + if [ $(readlink -f $i ) = $l ]; then + echo "$i is a symlink of $l, keep it" + elif [ $(readlink -f $l ) = $i ]; then + echo "$l is a symlink of $i, keep it" + else + cmp -s $i $l + if [ $? -eq 0 ]; then + echo "$i is a duplicate of $l, remove it" + rm $i + else + echo "$i and $l are different files, keep them both" + fi + fi + done + + if [ -d ${D}${base_libdir}/arm-linux-gnueabi ]; then + rm -rf ${D}${base_libdir}/arm-linux-gnueabi + fi + + if [ -d ${D}${base_libdir}/ldscripts ]; then + rm -rf ${D}${base_libdir}/ldscripts + fi + + # Provided by libnsl2 + rm -rf ${D}${includedir}/rpcsvc/yppasswd.* + # Provided by quota + rm -rf ${D}${includedir}/rpcsvc/rquota.* + + if [ -f ${D}${libdir}/libc.so ];then + sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../${EAT_LIBDIR}#g" -e "s# /usr/${EAT_LIBDIR}/# /usr/lib/#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" -e "s# /${EAT_LIBDIR}/ld-linux# ../../${EAT_LIBDIR}/ld-linux#g" ${D}${libdir}/libc.so + sed -i -e "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${libdir}/libc.so + sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so + fi + + if [ -f ${D}${base_libdir}/libc.so ];then + sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../lib#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" "s# /${EAT_LIBDIR}/# /lib/#g" ${D}${base_libdir}/libc.so + if [ -f ${D}${base_libdir}/libc.so.6 ]; then + sed -i -e "s# /usr/${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${base_libdir}/libc.so.6 + fi + fi + + # Remove if empty + rmdir ${D}${bindir} || true + rmdir ${D}${sbindir} || true + rmdir ${D}${base_sbindir} || true +} + +# External toolchain doesn't provide multilib support so make corresponding +# install API as an empty API to avoid an unnecessary errors. +oe_multilib_header () { + return +} + +PACKAGES_DYNAMIC = "^locale-base-.* \ + ^glibc-gconv-.* ^glibc-charmap-.* ^glibc-localedata-.* ^glibc-binary-localedata-.* \ + ^${MLPREFIX}glibc-gconv$" + +# PACKAGES is split up according to the 'source' recipes/includes in OE-core +# Stylistic differences are kept to make copy/pasting easier. + +# From gcc-runtime.inc + +PACKAGES += "\ + gcc-runtime-dbg \ + libstdc++ \ + libstdc++-precompile-dev \ + libstdc++-dev \ + libstdc++-staticdev \ + libg2c \ + libg2c-dev \ + libssp \ + libssp-dev \ + libssp-staticdev \ + libmudflap \ + libmudflap-dev \ + libmudflap-staticdev \ + libquadmath \ + libquadmath-dev \ + libquadmath-staticdev \ + libgomp \ + libgomp-dev \ + libgomp-staticdev \ + libatomic \ + libatomic-dev \ + libatomic-staticdev \ + libitm \ + libitm-dev \ + libitm-staticdev \ +" + +# From gcc-sanitizers.inc + +PACKAGES += "gcc-sanitizers gcc-sanitizers-dbg" +PACKAGES += "libasan libubsan liblsan libtsan" +PACKAGES += "libasan-dev libubsan-dev liblsan-dev libtsan-dev" +PACKAGES += "libasan-staticdev libubsan-staticdev liblsan-staticdev libtsan-staticdev" + +# From libgfortran.inc: + +PACKAGES += "\ + libgfortran-dbg \ + libgfortran \ + libgfortran-dev \ + libgfortran-staticdev \ +" + +# libgcc.inc uses ${PN}, so replace that + +PACKAGES += "\ + libgcc \ + libgcc-dev \ + libgcc-dbg \ +" + +# ... and the leftovers + +PACKAGES =+ "\ + ${PN}-mtrace \ + libgcov-staticdev \ + linux-libc-headers \ + linux-libc-headers-dev \ +" + +INSANE_SKIP_${PN}-dbg = "staticdev" +INSANE_SKIP_${PN}-utils += "ldflags" +INSANE_SKIP_libstdc++ += "ldflags" +INSANE_SKIP_libgfortran += "ldflags" +INSANE_SKIP_libgcc += "ldflags dev-deps" +INSANE_SKIP_libgfortran += "ldflags dev-deps" +INSANE_SKIP_libstdc++ += "ldflags dev-deps" +INSANE_SKIP_libatomic += "ldflags" +INSANE_SKIP_libasan += "ldflags" +INSANE_SKIP_libubsan += "ldflags" +INSANE_SKIP_libssp += "ldflags" +INSANE_SKIP_libgomp += "ldflags" +INSANE_SKIP_libitm += "ldflags" +INSANE_SKIP_gdbserver += "ldflags" + +# OE-core has literally listed 'glibc' in LIBC_DEPENDENCIES :/ +RPROVIDES_${PN} = "glibc rtld(GNU_HASH)" +# Add runtime provides for the other libc* packages as well +RPROVIDES_${PN}-dev = "glibc-dev" +RPROVIDES_${PN}-doc = "glibc-doc" +RPROVIDES_${PN}-dbg = "glibc-dbg" +RPROVIDES_${PN}-pic = "glibc-pic" +RPROVIDES_${PN}-utils = "glibc-utils" +RPROVIDES_${PN}-mtrace = "glibc-mtrace libc-mtrace" + +PKG_${PN} = "glibc" +PKG_${PN}-dev = "glibc-dev" +PKG_${PN}-doc = "glibc-doc" +PKG_${PN}-dbg = "glibc-dbg" +PKG_${PN}-pic = "glibc-pic" +PKG_${PN}-utils = "glibc-utils" +PKG_${PN}-mtrace = "glibc-mtrace" +PKG_${PN}-gconv = "glibc-gconv" +PKG_${PN}-extra-nss = "glibc-extra-nss" +PKG_${PN}-thread-db = "glibc-thread-db" +PKG_${PN}-pcprofile = "glibc-pcprofile" +PKG_${PN}-staticdev = "glibc-staticdev" + +PKGV = "${EAT_VER_LIBC}" +PKGV_${PN} = "${EAT_VER_LIBC}" +PKGV_${PN}-dev = "${EAT_VER_LIBC}" +PKGV_${PN}-doc = "${EAT_VER_LIBC}" +PKGV_${PN}-dbg = "${EAT_VER_LIBC}" +PKGV_${PN}-pic = "${EAT_VER_LIBC}" +PKGV_${PN}-utils = "${EAT_VER_LIBC}" +PKGV_${PN}-mtrace = "${EAT_VER_LIBC}" +PKGV_${PN}-gconv = "${EAT_VER_LIBC}" +PKGV_${PN}-extra-nss = "${EAT_VER_LIBC}" +PKGV_${PN}-thread-db = "${EAT_VER_LIBC}" +PKGV_${PN}-pcprofile = "${EAT_VER_LIBC}" +PKGV_${PN}-staticdev = "${EAT_VER_LIBC}" +PKGV_catchsegv = "${EAT_VER_LIBC}" +PKGV_glibc-extra-nss = "${EAT_VER_LIBC}" +PKGV_glibc-thread-db = "${EAT_VER_LIBC}" + +PKGV_libmemusage = "${EAT_VER_LIBC}" +PKGV_libsegfault = "${EAT_VER_LIBC}" +PKGV_libsotruss = "${EAT_VER_LIBC}" +PKGV_sln = "${EAT_VER_LIBC}" +PKGV_nscd = "${EAT_VER_LIBC}" +PKGV_ldd = "${EAT_VER_LIBC}" + +PKGV_libasan-dev = "${EAT_VER_GCC}" +PKGV_libasan = "${EAT_VER_GCC}" +PKGV_libasan-staticdev = "${EAT_VER_GCC}" +PKGV_libatomic-dev = "${EAT_VER_GCC}" +PKGV_libatomic = "${EAT_VER_GCC}" +PKGV_libatomic-staticdev = "${EAT_VER_GCC}" +PKGV_libg2c-dev = "${EAT_VER_GCC}" +PKGV_libg2c = "${EAT_VER_GCC}" +PKGV_libgcc-dev = "${EAT_VER_GCC}" +PKGV_libgcc = "${EAT_VER_GCC}" +PKGV_libgfortran-dbg = "${EAT_VER_GCC}" +PKGV_libgfortran-dev = "${EAT_VER_GCC}" +PKGV_libgfortran = "${EAT_VER_GCC}" +PKGV_libgfortran-staticdev = "${EAT_VER_GCC}" +PKGV_libgomp-dev = "${EAT_VER_GCC}" +PKGV_libgomp = "${EAT_VER_GCC}" +PKGV_libgomp-staticdev = "${EAT_VER_GCC}" +PKGV_libitm-dev = "${EAT_VER_GCC}" +PKGV_libitm = "${EAT_VER_GCC}" +PKGV_libitm-staticdev = "${EAT_VER_GCC}" +PKGV_liblsan-dev = "${EAT_VER_GCC}" +PKGV_liblsan = "${EAT_VER_GCC}" +PKGV_liblsan-staticdev = "${EAT_VER_GCC}" +PKGV_libmudflap-dev = "${EAT_VER_GCC}" +PKGV_libmudflap = "${EAT_VER_GCC}" +PKGV_libmudflap-staticdev = "${EAT_VER_GCC}" +PKGV_libquadmath-dev = "${EAT_VER_GCC}" +PKGV_libquadmath = "${EAT_VER_GCC}" +PKGV_libquadmath-staticdev = "${EAT_VER_GCC}" +PKGV_libssp-dev = "${EAT_VER_GCC}" +PKGV_libssp = "${EAT_VER_GCC}" +PKGV_libssp-staticdev = "${EAT_VER_GCC}" +PKGV_libstdc++-dbg = "${EAT_VER_GCC}" +PKGV_libstdc++-dev = "${EAT_VER_GCC}" +PKGV_libstdc++ = "${EAT_VER_GCC}" +PKGV_libstdc++-precompile-dev = "${EAT_VER_GCC}" +PKGV_libstdc++-staticdev = "${EAT_VER_GCC}" +PKGV_libtsan-dev = "${EAT_VER_GCC}" +PKGV_libtsan = "${EAT_VER_GCC}" +PKGV_libtsan-staticdev = "${EAT_VER_GCC}" +PKGV_libubsan-dev = "${EAT_VER_GCC}" +PKGV_libubsan = "${EAT_VER_GCC}" +PKGV_libubsan-staticdev = "${EAT_VER_GCC}" + +PKGV_linux-libc-headers-dev = "${EAT_VER_KERNEL}" +PKGV_linux-libc-headers = "${EAT_VER_KERNEL}" + +PKGV_gdbserver = "${EAT_VER_GDBSERVER}" + +ALLOW_EMPTY_${PN}-mtrace = "1" +FILES_${PN}-mtrace = "${bindir}/mtrace" + +FILES_libgcov-staticdev = "${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcov.a" + +FILES_libsegfault = "${base_libdir}/libSegFault*" + +FILES_catchsegv = "${bindir}/catchsegv" +RDEPENDS_catchsegv = "libsegfault" + +RDEPENDS_ldd = "bash" +RDEPENDS_tzcode = "bash" + +# From libgfortran.inc: + +FILES_libgfortran = "${libdir}/libgfortran.so.*" +FILES_libgfortran-dev = "\ + ${libdir}/libgfortran*.so \ + ${libdir}/libgfortran.spec \ + ${libdir}/libgfortran.la \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/libgfortranbegin.* \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/libcaf_single* \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \ +" +FILES_libgfortran-staticdev = "${libdir}/libgfortran.a" + + +# From gcc-sanitizers.inc: + +FILES_libasan += "${libdir}/libasan.so.*" +FILES_libasan-dev += "\ + ${libdir}/libasan_preinit.o \ + ${libdir}/libasan.so \ + ${libdir}/libasan.la \ +" +FILES_libasan-staticdev += "${libdir}/libasan.a" + +FILES_libubsan += "${libdir}/libubsan.so.*" +FILES_libubsan-dev += "\ + ${libdir}/libubsan.so \ + ${libdir}/libubsan.la \ +" +FILES_libubsan-staticdev += "${libdir}/libubsan.a" + +FILES_liblsan += "${libdir}/liblsan.so.*" +FILES_liblsan-dev += "\ + ${libdir}/liblsan.so \ + ${libdir}/liblsan.la \ + ${libdir}/liblsan_preinit.o \ +" +FILES_liblsan-staticdev += "${libdir}/liblsan.a" + +FILES_libtsan += "${libdir}/libtsan.so.*" +FILES_libtsan-dev += "\ + ${libdir}/libtsan.so \ + ${libdir}/libtsan.la \ + ${libdir}/libtsan_*.o \ +" +FILES_libtsan-staticdev += "${libdir}/libtsan.a" + +FILES_gcc-sanitizers = "${libdir}/*.spec ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/sanitizer/*.h" + +# From libgcc.inc: + +FILES_libgcc = "${base_libdir}/libgcc_s.so.1" + +FILES_libgcc-dev = "\ + ${base_libdir}/libgcc*.so \ + ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ + ${libdir}/${TARGET_SYS}/${BINV}* \ + ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include \ +" + +FILES_linux-libc-headers = "" +FILES_linux-libc-headers-dev = "\ + ${includedir}/asm* \ + ${includedir}/linux \ + ${includedir}/mtd \ + ${includedir}/rdma \ + ${includedir}/scsi \ + ${includedir}/sound \ + ${includedir}/video \ +" +FILES_${PN} += "\ + ${libdir}/bin \ + ${libdir}/locale \ + ${libdir}/gconv/gconv-modules \ + ${datadir}/zoneinfo \ + ${base_libdir}/libcrypt*.so.* \ + ${base_libdir}/libcrypt-*.so \ + ${base_libdir}/libc.so.* \ + ${base_libdir}/libc-*.so \ + ${base_libdir}/libm.so.* \ + ${base_libdir}/libmemusage.so \ + ${base_libdir}/libm-*.so \ + ${base_libdir}/ld*.so.* \ + ${base_libdir}/ld-*.so \ + ${base_libdir}/libpthread*.so.* \ + ${base_libdir}/libpthread*.so \ + ${base_libdir}/libpthread-*.so \ + ${base_libdir}/libresolv*.so.* \ + ${base_libdir}/libresolv-*.so \ + ${base_libdir}/librt*.so.* \ + ${base_libdir}/librt-*.so \ + ${base_libdir}/libutil*.so.* \ + ${base_libdir}/libutil-*.so \ + ${base_libdir}/libnss_files*.so.* \ + ${base_libdir}/libnss_files-*.so \ + ${base_libdir}/libnss_compat*.so.* \ + ${base_libdir}/libnss_compat-*.so \ + ${base_libdir}/libnss_dns*.so.* \ + ${base_libdir}/libnss_dns-*.so \ + ${base_libdir}/libnss_nis*.so.* \ + ${base_libdir}/libnss_nisplus-*.so \ + ${base_libdir}/libnss_nisplus*.so.* \ + ${base_libdir}/libnss_nis-*.so \ + ${base_libdir}/libnss_hesiod*.so.* \ + ${base_libdir}/libnss_hesiod-*.so \ + ${base_libdir}/libdl*.so.* \ + ${base_libdir}/libdl-*.so \ + ${base_libdir}/libanl*.so.* \ + ${base_libdir}/libanl-*.so \ + ${base_libdir}/libBrokenLocale*.so.* \ + ${base_libdir}/libBrokenLocale-*.so \ + ${base_libdir}/libthread_db*.so.* \ + ${base_libdir}/libthread_db-*.so \ + ${base_libdir}/libmemusage.so \ + ${base_libdir}/libSegFault.so \ + ${base_libdir}/libpcprofile.so \ + " + +FILES_${PN}-dbg += "${base_libdir}/debug" + +# From gcc-runtime.inc + +# include python debugging scripts +FILES_gcc-runtime-dbg += "\ + ${libdir}/libstdc++.so.*-gdb.py \ + ${datadir}/gcc-${BINV}/python/libstdcxx \ +" + +FILES_libg2c = "${target_libdir}/libg2c.so.*" +SUMMARY_libg2c = "Companion runtime library for g77" +FILES_libg2c-dev = "\ + ${libdir}/libg2c.so \ + ${libdir}/libg2c.a \ + ${libdir}/libfrtbegin.a \ +" +SUMMARY_libg2c-dev = "Companion runtime library for g77 - development files" + +FILES_libstdc++ = "${libdir}/libstdc++.so.*" +SUMMARY_libstdc++ = "GNU standard C++ library" +FILES_libstdc++-dev = "\ + /include/c++ \ + ${includedir}/c++/ \ + ${libdir}/libstdc++.so \ + ${libdir}/libstdc++*.la \ + ${libdir}/libsupc++.la \ +" +SUMMARY_libstdc++-dev = "GNU standard C++ library - development files" + +FILES_libstdc++-staticdev = "\ + ${libdir}/libstdc++*.a \ + ${libdir}/libsupc++.a \ +" +SUMMARY_libstdc++-staticdev = "GNU standard C++ library - static development files" + +FILES_libstdc++-precompile-dev = "${includedir}/c++/${TARGET_SYS}/bits/*.gch" +SUMMARY_libstdc++-precompile-dev = "GNU standard C++ library - precompiled header files" + +FILES_libssp = "${libdir}/libssp.so.*" +SUMMARY_libssp = "GNU stack smashing protection library" +FILES_libssp-dev = "\ + ${libdir}/libssp*.so \ + ${libdir}/libssp*_nonshared.a \ + ${libdir}/libssp*.la \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ssp \ +" +SUMMARY_libssp-dev = "GNU stack smashing protection library - development files" +FILES_libssp-staticdev = "${libdir}/libssp*.a" +SUMMARY_libssp-staticdev = "GNU stack smashing protection library - static development files" + +FILES_libquadmath = "${libdir}/libquadmath*.so.*" +SUMMARY_libquadmath = "GNU quad-precision math library" +FILES_libquadmath-dev = "\ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/quadmath* \ + ${libdir}/libquadmath*.so \ + ${libdir}/libquadmath.la \ +" +SUMMARY_libquadmath-dev = "GNU quad-precision math library - development files" +FILES_libquadmath-staticdev = "${libdir}/libquadmath.a" +SUMMARY_libquadmath-staticdev = "GNU quad-precision math library - static development files" + +# NOTE: mudflap has been removed as of gcc 4.9 and has been superseded by the address sanitiser +FILES_libmudflap = "${libdir}/libmudflap*.so.*" +SUMMARY_libmudflap = "Pointer debugging library for gcc" +FILES_libmudflap-dev = "\ + ${libdir}/libmudflap*.so \ + ${libdir}/libmudflap.la \ +" +SUMMARY_libmudflap-dev = "Pointer debugging library for gcc - development files" +FILES_libmudflap-staticdev = "${libdir}/libmudflap.a" +SUMMARY_libmudflap-staticdev = "Pointer debugging library for gcc - static development files" + +FILES_libgomp = "${libdir}/libgomp*${SOLIBS}" +SUMMARY_libgomp = "GNU OpenMP parallel programming library" +FILES_libgomp-dev = "\ + ${libdir}/libgomp*${SOLIBSDEV} \ + ${libdir}/libgomp*.la \ + ${libdir}/libgomp.spec \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/omp.h \ + ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/openacc.h \ +" +SUMMARY_libgomp-dev = "GNU OpenMP parallel programming library - development files" +FILES_libgomp-staticdev = "${libdir}/libgomp*.a" +SUMMARY_libgomp-staticdev = "GNU OpenMP parallel programming library - static development files" + +FILES_libatomic = "${libdir}/libatomic.so.*" +SUMMARY_libatomic = "GNU C++11 atomics support library" +FILES_libatomic-dev = "\ + ${libdir}/libatomic.so \ + ${libdir}/libatomic.la \ +" +SUMMARY_libatomic-dev = "GNU C++11 atomics support library - development files" +FILES_libatomic-staticdev = "${libdir}/libatomic.a" +SUMMARY_libatomic-staticdev = "GNU C++11 atomics support library - static development files" + +FILES_libitm = "${libdir}/libitm.so.*" +SUMMARY_libitm = "GNU transactional memory support library" +FILES_libitm-dev = "\ + ${libdir}/libitm.so \ + ${libdir}/libitm.la \ + ${libdir}/libitm.spec \ +" +SUMMARY_libitm-dev = "GNU transactional memory support library - development files" +FILES_libitm-staticdev = "${libdir}/libitm.a" +SUMMARY_libitm-staticdev = "GNU transactional memory support library - static development files" + +EAT_VER_MAIN ??= "" + + +python () { + if not d.getVar("EAT_VER_MAIN", False): + raise bb.parse.SkipPackage("External ARM toolchain not configured (EAT_VER_MAIN not set).") + import re + notglibc = (re.match('.*uclibc$', d.getVar('TARGET_OS', True)) != None) or (re.match('.*musl$', d.getVar('TARGET_OS', True)) != None) + if notglibc: + raise bb.parse.SkipPackage("incompatible with target %s" % + d.getVar('TARGET_OS', True)) +}meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED new file +1
-0@@ -0,0 +1 @@ +POSIXmeta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2.inc new file +114
-0@@ -0,0 +1,114 @@ +require recipes-devtools/gcc/gcc-common.inc + +BASEPV = "8.2" +PV = "arm-${BASEPV}" + +MMYY = "19.01" +RELEASE = "20${MMYY}" +PR = "r${RELEASE}" +BINV = "${BASEPV}.1" + +FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-${BASEPV}:${FILE_DIRNAME}/gcc-${BASEPV}/backport:" + +DEPENDS =+ "mpfr gmp libmpc zlib flex-native" +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native" + +LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" + +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ + file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ + file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ + file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ +" + +#BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2" +SRCREV = "1a721bce9532193e63acdcdb56fc16e8ac70b20a" +BASEURI ?= "git://git.linaro.org/toolchain/gcc.git;protocol=https;branch=linaro-local/ARM/arm-8-branch" + +SRC_URI = "\ + ${BASEURI} \ + file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ + file://0003-gcc-poison-system-directories.patch \ + file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ + file://0006-64-bit-multilib-hack.patch \ + file://0007-optional-libstdc.patch \ + file://0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ + file://0009-COLLECT_GCC_OPTIONS.patch \ + file://0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ + file://0011-fortran-cross-compile-hack.patch \ + file://0012-cpp-honor-sysroot.patch \ + file://0013-MIPS64-Default-to-N64-ABI.patch \ + file://0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ + file://0015-gcc-Fix-argument-list-too-long-error.patch \ + file://0016-Disable-sdt.patch \ + file://0017-libtool.patch \ + file://0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ + file://0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ + file://0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ + file://0021-export-CPP.patch \ + file://0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \ + file://0023-Ensure-target-gcc-headers-can-be-included.patch \ + file://0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ + file://0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ + file://0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ + file://0027-aarch64-Add-support-for-musl-ldso.patch \ + file://0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ + file://0029-handle-sysroot-support-for-nativesdk-gcc.patch \ + file://0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ + file://0031-Fix-various-_FOR_BUILD-and-related-variables.patch \ + file://0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ + file://0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ + file://0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch \ + file://0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ + file://0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ + file://0037-sync-gcc-stddef.h-with-musl.patch \ + file://0038-fix-segmentation-fault-in-precompiled-header-generat.patch \ + file://0039-Fix-for-testsuite-failure.patch \ + file://0040-Re-introduce-spe-commandline-options.patch \ + file://0041-ARC-fix-spec-gen.patch \ + file://0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch \ + file://0043-riscv-Disable-multilib-for-OE.patch \ + ${BACKPORTS} \ +" +BACKPORTS = "\ +" + +S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" +#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}" +B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" + +# Language Overrides +FORTRAN = "" +JAVA = "" + +LTO = "--enable-lto" +SSP ?= "--disable-libssp" +SSP_mingw32 = "--enable-libssp" + +EXTRA_OECONF_BASE = "\ + ${LTO} \ + ${SSP} \ + --enable-libitm \ + --disable-bootstrap \ + --disable-libmudflap \ + --with-system-zlib \ + ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \ + --enable-linker-build-id \ + --with-ppl=no \ + --with-cloog=no \ + --enable-checking=release \ + --enable-cheaders=c_global \ + --without-isl \ +" + +EXTRA_OECONF_append_aarchilp32 = " --with-abi=ilp32" + +EXTRA_OECONF_PATHS = "\ + --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ + --with-sysroot=/not/exist \ + --with-build-sysroot=${STAGING_DIR_TARGET} \ +"meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42
-0@@ -0,0 +1,42 @@ +From b752fb2b6d6f6da68da5386b96abf0d74cd4bbe6 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 08:37:11 +0400 +Subject: [PATCH 01/39] gcc-4.3.1: ARCH_FLAGS_FOR_TARGET + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [embedded specific] +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 69c99e99cca..517fb70192e 100755 +--- a/configure ++++ b/configure +@@ -7511,7 +7511,7 @@ fi + # for target_alias and gcc doesn't manage it consistently. + target_configargs="--cache-file=./config.cache ${target_configargs}" + +-FLAGS_FOR_TARGET= ++FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" + case " $target_configdirs " in + *" newlib "*) + case " $target_configargs " in +diff --git a/configure.ac b/configure.ac +index a1edc369a27..f8c254f1fac 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3100,7 +3100,7 @@ fi + # for target_alias and gcc doesn't manage it consistently. + target_configargs="--cache-file=./config.cache ${target_configargs}" + +-FLAGS_FOR_TARGET= ++FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" + case " $target_configdirs " in + *" newlib "*) + case " $target_configargs " in +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0003-gcc-poison-system-directories.patch new file +194
-0@@ -0,0 +1,194 @@ +From 48c670d2678e0323d88eb72205e039f393cabe05 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 08:59:00 +0400 +Subject: [PATCH 03/39] gcc: poison-system-directories + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [distribution: codesourcery] +--- + gcc/common.opt | 4 ++++ + gcc/config.in | 6 ++++++ + gcc/configure | 16 ++++++++++++++++ + gcc/configure.ac | 10 ++++++++++ + gcc/doc/invoke.texi | 9 +++++++++ + gcc/gcc.c | 2 ++ + gcc/incpath.c | 19 +++++++++++++++++++ + 7 files changed, 66 insertions(+) + +diff --git a/gcc/common.opt b/gcc/common.opt +index d6ef85928f3..7b29efe3882 100644 +--- a/gcc/common.opt ++++ b/gcc/common.opt +@@ -679,6 +679,10 @@ Wreturn-local-addr + Common Var(warn_return_local_addr) Init(1) Warning + Warn about returning a pointer/reference to a local or temporary variable. + ++Wpoison-system-directories ++Common Var(flag_poison_system_directories) Init(1) Warning ++Warn for -I and -L options using system directories if cross compiling ++ + Wshadow + Common Var(warn_shadow) Warning + Warn when one variable shadows another. Same as -Wshadow=global. +diff --git a/gcc/config.in b/gcc/config.in +index 5bccb408016..1c784a8276b 100644 +--- a/gcc/config.in ++++ b/gcc/config.in +@@ -194,6 +194,12 @@ + #endif + + ++/* Define to warn for use of native system header directories */ ++#ifndef USED_FOR_TARGET ++#undef ENABLE_POISON_SYSTEM_DIRECTORIES ++#endif ++ ++ + /* Define if you want all operations on RTL (the basic data structure of the + optimizer and back end) to be checked for dynamic type safety at runtime. + This is quite expensive. */ +diff --git a/gcc/configure b/gcc/configure +index 5c345ce0fd7..cafd05fd150 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -953,6 +953,7 @@ with_system_zlib + enable_maintainer_mode + enable_link_mutex + enable_version_specific_runtime_libs ++enable_poison_system_directories + enable_plugin + enable_host_shared + enable_libquadmath_support +@@ -1696,6 +1697,8 @@ Optional Features: + --enable-version-specific-runtime-libs + specify that runtime libraries should be installed + in a compiler-specific directory ++ --enable-poison-system-directories ++ warn for use of native system header directories + --enable-plugin enable plugin support + --enable-host-shared build host code as shared libraries + --disable-libquadmath-support +@@ -29715,6 +29718,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then : + fi + + ++# Check whether --enable-poison-system-directories was given. ++if test "${enable_poison_system_directories+set}" = set; then : ++ enableval=$enable_poison_system_directories; ++else ++ enable_poison_system_directories=no ++fi ++ ++if test "x${enable_poison_system_directories}" = "xyes"; then ++ ++$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h ++ ++fi ++ + # Substitute configuration variables + + +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 65dbf1f2f80..dd5b38195ce 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -6341,6 +6341,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs, + [specify that runtime libraries should be + installed in a compiler-specific directory])]) + ++AC_ARG_ENABLE([poison-system-directories], ++ AS_HELP_STRING([--enable-poison-system-directories], ++ [warn for use of native system header directories]),, ++ [enable_poison_system_directories=no]) ++if test "x${enable_poison_system_directories}" = "xyes"; then ++ AC_DEFINE([ENABLE_POISON_SYSTEM_DIRECTORIES], ++ [1], ++ [Define to warn for use of native system header directories]) ++fi ++ + # Substitute configuration variables + AC_SUBST(subdirs) + AC_SUBST(srcdir) +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi +index 255149fcfb8..cb71b60fe3c 100644 +--- a/gcc/doc/invoke.texi ++++ b/gcc/doc/invoke.texi +@@ -303,6 +303,7 @@ Objective-C and Objective-C++ Dialects}. + -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wpadded @gol + -Wparentheses -Wno-pedantic-ms-format @gol + -Wplacement-new -Wplacement-new=@var{n} @gol ++-Wno-poison-system-directories @gol + -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast @gol + -Wno-pragmas -Wredundant-decls -Wrestrict -Wno-return-local-addr @gol + -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar @gol +@@ -5712,6 +5713,14 @@ made up of data only and thus requires no special treatment. But, for + most targets, it is made up of code and thus requires the stack to be + made executable in order for the program to work properly. + ++@item -Wno-poison-system-directories ++@opindex Wno-poison-system-directories ++Do not warn for @option{-I} or @option{-L} options using system ++directories such as @file{/usr/include} when cross compiling. This ++option is intended for use in chroot environments when such ++directories contain the correct headers and libraries for the target ++system rather than the host. ++ + @item -Wfloat-equal + @opindex Wfloat-equal + @opindex Wno-float-equal +diff --git a/gcc/gcc.c b/gcc/gcc.c +index a716f708259..02b3cd39fc2 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -1037,6 +1037,8 @@ proper position among the other output files. */ + "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ + "%X %{o*} %{e*} %{N} %{n} %{r}\ + %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} \ ++ %{Wno-poison-system-directories:--no-poison-system-directories} \ ++ %{Werror=poison-system-directories:--error-poison-system-directories} \ + %{static|no-pie|static-pie:} %{L*} %(mfwrap) %(link_libgcc) " \ + VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o " CHKP_SPEC " \ + %{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\ +diff --git a/gcc/incpath.c b/gcc/incpath.c +index b11c6a57939..e3b7a21966f 100644 +--- a/gcc/incpath.c ++++ b/gcc/incpath.c +@@ -26,6 +26,7 @@ + #include "intl.h" + #include "incpath.h" + #include "cppdefault.h" ++#include "diagnostic-core.h" + + /* Microsoft Windows does not natively support inodes. + VMS has non-numeric inodes. */ +@@ -393,6 +394,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) + } + fprintf (stderr, _("End of search list.\n")); + } ++ ++#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES ++ if (flag_poison_system_directories) ++ { ++ struct cpp_dir *p; ++ ++ for (p = heads[INC_QUOTE]; p; p = p->next) ++ { ++ if ((!strncmp (p->name, "/usr/include", 12)) ++ || (!strncmp (p->name, "/usr/local/include", 18)) ++ || (!strncmp (p->name, "/usr/X11R6/include", 18)) ++ || (!strncmp (p->name, "/sw/include", 11)) ++ || (!strncmp (p->name, "/opt/include", 12))) ++ warning (OPT_Wpoison_system_directories, ++ "include location \"%s\" is unsafe for " ++ "cross-compilation", ++ p->name); ++ } ++ } ++#endif + } + + /* Use given -I paths for #include "..." but not #include <...>, and +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73
-0@@ -0,0 +1,73 @@ +From ae3fe6e5e50937de6e4223ca90810187372a8cf5 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:08:31 +0400 +Subject: [PATCH 05/39] gcc-4.3.3: SYSROOT_CFLAGS_FOR_TARGET + +Before committing, I noticed that PR/32161 was marked as a dup of PR/32009, but my previous patch did not fix it. + +This alternative patch is better because it lets you just use CFLAGS_FOR_TARGET to set the compilation flags for libgcc. Since bootstrapped target libraries are never compiled with the native compiler, it makes little sense to use different flags for stage1 and later stages. And it also makes little sense to use a different variable than CFLAGS_FOR_TARGET. + +Other changes I had to do include: + +- moving the creation of default CFLAGS_FOR_TARGET from Makefile.am to configure.ac, because otherwise the BOOT_CFLAGS are substituted into CFLAGS_FOR_TARGET (which is "-O2 -g $(CFLAGS)") via $(CFLAGS). It is also cleaner this way though. + +- passing the right CFLAGS to configure scripts as exported environment variables + +I also stopped passing LIBCFLAGS to configure scripts since they are unused in the whole src tree. And I updated the documentation as H-P reminded me to do. + +Bootstrapped/regtested i686-pc-linux-gnu, will commit to 4.4 shortly. Ok for 4.3? + +Signed-off-by: Paolo Bonzini <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + configure | 32 ++++++++++++++++++++++++++++++++ + 1 file changed, 32 insertions(+) + +diff --git a/configure b/configure +index 517fb70192e..acd2b97df40 100755 +--- a/configure ++++ b/configure +@@ -6772,6 +6772,38 @@ fi + + + ++# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS ++# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS ++# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). ++# We want to ensure that TARGET libraries (which we know are built with ++# gcc) are built with "-O2 -g", so include those options when setting ++# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. ++if test "x$CFLAGS_FOR_TARGET" = x; then ++ CFLAGS_FOR_TARGET=$CFLAGS ++ case " $CFLAGS " in ++ *" -O2 "*) ;; ++ *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; ++ esac ++ case " $CFLAGS " in ++ *" -g "* | *" -g3 "*) ;; ++ *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; ++ esac ++fi ++ ++ ++if test "x$CXXFLAGS_FOR_TARGET" = x; then ++ CXXFLAGS_FOR_TARGET=$CXXFLAGS ++ case " $CXXFLAGS " in ++ *" -O2 "*) ;; ++ *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; ++ esac ++ case " $CXXFLAGS " in ++ *" -g "* | *" -g3 "*) ;; ++ *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; ++ esac ++fi ++ ++ + # Handle --with-headers=XXX. If the value is not "yes", the contents of + # the named directory are copied to $(tooldir)/sys-include. + if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0006-64-bit-multilib-hack.patch new file +85
-0@@ -0,0 +1,85 @@ +From 89af3b7399313b337f06c19cc2d787aa16d27711 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:10:06 +0400 +Subject: [PATCH 06/39] 64-bit multilib hack. + +GCC has internal multilib handling code but it assumes a very specific rigid directory +layout. The build system implementation of multilib layout is very generic and allows +complete customisation of the library directories. + +This patch is a partial solution to allow any custom directories to be passed into gcc +and handled correctly. It forces gcc to use the base_libdir (which is the current +directory, "."). We need to do this for each multilib that is configured as we don't +know which compiler options may be being passed into the compiler. Since we have a compiler +per mulitlib at this point that isn't an issue. + +The one problem is the target compiler is only going to work for the default multlilib at +this point. Ideally we'd figure out which multilibs were being enabled with which paths +and be able to patch these entries with a complete set of correct paths but this we +don't have such code at this point. This is something the target gcc recipe should do +and override these platform defaults in its build config. + +RP 15/8/11 + +Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Elvis Dowson <[email protected]> + +Upstream-Status: Pending +--- + gcc/config/i386/t-linux64 | 6 ++---- + gcc/config/mips/t-linux64 | 10 +++------- + gcc/config/rs6000/t-linux64 | 5 ++--- + 3 files changed, 7 insertions(+), 14 deletions(-) + +diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64 +index 8ea0faff369..266c6008004 100644 +--- a/gcc/config/i386/t-linux64 ++++ b/gcc/config/i386/t-linux64 +@@ -32,7 +32,5 @@ + # + comma=, + MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG)) +-MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS))) +-MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu) +-MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu) +-MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32) ++MULTILIB_DIRNAMES = . . ++MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) +diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64 +index c017b7d04c5..126892cf40b 100644 +--- a/gcc/config/mips/t-linux64 ++++ b/gcc/config/mips/t-linux64 +@@ -17,10 +17,6 @@ + # <http://www.gnu.org/licenses/>. + + MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64 +-MULTILIB_DIRNAMES = n32 32 64 +-MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el) +-MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft) +-MULTILIB_OSDIRNAMES = \ +- ../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \ +- ../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \ +- ../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT)) ++MULTILIB_DIRNAMES = . . . ++MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) ++ +diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64 +index 0faa2a02df4..13fd8ca971e 100644 +--- a/gcc/config/rs6000/t-linux64 ++++ b/gcc/config/rs6000/t-linux64 +@@ -26,10 +26,9 @@ + # MULTILIB_OSDIRNAMES according to what is found on the target. + + MULTILIB_OPTIONS := m64/m32 +-MULTILIB_DIRNAMES := 64 32 ++MULTILIB_DIRNAMES := . . + MULTILIB_EXTRA_OPTS := +-MULTILIB_OSDIRNAMES := m64=../lib64$(call if_multiarch,:powerpc64-linux-gnu) +-MULTILIB_OSDIRNAMES += m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:powerpc-linux-gnu) ++MULTILIB_OSDIRNAMES := ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) + + rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c + $(COMPILE) $< +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0007-optional-libstdc.patch new file +125
-0@@ -0,0 +1,125 @@ +From fb7df63e9548c29b70601d642a1850fc455f8565 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:12:56 +0400 +Subject: [PATCH 07/39] optional libstdc + +gcc-runtime builds libstdc++ separately from gcc-cross-*. Its configure tests using g++ +will not run correctly since by default the linker will try to link against libstdc++ +which shouldn't exist yet. We need an option to disable -lstdc++ +option whilst leaving -lc, -lgcc and other automatic library dependencies added by gcc +driver. This patch adds such an option which only disables the -lstdc++. + +A "standard" gcc build uses xgcc and hence avoids this. We should ask upstream how to +do this officially, the likely answer is don't build libstdc++ separately. + +RP 29/6/10 + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [embedded specific] +--- + gcc/c-family/c.opt | 4 ++++ + gcc/cp/g++spec.c | 1 + + gcc/doc/invoke.texi | 32 +++++++++++++++++++++++++++++++- + gcc/gcc.c | 1 + + 4 files changed, 37 insertions(+), 1 deletion(-) + +diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt +index 5013501b232..6312f2c8f90 100644 +--- a/gcc/c-family/c.opt ++++ b/gcc/c-family/c.opt +@@ -1900,6 +1900,10 @@ nostdinc++ + C++ ObjC++ + Do not search standard system include directories for C++. + ++nostdlib++ ++Driver ++Do not link standard C++ runtime library ++ + o + C ObjC C++ ObjC++ Joined Separate + ; Documented in common.opt +diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c +index 443a1746da3..e9b51be62ef 100644 +--- a/gcc/cp/g++spec.c ++++ b/gcc/cp/g++spec.c +@@ -137,6 +137,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, + switch (decoded_options[i].opt_index) + { + case OPT_nostdlib: ++ case OPT_nostdlib__: + case OPT_nodefaultlibs: + library = -1; + break; +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi +index cb71b60fe3c..b0d481e3a30 100644 +--- a/gcc/doc/invoke.texi ++++ b/gcc/doc/invoke.texi +@@ -211,6 +211,9 @@ in the following sections. + -fno-weak -nostdinc++ @gol + -fvisibility-inlines-hidden @gol + -fvisibility-ms-compat @gol ++-fvtable-verify=@r{[}std@r{|}preinit@r{|}none@r{]} @gol ++-fvtv-counts -fvtv-debug @gol ++-nostdlib++ @gol + -fext-numeric-literals @gol + -Wabi=@var{n} -Wabi-tag -Wconversion-null -Wctor-dtor-privacy @gol + -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance @gol +@@ -509,7 +512,7 @@ Objective-C and Objective-C++ Dialects}. + -s -static -static-pie -static-libgcc -static-libstdc++ @gol + -static-libasan -static-libtsan -static-liblsan -static-libubsan @gol + -static-libmpx -static-libmpxwrappers @gol +--shared -shared-libgcc -symbolic @gol ++-shared -shared-libgcc -symbolic -nostdlib++ @gol + -T @var{script} -Wl,@var{option} -Xlinker @var{option} @gol + -u @var{symbol} -z @var{keyword}} + +@@ -12331,6 +12334,33 @@ library subroutines. + constructors are called; @pxref{Collect2,,@code{collect2}, gccint, + GNU Compiler Collection (GCC) Internals}.) + ++@item -nostdlib++ ++@opindex nostdlib++ ++Do not use the standard system C++ runtime libraries when linking. ++Only the libraries you specify will be passed to the linker. ++ ++@cindex @option{-lgcc}, use with @option{-nostdlib} ++@cindex @option{-nostdlib} and unresolved references ++@cindex unresolved references and @option{-nostdlib} ++@cindex @option{-lgcc}, use with @option{-nodefaultlibs} ++@cindex @option{-nodefaultlibs} and unresolved references ++@cindex unresolved references and @option{-nodefaultlibs} ++One of the standard libraries bypassed by @option{-nostdlib} and ++@option{-nodefaultlibs} is @file{libgcc.a}, a library of internal subroutines ++which GCC uses to overcome shortcomings of particular machines, or special ++needs for some languages. ++(@xref{Interface,,Interfacing to GCC Output,gccint,GNU Compiler ++Collection (GCC) Internals}, ++for more discussion of @file{libgcc.a}.) ++In most cases, you need @file{libgcc.a} even when you want to avoid ++other standard libraries. In other words, when you specify @option{-nostdlib} ++or @option{-nodefaultlibs} you should usually specify @option{-lgcc} as well. ++This ensures that you have no unresolved references to internal GCC ++library subroutines. ++(An example of such an internal subroutine is @code{__main}, used to ensure C++ ++constructors are called; @pxref{Collect2,,@code{collect2}, gccint, ++GNU Compiler Collection (GCC) Internals}.) ++ + @item -pie + @opindex pie + Produce a dynamically linked position independent executable on targets +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 02b3cd39fc2..8cd27a5dad5 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -1047,6 +1047,7 @@ proper position among the other output files. */ + %(mflib) " STACK_SPLIT_SPEC "\ + %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} " SANITIZER_SPEC " \ + %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\ ++ %{!nostdlib++:}\ + %{!nostdlib:%{!nostartfiles:%E}} %{T*} \n%(post_link) }}}}}}" + #endif + +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0008-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59
-0@@ -0,0 +1,59 @@ +From 11eb97efccb90b830c84ed077a25b1a15ad3335b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:14:20 +0400 +Subject: [PATCH 08/39] gcc: disable MASK_RELAX_PIC_CALLS bit + +The new feature added after 4.3.3 +"http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html" +will cause cc1plus eat up all the system memory when build webkit-gtk. +The function mips_get_pic_call_symbol keeps on recursively calling itself. +Disable this feature to walk aside the bug. + +Signed-off-by: Dongxiao Xu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [configuration] +--- + gcc/configure | 7 ------- + gcc/configure.ac | 7 ------- + 2 files changed, 14 deletions(-) + +diff --git a/gcc/configure b/gcc/configure +index cafd05fd150..19ba051d673 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -27553,13 +27553,6 @@ $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; + rm -f conftest.* + fi + fi +- if test $gcc_cv_as_ld_jalr_reloc = yes; then +- if test x$target_cpu_default = x; then +- target_cpu_default=MASK_RELAX_PIC_CALLS +- else +- target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" +- fi +- fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 + $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } + +diff --git a/gcc/configure.ac b/gcc/configure.ac +index dd5b38195ce..066dfe19bb6 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -4798,13 +4798,6 @@ x: + rm -f conftest.* + fi + fi +- if test $gcc_cv_as_ld_jalr_reloc = yes; then +- if test x$target_cpu_default = x; then +- target_cpu_default=MASK_RELAX_PIC_CALLS +- else +- target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" +- fi +- fi + AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc) + + AC_CACHE_CHECK([linker for .eh_frame personality relaxation], +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0009-COLLECT_GCC_OPTIONS.patch new file +38
-0@@ -0,0 +1,38 @@ +From e19d25847f08eeb5ef26a031fa5eff732bfd0d43 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:16:28 +0400 +Subject: [PATCH 09/39] COLLECT_GCC_OPTIONS + +This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to +invoke collect2. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/gcc.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 8cd27a5dad5..d355d65583a 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -4677,6 +4677,15 @@ set_collect_gcc_options (void) + sizeof ("COLLECT_GCC_OPTIONS=") - 1); + + first_time = TRUE; ++#ifdef HAVE_LD_SYSROOT ++ if (target_system_root_changed && target_system_root) ++ { ++ obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); ++ obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); ++ obstack_grow (&collect_obstack, "'", 1); ++ first_time = FALSE; ++ } ++#endif + for (i = 0; (int) i < n_switches; i++) + { + const char *const *args; +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0010-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96
-0@@ -0,0 +1,96 @@ +From 265cb883c310f3bb7e49fd13b81362476fbeb6c1 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:17:25 +0400 +Subject: [PATCH 10/39] Use the defaults.h in ${B} instead of ${S}, and t-oe in + ${B} + +Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that +the source can be shared between gcc-cross-initial, +gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending + +While compiling gcc-crosssdk-initial-x86_64 on some host, there is +occasionally failure that test the existance of default.h doesn't +work, the reason is tm_include_list='** defaults.h' rather than +tm_include_list='** ./defaults.h' + +So we add the test condition for this situation. +Signed-off-by: Hongxu Jia <[email protected]> +--- + gcc/Makefile.in | 2 +- + gcc/configure | 4 ++-- + gcc/configure.ac | 4 ++-- + gcc/mkconfig.sh | 4 ++-- + 4 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 20bee0494b1..1367136bfac 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -538,7 +538,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ + TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@ + + xmake_file=@xmake_file@ +-tmake_file=@tmake_file@ ++tmake_file=@tmake_file@ ./t-oe + TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@ + TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ + TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ +diff --git a/gcc/configure b/gcc/configure +index 19ba051d673..a575839c1b2 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -12158,8 +12158,8 @@ for f in $tm_file; do + tm_include_list="${tm_include_list} $f" + ;; + defaults.h ) +- tm_file_list="${tm_file_list} \$(srcdir)/$f" +- tm_include_list="${tm_include_list} $f" ++ tm_file_list="${tm_file_list} ./$f" ++ tm_include_list="${tm_include_list} ./$f" + ;; + * ) + tm_file_list="${tm_file_list} \$(srcdir)/config/$f" +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 066dfe19bb6..676116a6d96 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -1922,8 +1922,8 @@ for f in $tm_file; do + tm_include_list="${tm_include_list} $f" + ;; + defaults.h ) +- tm_file_list="${tm_file_list} \$(srcdir)/$f" +- tm_include_list="${tm_include_list} $f" ++ tm_file_list="${tm_file_list} ./$f" ++ tm_include_list="${tm_include_list} ./$f" + ;; + * ) + tm_file_list="${tm_file_list} \$(srcdir)/config/$f" +diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh +index 0f75c863c0b..68d8d6613cf 100644 +--- a/gcc/mkconfig.sh ++++ b/gcc/mkconfig.sh +@@ -77,7 +77,7 @@ if [ -n "$HEADERS" ]; then + if [ $# -ge 1 ]; then + echo '#ifdef IN_GCC' >> ${output}T + for file in "$@"; do +- if test x"$file" = x"defaults.h"; then ++ if test x"$file" = x"./defaults.h" -o x"$file" = x"defaults.h"; then + postpone_defaults_h="yes" + else + echo "# include \"$file\"" >> ${output}T +@@ -106,7 +106,7 @@ esac + + # If we postponed including defaults.h, add the #include now. + if test x"$postpone_defaults_h" = x"yes"; then +- echo "# include \"defaults.h\"" >> ${output}T ++ echo "# include \"./defaults.h\"" >> ${output}T + fi + + # Add multiple inclusion protection guard, part two. +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0011-fortran-cross-compile-hack.patch new file +46
-0@@ -0,0 +1,46 @@ +From 71cba188d47b6ae9d9b87261eb4bc9eb68ae355d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:20:01 +0400 +Subject: [PATCH 11/39] fortran cross-compile hack. + +* Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used +used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross +directory. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [embedded specific] +--- + libgfortran/configure | 2 +- + libgfortran/configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libgfortran/configure b/libgfortran/configure +index 91fce8fecd0..6747f86eb98 100755 +--- a/libgfortran/configure ++++ b/libgfortran/configure +@@ -12883,7 +12883,7 @@ esac + + # We need gfortran to compile parts of the library + #AC_PROG_FC(gfortran) +-FC="$GFORTRAN" ++#FC="$GFORTRAN" + ac_ext=${ac_fc_srcext-f} + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' +diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac +index bf6d3634dda..9dbe43cc616 100644 +--- a/libgfortran/configure.ac ++++ b/libgfortran/configure.ac +@@ -250,7 +250,7 @@ AC_SUBST(enable_static) + + # We need gfortran to compile parts of the library + #AC_PROG_FC(gfortran) +-FC="$GFORTRAN" ++#FC="$GFORTRAN" + AC_PROG_FC(gfortran) + + # extra LD Flags which are required for targets +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0012-cpp-honor-sysroot.patch new file +54
-0@@ -0,0 +1,54 @@ +From b3e8e7e8ae106e3207e9edc3d23dcce1464b755f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:22:00 +0400 +Subject: [PATCH 12/39] cpp: honor sysroot. + +Currently, if the gcc toolchain is relocated and installed from sstate, then you try and compile +preprocessed source (.i or .ii files), the compiler will try and access the builtin sysroot location +rather than the --sysroot option specified on the commandline. If access to that directory is +permission denied (unreadable), gcc will error. + +This happens when ccache is in use due to the fact it uses preprocessed source files. + +The fix below adds %I to the cpp-output spec macro so the default substitutions for -iprefix, +-isystem, -isysroot happen and the correct sysroot is used. + +[YOCTO #2074] + +RP 2012/04/13 + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/cp/lang-specs.h | 2 +- + gcc/gcc.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h +index f0802b8915c..f324d299849 100644 +--- a/gcc/cp/lang-specs.h ++++ b/gcc/cp/lang-specs.h +@@ -64,5 +64,5 @@ along with GCC; see the file COPYING3. If not see + {".ii", "@c++-cpp-output", 0, 0, 0}, + {"@c++-cpp-output", + "%{!M:%{!MM:%{!E:\ +- cc1plus -fpreprocessed %i %(cc1_options) %2\ ++ cc1plus -fpreprocessed %i %I %(cc1_options) %2\ + %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, +diff --git a/gcc/gcc.c b/gcc/gcc.c +index d355d65583a..570cdc00034 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -1343,7 +1343,7 @@ static const struct compiler default_compilers[] = + %W{o*:--output-pch=%*}}%V}}}}}}}", 0, 0, 0}, + {".i", "@cpp-output", 0, 0, 0}, + {"@cpp-output", +- "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, ++ "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %I %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, + {".s", "@assembler", 0, 0, 0}, + {"@assembler", + "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 0, 0}, +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0013-MIPS64-Default-to-N64-ABI.patch new file +57
-0@@ -0,0 +1,57 @@ +From 0f3629978cd7c98614e87d4fd190b89864221631 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:23:08 +0400 +Subject: [PATCH 13/39] MIPS64: Default to N64 ABI + +MIPS64 defaults to n32 ABI, this patch makes it +so that it defaults to N64 ABI + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [OE config specific] +--- + gcc/config.gcc | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/gcc/config.gcc b/gcc/config.gcc +index 8741dd1e3b2..2ffcb39d85f 100644 +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -2137,29 +2137,29 @@ mips*-*-linux*) # Linux MIPS, either endian. + default_mips_arch=mips32 + ;; + mips64el-st-linux-gnu) +- default_mips_abi=n32 ++ default_mips_abi=64 + tm_file="${tm_file} mips/st.h" + tmake_file="${tmake_file} mips/t-st" + enable_mips_multilibs="yes" + ;; + mips64octeon*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" + target_cpu_default=MASK_SOFT_FLOAT_ABI + enable_mips_multilibs="yes" + ;; + mipsisa64r6*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + default_mips_arch=mips64r6 + enable_mips_multilibs="yes" + ;; + mipsisa64r2*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + default_mips_arch=mips64r2 + enable_mips_multilibs="yes" + ;; + mips64*-*-linux* | mipsisa64*-*-linux*) +- default_mips_abi=n32 ++ default_mips_abi=64 + enable_mips_multilibs="yes" + ;; + esac +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +248
-0@@ -0,0 +1,248 @@ +From 53f1c382b1366c5621c8edead9c766950c290fd9 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:24:50 +0400 +Subject: [PATCH 14/39] Define GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER + relative to SYSTEMLIBS_DIR + +This patch defines GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER +relative to SYSTEMLIBS_DIR which can be set in generated headers +This breaks the assumption of hardcoded multilib in gcc +Change is only for the supported architectures in OE including +SH, sparc, alpha for possible future support (if any) + +Removes the do_headerfix task in metadata + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [OE configuration] +--- + gcc/config/alpha/linux-elf.h | 4 ++-- + gcc/config/arm/linux-eabi.h | 4 ++-- + gcc/config/arm/linux-elf.h | 2 +- + gcc/config/i386/linux.h | 2 +- + gcc/config/i386/linux64.h | 6 +++--- + gcc/config/linux.h | 8 ++++---- + gcc/config/mips/linux.h | 12 ++++++------ + gcc/config/riscv/linux.h | 2 +- + gcc/config/rs6000/linux64.h | 16 ++++++---------- + gcc/config/sh/linux.h | 2 +- + gcc/config/sparc/linux.h | 2 +- + gcc/config/sparc/linux64.h | 4 ++-- + 12 files changed, 30 insertions(+), 34 deletions(-) + +diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h +index 36b74dc1993..02373578af8 100644 +--- a/gcc/config/alpha/linux-elf.h ++++ b/gcc/config/alpha/linux-elf.h +@@ -23,8 +23,8 @@ along with GCC; see the file COPYING3. If not see + #define EXTRA_SPECS \ + { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" +-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" ++#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" + #if DEFAULT_LIBC == LIBC_UCLIBC + #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}" + #elif DEFAULT_LIBC == LIBC_GLIBC +diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h +index 8585fde3d41..b3af68cac57 100644 +--- a/gcc/config/arm/linux-eabi.h ++++ b/gcc/config/arm/linux-eabi.h +@@ -62,8 +62,8 @@ + GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */ + + #undef GLIBC_DYNAMIC_LINKER +-#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" +-#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" ++#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT SYSTEMLIBS_DIR "ld-linux.so.3" ++#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT SYSTEMLIBS_DIR "ld-linux-armhf.so.3" + #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT + + #define GLIBC_DYNAMIC_LINKER \ +diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h +index cfcd9cb1a5c..a798e987ecb 100644 +--- a/gcc/config/arm/linux-elf.h ++++ b/gcc/config/arm/linux-elf.h +@@ -60,7 +60,7 @@ + + #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc" + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #define LINUX_TARGET_LINK_SPEC "%{h*} \ + %{static:-Bstatic} \ +diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h +index 69f97f15b0d..71bc31d9231 100644 +--- a/gcc/config/i386/linux.h ++++ b/gcc/config/i386/linux.h +@@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see + <http://www.gnu.org/licenses/>. */ + + #define GNU_USER_LINK_EMULATION "elf_i386" +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #undef MUSL_DYNAMIC_LINKER + #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1" +diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h +index f2d913e30ac..8725f33d8a5 100644 +--- a/gcc/config/i386/linux64.h ++++ b/gcc/config/i386/linux64.h +@@ -27,9 +27,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + #define GNU_USER_LINK_EMULATION64 "elf_x86_64" + #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64" + +-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" +-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" +-#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2" ++#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux-x86-64.so.2" ++#define GLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ld-linux-x32.so.2" + + #undef MUSL_DYNAMIC_LINKER32 + #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1" +diff --git a/gcc/config/linux.h b/gcc/config/linux.h +index 2ea4ff92c1d..487b0c0923b 100644 +--- a/gcc/config/linux.h ++++ b/gcc/config/linux.h +@@ -81,10 +81,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + GLIBC_DYNAMIC_LINKER must be defined for each target using them, or + GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets + supporting both 32-bit and 64-bit compilation. */ +-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ldx32-uClibc.so.0" + #define BIONIC_DYNAMIC_LINKER "/system/bin/linker" + #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker" + #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64" +diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h +index 2dfd0c18b90..12057c51b5e 100644 +--- a/gcc/config/mips/linux.h ++++ b/gcc/config/mips/linux.h +@@ -22,20 +22,20 @@ along with GCC; see the file COPYING3. If not see + #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32" + + #define GLIBC_DYNAMIC_LINKER32 \ +- "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" + #define GLIBC_DYNAMIC_LINKER64 \ +- "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" + #define GLIBC_DYNAMIC_LINKERN32 \ +- "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" + + #undef UCLIBC_DYNAMIC_LINKER32 + #define UCLIBC_DYNAMIC_LINKER32 \ +- "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" + #undef UCLIBC_DYNAMIC_LINKER64 + #define UCLIBC_DYNAMIC_LINKER64 \ +- "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld64-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld64-uClibc.so.0}" + #define UCLIBC_DYNAMIC_LINKERN32 \ +- "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}" ++ "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" + + #undef MUSL_DYNAMIC_LINKER32 + #define MUSL_DYNAMIC_LINKER32 \ +diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h +index aa8a28d5d..ebf9551c9 100644 +--- a/gcc/config/riscv/linux.h ++++ b/gcc/config/riscv/linux.h +@@ -22,7 +22,7 @@ along with GCC; see the file COPYING3. + GNU_USER_TARGET_OS_CPP_BUILTINS(); \ + } while (0) + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1" + + #define MUSL_ABI_SUFFIX \ + "%{mabi=ilp32:-sf}" \ +diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h +index 90fe6566255..55695dadd91 100644 +--- a/gcc/config/rs6000/linux64.h ++++ b/gcc/config/rs6000/linux64.h +@@ -420,16 +420,11 @@ extern int dot_symbols; + #undef LINK_OS_DEFAULT_SPEC + #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" + +-#define GLIBC_DYNAMIC_LINKER32 "%(dynamic_linker_prefix)/lib/ld.so.1" +- ++#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld.so.1" + #ifdef LINUX64_DEFAULT_ABI_ELFv2 +-#define GLIBC_DYNAMIC_LINKER64 \ +-"%{mabi=elfv1:%(dynamic_linker_prefix)/lib64/ld64.so.1;" \ +-":%(dynamic_linker_prefix)/lib64/ld64.so.2}" ++#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:" SYSTEMLIBS_DIR "ld64.so.1;:" SYSTEMLIBS_DIR "ld64.so.2}" + #else +-#define GLIBC_DYNAMIC_LINKER64 \ +-"%{mabi=elfv2:%(dynamic_linker_prefix)/lib64/ld64.so.2;" \ +-":%(dynamic_linker_prefix)/lib64/ld64.so.1}" ++#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:" SYSTEMLIBS_DIR "ld64.so.2;:" SYSTEMLIBS_DIR "ld64.so.1}" + #endif + + #define MUSL_DYNAMIC_LINKER32 \ +@@ -437,8 +432,9 @@ extern int dot_symbols; + #define MUSL_DYNAMIC_LINKER64 \ + "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" + +-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" +-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" ++#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" ++ + #if DEFAULT_LIBC == LIBC_UCLIBC + #define CHOOSE_DYNAMIC_LINKER(G, U, M) \ + "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}" +diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h +index 6d2ccd012ba..ec78a89ce15 100644 +--- a/gcc/config/sh/linux.h ++++ b/gcc/config/sh/linux.h +@@ -64,7 +64,7 @@ along with GCC; see the file COPYING3. If not see + "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E MUSL_DYNAMIC_LINKER_FP \ + "%{mfdpic:-fdpic}.so.1" + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #undef SUBTARGET_LINK_EMUL_SUFFIX + #define SUBTARGET_LINK_EMUL_SUFFIX "%{mfdpic:_fd;:_linux}" +diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h +index 9fb03af0fe9..401fddbbb22 100644 +--- a/gcc/config/sparc/linux.h ++++ b/gcc/config/sparc/linux.h +@@ -83,7 +83,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); + When the -shared link option is used a final link is not being + done. */ + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" + + #undef LINK_SPEC + #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \ +diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h +index c1fe42165b7..26a79bfa2e3 100644 +--- a/gcc/config/sparc/linux64.h ++++ b/gcc/config/sparc/linux64.h +@@ -84,8 +84,8 @@ along with GCC; see the file COPYING3. If not see + When the -shared link option is used a final link is not being + done. */ + +-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" +-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" ++#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux.so.2" + + #ifdef SPARC_BI_ARCH + +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0015-gcc-Fix-argument-list-too-long-error.patch new file +40
-0@@ -0,0 +1,40 @@ +From 2e75a14cd60227e036790184f0eb400abc3c870b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:26:37 +0400 +Subject: [PATCH 15/39] gcc: Fix argument list too long error. + +There would be an "Argument list too long" error when the +build directory is longer than 200, this is caused by: + +headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u` + +The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle +it, use the $(sort list) of GNU make which can handle the too long list +would fix the problem, the header would be short enough after sorted. +The "tr ' ' '\012'" was used for translating the space to "\n", the +$(sort list) doesn't need this. + +Signed-off-by: Robert Yang <[email protected]> +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 1367136bfac..71a8275c39f 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -3538,7 +3538,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype + # We keep the directory structure for files in config or c-family and .def + # files. All other files are flattened to a single directory. + $(mkinstalldirs) $(DESTDIR)$(plugin_includedir) +- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \ ++ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \ + for file in $$headers; do \ + if [ -f $$file ] ; then \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0016-Disable-sdt.patch new file +113
-0@@ -0,0 +1,113 @@ +From 423d87ac47d21e399d759d7ff3b638f0c721a7df Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:28:10 +0400 +Subject: [PATCH 16/39] Disable sdt. + +We don't list dtrace in DEPENDS so we shouldn't be depending on this header. +It may or may not exist from preivous builds though. To be determinstic, disable +sdt.h usage always. This avoids build failures if the header is removed after configure +but before libgcc is compiled for example. + +RP 2012/8/7 + +Signed-off-by: Khem Raj <[email protected]> + +Disable sdt for libstdc++-v3. + +Signed-off-by: Robert Yang <[email protected]> + +Upstream-Status: Inappropriate [hack] +--- + gcc/configure | 12 ++++++------ + gcc/configure.ac | 18 +++++++++--------- + libstdc++-v3/configure | 6 +++--- + libstdc++-v3/configure.ac | 2 +- + 4 files changed, 19 insertions(+), 19 deletions(-) + +diff --git a/gcc/configure b/gcc/configure +index a575839c1b2..872338f29b6 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -29296,12 +29296,12 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 + $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } + have_sys_sdt_h=no +-if test -f $target_header_dir/sys/sdt.h; then +- have_sys_sdt_h=yes +- +-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h +- +-fi ++#if test -f $target_header_dir/sys/sdt.h; then ++# have_sys_sdt_h=yes ++# ++#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h ++# ++#fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 + $as_echo "$have_sys_sdt_h" >&6; } + +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 676116a6d96..55046e68926 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -5957,15 +5957,15 @@ fi + AC_SUBST([enable_default_ssp]) + + # Test for <sys/sdt.h> on the target. +-GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) +-AC_MSG_CHECKING(sys/sdt.h in the target C library) +-have_sys_sdt_h=no +-if test -f $target_header_dir/sys/sdt.h; then +- have_sys_sdt_h=yes +- AC_DEFINE(HAVE_SYS_SDT_H, 1, +- [Define if your target C library provides sys/sdt.h]) +-fi +-AC_MSG_RESULT($have_sys_sdt_h) ++#GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) ++#AC_MSG_CHECKING(sys/sdt.h in the target C library) ++#have_sys_sdt_h=no ++#if test -f $target_header_dir/sys/sdt.h; then ++# have_sys_sdt_h=yes ++# AC_DEFINE(HAVE_SYS_SDT_H, 1, ++# [Define if your target C library provides sys/sdt.h]) ++#fi ++#AC_MSG_RESULT($have_sys_sdt_h) + + # Check if TFmode long double should be used by default or not. + # Some glibc targets used DFmode long double, but with glibc 2.4 +diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure +index c9dbaa139d5..c64a77d152b 100755 +--- a/libstdc++-v3/configure ++++ b/libstdc++-v3/configure +@@ -21786,11 +21786,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + +- if test $glibcxx_cv_sys_sdt_h = yes; then ++# if test $glibcxx_cv_sys_sdt_h = yes; then + +-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h ++#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h + +- fi ++# fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5 + $as_echo "$glibcxx_cv_sys_sdt_h" >&6; } + +diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac +index 0ef96270c9c..afe55a1b215 100644 +--- a/libstdc++-v3/configure.ac ++++ b/libstdc++-v3/configure.ac +@@ -230,7 +230,7 @@ GLIBCXX_CHECK_SC_NPROCESSORS_ONLN + GLIBCXX_CHECK_SC_NPROC_ONLN + GLIBCXX_CHECK_PTHREADS_NUM_PROCESSORS_NP + GLIBCXX_CHECK_SYSCTL_HW_NCPU +-GLIBCXX_CHECK_SDT_H ++#GLIBCXX_CHECK_SDT_H + + # Check for available headers. + AC_CHECK_HEADERS([endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0017-libtool.patch new file +42
-0@@ -0,0 +1,42 @@ +From c8b11e96b11910b2d4df6ae8104466e3303d933f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:29:11 +0400 +Subject: [PATCH 17/39] libtool + +libstdc++ from gcc-runtime gets created with -rpath=/usr/lib/../lib for qemux86-64 +when running on am x86_64 build host. + +This patch stops this speading to libdir in the libstdc++.la file within libtool. +Arguably, it shouldn't be passing this into libtool in the first place but +for now this resolves the nastiest problems this causes. + +func_normal_abspath would resolve an empty path to `pwd` so we need +to filter the zero case. + +RP 2012/8/24 + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + ltmain.sh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/ltmain.sh b/ltmain.sh +index 9503ec85d70..0121fba707f 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -6359,6 +6359,10 @@ func_mode_link () + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" ++ if test -n "$install_libdir"; then ++ func_normal_abspath "$install_libdir" ++ install_libdir=$func_normal_abspath_result ++ fi + + oldlibs= + if test -z "$rpath"; then +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0018-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43
-0@@ -0,0 +1,43 @@ +From 7dbba844a59bdf6e7d724f8bfa7927246cb7af8f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:30:32 +0400 +Subject: [PATCH 18/39] gcc: armv4: pass fix-v4bx to linker to support EABI. + +The LINK_SPEC for linux gets overwritten by linux-eabi.h which +means the value of TARGET_FIX_V4BX_SPEC gets lost and as a result +the option is not passed to linker when chosing march=armv4 +This patch redefines this in linux-eabi.h and reinserts it +for eabi defaulting toolchains. + +We might want to send it upstream. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +--- + gcc/config/arm/linux-eabi.h | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h +index b3af68cac57..330b6e13c5f 100644 +--- a/gcc/config/arm/linux-eabi.h ++++ b/gcc/config/arm/linux-eabi.h +@@ -88,10 +88,14 @@ + #define MUSL_DYNAMIC_LINKER \ + "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1" + ++/* For armv4 we pass --fix-v4bx to linker to support EABI */ ++#undef TARGET_FIX_V4BX_SPEC ++#define TARGET_FIX_V4BX_SPEC "%{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4: --fix-v4bx}" ++ + /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to + use the GNU/Linux version, not the generic BPABI version. */ + #undef LINK_SPEC +-#define LINK_SPEC EABI_LINK_SPEC \ ++#define LINK_SPEC TARGET_FIX_V4BX_SPEC EABI_LINK_SPEC \ + LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \ + LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC) + +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0019-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102
-0@@ -0,0 +1,102 @@ +From 117140acd3c383f620ff75894276001c7405dcce Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 29 Mar 2013 09:33:04 +0400 +Subject: [PATCH 19/39] Use the multilib config files from ${B} instead of + using the ones from ${S} + +Use the multilib config files from ${B} instead of using the ones from ${S} +so that the source can be shared between gcc-cross-initial, +gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. + +Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Constantin Musca <[email protected]> + +Upstream-Status: Inappropriate [configuration] +--- + gcc/configure | 22 ++++++++++++++++++---- + gcc/configure.ac | 22 ++++++++++++++++++---- + 2 files changed, 36 insertions(+), 8 deletions(-) + +diff --git a/gcc/configure b/gcc/configure +index 872338f29b6..cfcadc93a01 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -12138,10 +12138,20 @@ done + tmake_file_= + for f in ${tmake_file} + do +- if test -f ${srcdir}/config/$f +- then +- tmake_file_="${tmake_file_} \$(srcdir)/config/$f" +- fi ++ case $f in ++ */t-linux64 ) ++ if test -f ./config/$f ++ then ++ tmake_file_="${tmake_file_} ./config/$f" ++ fi ++ ;; ++ * ) ++ if test -f ${srcdir}/config/$f ++ then ++ tmake_file_="${tmake_file_} \$(srcdir)/config/$f" ++ fi ++ ;; ++ esac + done + tmake_file="${tmake_file_}" + +@@ -12152,6 +12162,10 @@ tm_file_list="options.h" + tm_include_list="options.h insn-constants.h" + for f in $tm_file; do + case $f in ++ */linux64.h ) ++ tm_file_list="${tm_file_list} ./config/$f" ++ tm_include_list="${tm_include_list} ./config/$f" ++ ;; + ./* ) + f=`echo $f | sed 's/^..//'` + tm_file_list="${tm_file_list} $f" +diff --git a/gcc/configure.ac b/gcc/configure.ac +index 55046e68926..44b90478f55 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -1902,10 +1902,20 @@ done + tmake_file_= + for f in ${tmake_file} + do +- if test -f ${srcdir}/config/$f +- then +- tmake_file_="${tmake_file_} \$(srcdir)/config/$f" +- fi ++ case $f in ++ */t-linux64 ) ++ if test -f ./config/$f ++ then ++ tmake_file_="${tmake_file_} ./config/$f" ++ fi ++ ;; ++ * ) ++ if test -f ${srcdir}/config/$f ++ then ++ tmake_file_="${tmake_file_} \$(srcdir)/config/$f" ++ fi ++ ;; ++ esac + done + tmake_file="${tmake_file_}" + +@@ -1916,6 +1926,10 @@ tm_file_list="options.h" + tm_include_list="options.h insn-constants.h" + for f in $tm_file; do + case $f in ++ */linux64.h ) ++ tm_file_list="${tm_file_list} ./config/$f" ++ tm_include_list="${tm_include_list} ./config/$f" ++ ;; + ./* ) + f=`echo $f | sed 's/^..//'` + tm_file_list="${tm_file_list} $f" +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0020-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31
-0@@ -0,0 +1,31 @@ +From a7266111a5ba2d146c979e86ff84f6b807ca5fdc Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 09:39:38 +0000 +Subject: [PATCH 20/39] Avoid using libdir from .la which usually points to a + host path + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Jonathan Liu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ltmain.sh b/ltmain.sh +index 0121fba707f..52bdbdb5f9c 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -5628,6 +5628,9 @@ func_mode_link () + absdir="$abs_ladir" + libdir="$abs_ladir" + else ++ # Instead of using libdir from .la which usually points to a host path, ++ # use the path the .la is contained in. ++ libdir="$abs_ladir" + dir="$libdir" + absdir="$libdir" + fi +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0021-export-CPP.patch new file +53
-0@@ -0,0 +1,53 @@ +From c8599fc3b5781b319707c9c0f1b0a1ef7cddb027 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 09:40:59 +0000 +Subject: [PATCH 21/39] export CPP + +The OE environment sets and exports CPP as being the target gcc. When +building gcc-cross-canadian for a mingw targetted sdk, the following can be found +in build.x86_64-pokysdk-mingw32.i586-poky-linux/build-x86_64-linux/libiberty/config.log: + +configure:3641: checking for _FILE_OFFSET_BITS value needed for large files +configure:3666: gcc -c -isystem/media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe conftest.c >&5 +configure:3666: $? = 0 +configure:3698: result: no +configure:3786: checking how to run the C preprocessor +configure:3856: result: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 +configure:3876: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 conftest.c +configure:3876: $? = 0 + +Note this is a *build* target (in build-x86_64-linux) so it should be +using the host "gcc", not x86_64-pokysdk-mingw32-gcc. Since the mingw32 +headers are very different, using the wrong cpp is a real problem. It is leaking +into configure through the CPP variable. Ultimately this leads to build +failures related to not being able to include a process.h file for pem-unix.c. + +The fix is to ensure we export a sane CPP value into the build +environment when using build targets. We could define a CPP_FOR_BUILD value which may be +the version which needs to be upstreamed but for now, this fix is good enough to +avoid the problem. + +RP 22/08/2013 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + Makefile.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.in b/Makefile.in +index 2bf83b72265..1af45580086 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -149,6 +149,7 @@ BUILD_EXPORTS = \ + AR="$(AR_FOR_BUILD)"; export AR; \ + AS="$(AS_FOR_BUILD)"; export AS; \ + CC="$(CC_FOR_BUILD)"; export CC; \ ++ CPP="$(CC_FOR_BUILD) -E"; export CPP; \ + CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ + CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ + CXX="$(CXX_FOR_BUILD)"; export CXX; \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0022-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42
-0@@ -0,0 +1,42 @@ +From 5e2ee46c720b6ce03a18da70dd4e0917c258ab0b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 10:21:55 +0000 +Subject: [PATCH 22/39] Disable the MULTILIB_OSDIRNAMES and other multilib + options. + +Hard coding the MULTILIB_OSDIRNAMES with ../lib64 is causing problems on +systems where the libdir is NOT set to /lib64. This is allowed by the +ABI, as +long as the dynamic loader is present in /lib. + +We simply want to use the default rules in gcc to find and configure the +normal libdir. + +Upstream-Status: Inappropriate[OE-Specific] + +Signed-off-by: Mark Hatle <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/config/aarch64/t-aarch64-linux | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/gcc/config/aarch64/t-aarch64-linux b/gcc/config/aarch64/t-aarch64-linux +index b9897785a89..7d06f0d0edb 100644 +--- a/gcc/config/aarch64/t-aarch64-linux ++++ b/gcc/config/aarch64/t-aarch64-linux +@@ -21,8 +21,8 @@ + LIB1ASMSRC = aarch64/lib1funcs.asm + LIB1ASMFUNCS = _aarch64_sync_cache_range + +-AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be) +-MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu) +-MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu) ++#AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be) ++#MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu) ++#MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu) + +-MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) ++#MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0023-Ensure-target-gcc-headers-can-be-included.patch new file +62
-0@@ -0,0 +1,62 @@ +From 73766424a2f71b1810fb8afdd863028855d87e5a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 10:25:11 +0000 +Subject: [PATCH 23/39] Ensure target gcc headers can be included + +There are a few headers installed as part of the OpenEmbedded +gcc-runtime target (omp.h, ssp/*.h). Being installed from a recipe +built for the target architecture, these are within the target +sysroot and not cross/nativesdk; thus they weren't able to be +found by gcc with the existing search paths. Add support for +picking up these headers under the sysroot supplied on the gcc +command line in order to resolve this. + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/Makefile.in | 2 ++ + gcc/cppdefault.c | 4 ++++ + gcc/defaults.h | 9 +++++++++ + gcc/gcc.c | 7 ------- + 4 files changed, 15 insertions(+), 7 deletions(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 71a8275c39f..5ae693fb06c 100644 +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -614,6 +614,7 @@ libexecdir = @libexecdir@ + + # Directory in which the compiler finds libraries etc. + libsubdir = $(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) ++libsubdir_target = gcc/$(target_noncanonical)/$(version) + # Directory in which the compiler finds executables + libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) + # Directory in which all plugin resources are installed +@@ -2870,6 +2871,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\" + + PREPROCESSOR_DEFINES = \ + -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ ++ -DGCC_INCLUDE_SUBDIR_TARGET=\"$(libsubdir_target)/include\" \ + -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \ + -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ + -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \ +diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c +index b36a979d5ba..e2e187dedaf 100644 +--- a/gcc/cppdefault.c ++++ b/gcc/cppdefault.c +@@ -59,6 +59,10 @@ const struct default_include cpp_include_defaults[] + /* This is the dir for gcc's private headers. */ + { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, + #endif ++#ifdef GCC_INCLUDE_SUBDIR_TARGET ++ /* This is the dir for gcc's private headers under the specified sysroot. */ ++ { STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET, "GCC", 0, 0, 1, 0 }, ++#endif + #ifdef LOCAL_INCLUDE_DIR + /* /usr/local/include comes before the fixincluded header files. */ + { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0024-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54
-0@@ -0,0 +1,54 @@ +From 57beef69396f6c187014b8e61cdc966218479d07 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 20 Feb 2015 11:17:19 +0000 +Subject: [PATCH 24/39] gcc 4.8+ won't build with --disable-dependency-tracking + +since the *.Ppo files don't get created unless --enable-dependency-tracking is true. + +This patch ensures we only use those compiler options when its enabled. + +Upstream-Status: Submitted + +(Problem was already reported upstream, attached this patch there +http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55930) + +RP +2012/09/22 + +Signed-off-by: Khem Raj <[email protected]> +--- + libatomic/Makefile.am | 3 ++- + libatomic/Makefile.in | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/libatomic/Makefile.am b/libatomic/Makefile.am +index 803b292cce5..b47842eb590 100644 +--- a/libatomic/Makefile.am ++++ b/libatomic/Makefile.am +@@ -101,7 +101,8 @@ PAT_S = $(word 3,$(PAT_SPLIT)) + IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) + IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) + +-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_FALSE@M_DEPS = + M_SIZE = -DN=$(PAT_N) + M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) + M_FILE = $(PAT_BASE)_n.c +diff --git a/libatomic/Makefile.in b/libatomic/Makefile.in +index c8f38be5835..4fab7cec3ea 100644 +--- a/libatomic/Makefile.in ++++ b/libatomic/Makefile.in +@@ -335,7 +335,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) + PAT_S = $(word 3,$(PAT_SPLIT)) + IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) + IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) +-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo ++@AMDEP_FALSE@M_DEPS = + M_SIZE = -DN=$(PAT_N) + M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) + M_FILE = $(PAT_BASE)_n.c +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0025-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38
-0@@ -0,0 +1,38 @@ +From fd96c9b35c592f1bdd32bc5ae669157473e44063 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 3 Mar 2015 08:21:19 +0000 +Subject: [PATCH 25/39] Don't search host directory during "relink" if + $inst_prefix is provided + +http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html + +Upstream-Status: Submitted + +Signed-off-by: Khem Raj <[email protected]> +--- + ltmain.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/ltmain.sh b/ltmain.sh +index 52bdbdb5f9c..82bcec39f05 100644 +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -6004,12 +6004,13 @@ func_mode_link () + fi + else + # We cannot seem to hardcode it, guess we'll fake it. ++ # Default if $libdir is not relative to the prefix: + add_dir="-L$libdir" +- # Try looking first in the location we're being installed to. ++ + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) +- add_dir="$add_dir -L$inst_prefix_dir$libdir" ++ add_dir="-L$inst_prefix_dir$libdir" + ;; + esac + fi +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0026-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29
-0@@ -0,0 +1,29 @@ +From c2e400afe8c514357859fca88af4d3e1fcbfe2ff Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:15:27 -0700 +Subject: [PATCH 26/39] Use SYSTEMLIBS_DIR replacement instead of hardcoding + base_libdir + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index bf1327e98cc..64436183bc8 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -21,7 +21,7 @@ + #ifndef GCC_AARCH64_LINUX_H + #define GCC_AARCH64_LINUX_H + +-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER + #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0027-aarch64-Add-support-for-musl-ldso.patch new file +28
-0@@ -0,0 +1,28 @@ +From a2cc175769fd8255750eaecae64e3d1f9c38d48f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 28 Apr 2015 23:18:39 -0700 +Subject: [PATCH 27/39] aarch64: Add support for musl ldso + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Pending + + gcc/config/aarch64/aarch64-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h +index 64436183bc8..ba156676026 100644 +--- a/gcc/config/aarch64/aarch64-linux.h ++++ b/gcc/config/aarch64/aarch64-linux.h +@@ -24,7 +24,7 @@ + #define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef MUSL_DYNAMIC_LINKER +-#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" ++#define MUSL_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" + + #undef ASAN_CC1_SPEC + #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0028-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54
-0@@ -0,0 +1,54 @@ +From a8a8a02788ff98f253ce0b33adcb0e661d24b1e3 Mon Sep 17 00:00:00 2001 +From: Robert Yang <[email protected]> +Date: Sun, 5 Jul 2015 20:25:18 -0700 +Subject: [PATCH 28/39] libcc1: fix libcc1's install path and rpath + +* Install libcc1.so and libcc1plugin.so into + $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version), as what we + had done to lto-plugin. +* Fix bad RPATH iussue: + gcc-5.2.0: package gcc-plugins contains bad RPATH /patht/to/tmp/sysroots/qemux86-64/usr/lib64/../lib64 in file + /path/to/gcc/5.2.0-r0/packages-split/gcc-plugins/usr/lib64/gcc/x86_64-poky-linux/5.2.0/plugin/libcc1plugin.so.0.0.0 + [rpaths] + +Upstream-Status: Inappropriate [OE configuration] + +Signed-off-by: Robert Yang <[email protected]> +--- + libcc1/Makefile.am | 4 ++-- + libcc1/Makefile.in | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am +index 6ecb66b4365..634cce3c2a9 100644 +--- a/libcc1/Makefile.am ++++ b/libcc1/Makefile.am +@@ -37,8 +37,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \ + $(Wc)$(libiberty_normal))) + libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty)) + +-plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin +-cc1libdir = $(libdir)/$(libsuffix) ++cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) ++plugindir = $(cc1libdir) + + if ENABLE_PLUGIN + plugin_LTLIBRARIES = libcc1plugin.la libcp1plugin.la +diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in +index 47be10025ad..8d5481d87bd 100644 +--- a/libcc1/Makefile.in ++++ b/libcc1/Makefile.in +@@ -303,8 +303,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \ + $(Wc)$(libiberty_normal))) + + libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty)) +-plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin +-cc1libdir = $(libdir)/$(libsuffix) ++cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) ++plugindir = $(cc1libdir) + @ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = libcc1plugin.la libcp1plugin.la + @ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la + shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \ +-- +2.17.0 +meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0029-handle-sysroot-support-for-nativesdk-gcc.patch new file +213
-0@@ -0,0 +1,213 @@ +From 3bb74495e45e0e798daae5556497e688b8fc4eef Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 7 Dec 2015 23:39:54 +0000 +Subject: [PATCH 29/39] handle sysroot support for nativesdk-gcc + +Being able to build a nativesdk gcc is useful, particularly in cases +where the host compiler may be of an incompatible version (or a 32 +bit compiler is needed). + +Sadly, building nativesdk-gcc is not straight forward. We install +nativesdk-gcc into a relocatable location and this means that its +library locations can change. "Normal" sysroot support doesn't help +in this case since the values of paths like "libdir" change, not just +base root directory of the system. + +In order to handle this we do two things: + +a) Add %r into spec file markup which can be used for injected paths + such as SYSTEMLIBS_DIR (see gcc_multilib_setup()). +b) Add other paths which need relocation into a .gccrelocprefix section + which the relocation code will notice and adjust automatically. + +Upstream-Status: Inappropriate +RP 2015/7/28 + +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/cppdefault.c | 50 +++++++++++++++++++++++++++++++++++------------- + gcc/cppdefault.h | 3 ++- + gcc/gcc.c | 20 +++++++++++++------ + 3 files changed, 53 insertions(+), 20 deletions(-) + +diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c +index e2e187dedaf..2faba2b1d63 100644 +--- a/gcc/cppdefault.c ++++ b/gcc/cppdefault.c +@@ -35,6 +35,30 @@ + # undef CROSS_INCLUDE_DIR + #endif + ++static char GPLUSPLUS_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_INCLUDE_DIR; ++static char GCC_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GCC_INCLUDE_DIR; ++static char GPLUSPLUS_TOOL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_TOOL_INCLUDE_DIR; ++static char GPLUSPLUS_BACKWARD_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = GPLUSPLUS_BACKWARD_INCLUDE_DIR; ++static char STANDARD_STARTFILE_PREFIX_2VAR[4096] __attribute__ ((section (".gccrelocprefix"))) = STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET; ++#ifdef LOCAL_INCLUDE_DIR ++static char LOCAL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = LOCAL_INCLUDE_DIR; ++#endif ++#ifdef PREFIX_INCLUDE_DIR ++static char PREFIX_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = PREFIX_INCLUDE_DIR; ++#endif ++#ifdef FIXED_INCLUDE_DIR ++static char FIXED_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = FIXED_INCLUDE_DIR; ++#endif ++#ifdef CROSS_INCLUDE_DIR ++static char CROSS_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = CROSS_INCLUDE_DIR; ++#endif ++#ifdef TOOL_INCLUDE_DIR ++static char TOOL_INCLUDE_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = TOOL_INCLUDE_DIR; ++#endif ++#ifdef NATIVE_SYSTEM_HEADER_DIR ++static char NATIVE_SYSTEM_HEADER_DIRVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = NATIVE_SYSTEM_HEADER_DIR; ++#endif ++ + const struct default_include cpp_include_defaults[] + #ifdef INCLUDE_DEFAULTS + = INCLUDE_DEFAULTS; +@@ -42,38 +66,38 @@ const struct default_include cpp_include_defaults[] + = { + #ifdef GPLUSPLUS_INCLUDE_DIR + /* Pick up GNU C++ generic include files. */ +- { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, ++ { GPLUSPLUS_INCLUDE_DIRVAR, "G++", 1, 1, + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, + #endif + #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR + /* Pick up GNU C++ target-dependent include files. */ +- { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, ++ { GPLUSPLUS_TOOL_INCLUDE_DIRVAR, "G++", 1, 1, + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 1 }, + #endif + #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR + /* Pick up GNU C++ backward and deprecated include files. */ +- { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, ++ { GPLUSPLUS_BACKWARD_INCLUDE_DIRVAR, "G++", 1, 1, + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, + #endif + #ifdef GCC_INCLUDE_DIR + /* This is the dir for gcc's private headers. */ +- { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, ++ { GCC_INCLUDE_DIRVAR, "GCC", 0, 0, 0, 0 }, + #endif + #ifdef GCC_INCLUDE_SUBDIR_TARGET + /* This is the dir for gcc's private headers under the specified sysroot. */ +- { STANDARD_STARTFILE_PREFIX_2 GCC_INCLUDE_SUBDIR_TARGET, "GCC", 0, 0, 1, 0 }, ++ { STANDARD_STARTFILE_PREFIX_2VAR, "GCC", 0, 0, 1, 0 }, + #endif + #ifdef LOCAL_INCLUDE_DIRLines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0030-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0031-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0032-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0033-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0034-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +465
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0035-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0036-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0037-sync-gcc-stddef.h-with-musl.patch new file +91
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0038-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0039-Fix-for-testsuite-failure.patch new file +258
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0040-Re-introduce-spe-commandline-options.patch new file +41
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0041-ARC-fix-spec-gen.patch new file +44
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0042-powerpc-powerpc64-Add-support-for-musl-ldso.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.2/0043-riscv-Disable-multilib-for-OE.patch new file +27
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3.inc new file +113
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0002-gcc-poison-system-directories.patch new file +203
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0004-64-bit-multilib-hack.patch new file +85
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0005-optional-libstdc.patch new file +125
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file +59
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0007-COLLECT_GCC_OPTIONS.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0008-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0009-fortran-cross-compile-hack.patch new file +46
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0010-cpp-honor-sysroot.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0011-MIPS64-Default-to-N64-ABI.patch new file +57
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0012-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +248
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0013-gcc-Fix-argument-list-too-long-error.patch new file +40
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0014-Disable-sdt.patch new file +113
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0015-libtool.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0016-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0017-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0018-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0019-export-CPP.patch new file +53
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0020-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0021-Ensure-target-gcc-headers-can-be-included.patch new file +98
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0022-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0023-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0024-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0025-aarch64-Add-support-for-musl-ldso.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0026-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0027-handle-sysroot-support-for-nativesdk-gcc.patch new file +213
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0028-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0029-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0030-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0031-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0032-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +125
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0033-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +85
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0035-sync-gcc-stddef.h-with-musl.patch new file +91
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0036-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0037-Fix-for-testsuite-failure.patch new file +258
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0038-Re-introduce-spe-commandline-options.patch new file +41
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0039-riscv-Disable-multilib-for-OE.patch new file +27
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-8.3/0040-powerpc-powerpc64-Add-support-for-musl-ldso.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2.inc new file +124
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0002-gcc-poison-system-directories.patch new file +203
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch new file +73
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0004-64-bit-multilib-hack.patch new file +119
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0005-optional-libstdc.patch new file +125
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0006-COLLECT_GCC_OPTIONS.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file +96
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0008-fortran-cross-compile-hack.patch new file +46
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0009-cpp-honor-sysroot.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0010-MIPS64-Default-to-N64-ABI.patch new file +57
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch new file +243
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0012-gcc-Fix-argument-list-too-long-error.patch new file +40
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0013-Disable-sdt.patch new file +113
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0014-libtool.patch new file +42
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch new file +43
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch new file +31
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0018-export-CPP.patch new file +53
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch new file +55
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0020-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0021-Don-t-search-host-directory-during-relink-if-inst_pr.patch new file +38
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0022-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0023-aarch64-Add-support-for-musl-ldso.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0024-libcc1-fix-libcc1-s-install-path-and-rpath.patch new file +54
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0025-handle-sysroot-support-for-nativesdk-gcc.patch new file +346
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0026-Search-target-sysroot-gcc-version-specific-dirs-with.patch new file +102
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0027-Fix-various-_FOR_BUILD-and-related-variables.patch new file +137
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0028-nios2-Define-MUSL_DYNAMIC_LINKER.patch new file +28
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0029-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch new file +87
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0030-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch new file +79
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0031-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch new file +29
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0032-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch new file +86
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0033-sync-gcc-stddef.h-with-musl.patch new file +91
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0034-fix-segmentation-fault-in-precompiled-header-generat.patch new file +60
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0035-Fix-for-testsuite-failure.patch new file +258
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0036-Re-introduce-spe-commandline-options.patch new file +41
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-9.2/0037-Fix-up-libsanitizer-build-with-master-glibc.patch new file +70
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-8.3.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross-canadian_arm-9.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-8.3.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-cross_arm-9.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-crosssdk_arm-9.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.2.bb new file +7
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-8.3.bb new file +7
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-runtime_arm-9.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-sanitizers_arm-9.2.bb new file +7
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.2.bb new file +4
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-8.3.bb new file +4
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc-source_arm-9.2.bb new file +4
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.2.bb new file +14
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-8.3.bb new file +14
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/gcc_arm-9.2.bb new file +14
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc-initial_arm-9.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.2.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-8.3.bb new file +2
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgcc_arm-9.2.bb new file +5
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.2.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-8.3.bb new file +3
-0Lines of this file are not shown. View the raw message.
meta-arm-toolchain/recipes-devtools/gcc/libgfortran_arm-9.2.bb new file +3
-1Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
2.7.4
Part of the diff is not shown here. View the raw message.
Quoted 14 lines · Jon Mason
Quoted 13 lines · Denys Dmytriyenko
Quoted 5 lines · Sumit Garg
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.Signed-off-by Sumit Garg <[email protected]>It's an exact copy of what's currently in meta-linaro-toolchain, but I still decided to test it - I applied this patch to meta-arm and reconfigured my setup by replacing meta-linaro-toolchain with the new meta-arm-toolchain and ran few builds that use external-arm-toolchain and gcc-arm recipes:
Quoted 5 lines
Quoted 1 line
Tested-by Denys Dmytriyenko <[email protected]>Thank you for the patch, Sumit, and for testing, Denys. It is now included in meta-arm, see
https://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=c0a59f3d94c633d6c902e7bd436690bc890bbc40
Thank you, Jon!
Now I only need OP-TEE recipes migrated (Nico?) - I wonder if meta-optee sublayer is required like it's in meta-linaro/meta-optee[1], or just adding them into main meta-arm sublayer would be fine?
[1] https://git.linaro.org/openembedded/meta-linaro.git/tree/
Signature · 1 line
Denys
Quoted 24 lines · Denys Dmytriyenko
Quoted 1 line · Jon Mason
On Mon, Jan 27, 2020 at 11:54 PM Denys Dmytriyenko <[email protected]>
Quoted 9 lines · wrote:
Quoted 9 lines · Sumit Garg
Quoted 5 lines
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.Signed-off-by Sumit Garg <[email protected]>It's an exact copy of what's currently in meta-linaro-toolchain, but I
still
Quoted 1 line
Quoted 1 line
decided to test it - I applied this patch to meta-arm and reconfigured
my
Quoted 1 line
Quoted 1 line
setup by replacing meta-linaro-toolchain with the new
meta-arm-toolchain and
Quoted 7 lines
Quoted 3 lines
ran few builds that use external-arm-toolchain and gcc-arm recipes:
Tested-by Denys Dmytriyenko <[email protected]>Thank you for the patch, Sumit, and for testing, Denys. It is now included in meta-arm, see
Quoted 8 lines
Thank you, Jon!
Now I only need OP-TEE recipes migrated (Nico?) - I wonder if meta-optee sublayer is required like it's in meta-linaro/meta-optee[1], or just adding
them into main meta-arm sublayer would be fine?
I think it should go into meta-arm directly. I don’t think adding too many layers is the right approach. We need to make sure that meta-arm remains a generic software layer (no machine, no distro) so that it can easilt be consumed, so arguably we might not even need meta-arm-toolchain neither...
Quoted 6 lines
[1] https://git.linaro.org/openembedded/meta-linaro.git/tree/
--
Denys
Quoted 36 lines · Nicolas Dechesne
Quoted 24 lines · Denys Dmytriyenko
Quoted 1 line · Jon Mason
On Mon, Jan 27, 2020 at 11:54 PM Denys Dmytriyenko <[email protected]>
Quoted 9 lines · wrote:
Quoted 9 lines · Sumit Garg
Quoted 5 lines
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.Signed-off-by Sumit Garg <[email protected]>It's an exact copy of what's currently in meta-linaro-toolchain, but I
still
Quoted 1 line
Quoted 1 line
decided to test it - I applied this patch to meta-arm and reconfigured
my
Quoted 1 line
Quoted 1 line
setup by replacing meta-linaro-toolchain with the new
meta-arm-toolchain and
Quoted 7 lines
Quoted 3 lines
ran few builds that use external-arm-toolchain and gcc-arm recipes:
Tested-by Denys Dmytriyenko <[email protected]>Thank you for the patch, Sumit, and for testing, Denys. It is now included in meta-arm, see
Quoted 8 lines
Thank you, Jon!
Now I only need OP-TEE recipes migrated (Nico?) - I wonder if meta-optee sublayer is required like it's in meta-linaro/meta-optee[1], or just adding
them into main meta-arm sublayer would be fine?
Quoted 4 lines
I think it should go into meta-arm directly. I don’t think adding too many layers is the right approach. We need to make sure that meta-arm remains a generic software layer (no machine, no distro) so that it can easilt be consumed, so arguably we might not even need meta-arm-toolchain neither...
I tend to agree regarding placing OPTEE in the main meta-arm layer, especially since it is now officially part of the Trusted Firmware project.
When do you expect the patches out? Do you need help with that?
As of meta-arm-toolchain, it's not so clear - I'd prefer it in a separate layer, many people get confused by additional toolchain configs and recipes :)
Signature · 1 line
Denys
Quoted 5 lines
Quoted 5 lines
[1] https://git.linaro.org/openembedded/meta-linaro.git/tree/
--
Denys
Quoted 43 lines · Denys Dmytriyenko
Quoted 36 lines · Nicolas Dechesne
Quoted 24 lines · Denys Dmytriyenko
Quoted 1 line · Jon Mason
On Mon, Jan 27, 2020 at 11:54 PM Denys Dmytriyenko <[email protected]>
Quoted 9 lines · wrote:
Quoted 9 lines · Sumit Garg
Quoted 5 lines
Add a new meta-arm-toolchain layer to hold ARM GNU-A toolset recipes imported from meta-linaro tree, branch: master and commit ID:
504ca3b217c9602b10eda0ec8a9f1055b59e482f.Signed-off-by Sumit Garg <[email protected]>It's an exact copy of what's currently in meta-linaro-toolchain, but I
still
Quoted 1 line
Quoted 1 line
decided to test it - I applied this patch to meta-arm and reconfigured
my
Quoted 1 line
Quoted 1 line
setup by replacing meta-linaro-toolchain with the new
meta-arm-toolchain and
Quoted 7 lines
Quoted 3 lines
ran few builds that use external-arm-toolchain and gcc-arm recipes:
Tested-by Denys Dmytriyenko <[email protected]>Thank you for the patch, Sumit, and for testing, Denys. It is now included in meta-arm, see
Quoted 8 lines
Thank you, Jon!
Now I only need OP-TEE recipes migrated (Nico?) - I wonder if meta-optee sublayer is required like it's in meta-linaro/meta-optee[1], or just adding
them into main meta-arm sublayer would be fine?Quoted 4 lines
I think it should go into meta-arm directly. I don’t think adding too many layers is the right approach. We need to make sure that meta-arm remains a generic software layer (no machine, no distro) so that it can easilt be consumed, so arguably we might not even need meta-arm-toolchain neither...
Quoted 4 lines
I tend to agree regarding placing OPTEE in the main meta-arm layer, especially since it is now officially part of the Trusted Firmware project.
When do you expect the patches out? Do you need help with that?
Pete is looking into that now, i suppose he will send patches soon, hopefully you can help with the review!
Quoted 3 lines
As of meta-arm-toolchain, it's not so clear - I'd prefer it in a separate layer, many people get confused by additional toolchain configs and recipes :)
I agree that toolchain is not as simple.. anyways, it's done as a separate layer for now, so let's keep it this way..
Quoted 11 lines
--
DenysQuoted 5 lines
Quoted 5 lines
[1] https://git.linaro.org/openembedded/meta-linaro.git/tree/
--
Denys