buildroot/toolchain
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 core/pkg-cmake: provide our own platform description 2017-03-01 21:56:24 +01:00
toolchain-buildroot uclibc: allow to build aarch64 internal toolchain 2017-02-03 20:58:56 +01:00
toolchain-external toolchain-external: handle ld.so fixups centrally 2017-04-05 21:22:21 +02:00
Config.in arch: add support for the csky architecture 2017-03-04 14:35:55 +01:00
helpers.mk toolchain-external: handle ld.so fixups centrally 2017-04-05 21:22:21 +02:00
toolchain-common.in toolchain: add 4.10.x choice for headers 2017-02-20 21:55:55 +01:00
toolchain-wrapper.c Revert "reproducible: fix DATE/TIME macros in toolchain-wrapper" 2017-02-20 23:26:05 +01:00
toolchain-wrapper.mk arch/Config.in.mips: add support for XBurst cores 2016-11-09 21:36:34 +01:00
toolchain.mk toolchain: use the <PKG>_TARGET_FINALIZE_HOOKS 2016-07-18 23:30:46 +02:00