]> code.ossystems Code Review - openembedded-core.git/commit
gcc: Add support for nativesdk-gcc
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jul 2015 13:23:37 +0000 (14:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 Jul 2015 09:30:58 +0000 (10:30 +0100)
commitcd3d874fced2ee4c950d9964d30c0588fd8772e7
treea0e9777b7106583e51f3271faae6af06526071ea
parent20e585543d3e8c143921de665ceed6c0c2c90e73
gcc: Add 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.

This patch adds tweaks to the relocation script to handle the
new section too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/tcmode-default.inc
meta/recipes-devtools/gcc/gcc-4.9.inc
meta/recipes-devtools/gcc/gcc-4.9/0063-nativesdk-gcc-support.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-5.2.inc
meta/recipes-devtools/gcc/gcc-5.2/0040-nativesdk-gcc-support.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-multilib-config.inc
meta/recipes-devtools/gcc/gcc_4.8.bb
meta/recipes-devtools/gcc/gcc_4.9.bb
meta/recipes-devtools/gcc/gcc_5.2.bb
scripts/relocate_sdk.py