[oe-commits] Richard Purdie : gcc: Add support for nativesdk-gcc

git at git.openembedded.org git at git.openembedded.org
Wed Jul 29 23:29:31 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 8e557bfd97c446f25dd8e7ea98f62338fdaf33c8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8e557bfd97c446f25dd8e7ea98f62338fdaf33c8

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Jul 28 14:23:37 2015 +0100

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 at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-4.9.inc              |   1 +
 .../gcc/gcc-4.9/0063-nativesdk-gcc-support.patch   | 204 +++++++++++++++++++++
 meta/recipes-devtools/gcc/gcc-5.2.inc              |   1 +
 .../gcc/gcc-5.2/0040-nativesdk-gcc-support.patch   | 204 +++++++++++++++++++++
 meta/recipes-devtools/gcc/gcc-multilib-config.inc  |  25 ++-
 meta/recipes-devtools/gcc/gcc_4.8.bb               |   2 +
 meta/recipes-devtools/gcc/gcc_4.9.bb               |   7 +
 meta/recipes-devtools/gcc/gcc_5.2.bb               |   2 +
 scripts/relocate_sdk.py                            |  14 +-
 9 files changed, 450 insertions(+), 10 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=8e557bfd97c446f25dd8e7ea98f62338fdaf33c8


More information about the Openembedded-commits mailing list