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

git at git.openembedded.org git at git.openembedded.org
Fri Jul 31 09:44:14 UTC 2015


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

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/conf/distro/include/tcmode-default.inc        |   1 +
 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                            |  13 +-
 10 files changed, 450 insertions(+), 10 deletions(-)

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


More information about the Openembedded-commits mailing list