kumquat-buildroot/toolchain/toolchain-external
Thomas De Schampheleire ba6bac1383 toolchain-external: handle ld.so fixups centrally
Normally, the Buildroot toolchain logic copies all required libraries from
the external toolchain to the staging directory, including the dynamic
loader ld-*.so.
There are cases, however, where the dynamic loader is _not_ automatically
copied to staging. This happens when the dynamic loader is not inside
ARCH_LIB_DIR itself (e.g. lib64), but instead resides in 'lib' (assume, of
course, that ARCH_LIB_DIR != 'lib').

Currently, this is fixed in a toolchain-specific fixup, e.g. by recreating a
missing symlink or copying over a missing file. Such toolchain specific
fixups are not very nice.

Moreover, in a subsequent patch, the value of ARCH_LIB_DIR changes for some
toolchains, causing them to have the same problem of a missing dynamic
loader. This used to be the case for older Linaro toolchains with libraries
in 'lib/<tuple>': Buildroot used to set ARCH_LIB_DIR=lib but the mentioned
patch changes it to 'lib/<tuple>' instead. As a result, the files directly
under 'lib/' will no longer be copied. There should be none, but the dynamic
loader is a notable exception.
[Note: support for these older Linaro toolchain has been removed in 2016.11]

Instead, copy over the ld.so file(s)/link(s) from the extracted toolchain
into staging, in the central copy_toolchain_sysroot function. The existing
toolchain logic will then handle the copy of these files from staging to
target.
This means the toolchain-specific fixups can be removed.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-05 21:22:21 +02:00
..
toolchain-external-codescape-img-mips toolchain: bump Codescape IMG MIPS version to 2016.05-06 2017-01-16 11:56:11 +01:00
toolchain-external-codescape-mti-mips toolchain: bump Codescape MTI MIPS version to 2016.05-06 2017-01-16 13:10:24 +01:00
toolchain-external-codesourcery-aarch64 toolchain-external: handle ld.so fixups centrally 2017-04-05 21:22:21 +02:00
toolchain-external-codesourcery-amd64 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19 2017-01-27 22:22:56 +13:00
toolchain-external-codesourcery-arm toolchain-external: disallow sourcery codebench ARM toolchain for ARMv8 cores 2016-12-06 21:38:24 +01:00
toolchain-external-codesourcery-mips
toolchain-external-codesourcery-niosII toolchain-external: bump CodeSourcery NIOSII to 2016.11 2016-12-27 23:36:42 +01:00
toolchain-external-codesourcery-sh
toolchain-external-codesourcery-x86
toolchain-external-custom toolchain: add 4.10.x choice for headers 2017-02-20 21:55:55 +01:00
toolchain-external-linaro-aarch64 toolchain-external: bump Linaro AArch64 toolchain to 2017.02 2017-02-20 21:58:53 +01:00
toolchain-external-linaro-arm toolchain-external: bump Linaro ARM toolchain to 2017.02 2017-02-20 21:58:40 +01:00
toolchain-external-linaro-armeb toolchain-external: bump Linaro ARMeb toolchain to 2017.02 2017-02-20 21:58:46 +01:00
toolchain-external-synopsys-arc toolchain-external: Update Synopsys prebuilt toolchain for ARC cores 2017-02-04 23:57:43 +01:00
Config.in toolchain-external: remove musl-cross prebuilt toolchain 2016-12-17 14:21:00 +01:00
pkg-toolchain-external.mk toolchain/helpers.mk: remove unused argument of check_arm_abi 2017-03-26 15:25:52 +02:00
toolchain-external.mk toolchain-external: remove Arago toolchains 2016-11-23 22:32:14 +01:00