diff options
author | Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> | 2014-02-27 14:17:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-28 14:01:14 +0000 |
commit | 83b20f850881580660b74d571edf2f2586a7d473 (patch) | |
tree | 158e2b9eedd5d18b615555f1e05bb0f9f8d8d3ac /meta/recipes-devtools/gcc/libgcc.inc | |
parent | 9744e0fb0adc25d5a2c7c376ebfbf42abbe9e9ad (diff) | |
download | poky-83b20f850881580660b74d571edf2f2586a7d473.tar.gz |
gcc: Enable SPE & AltiVec generation on powepc*linux target.
[ADT bug #5761] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=5761
Also this patch adds symlinks to libgcc such that a GCC configured
by passing the target parameter without LIBCEXTENSION and ABIEXTENSION
specifiers to find the correct startup files from a libgcc configured
with these variables.
(From OE-Core rev: 97f2a81d6796ddaf7bbaab86c2ab9039673c732c)
Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/libgcc.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc.inc | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc index fe98238677..b185660ffd 100644 --- a/meta/recipes-devtools/gcc/libgcc.inc +++ b/meta/recipes-devtools/gcc/libgcc.inc | |||
@@ -17,7 +17,8 @@ FILES_${PN}-dev = " \ | |||
17 | ${libdir}/${TARGET_SYS}/${BINV}/32 \ | 17 | ${libdir}/${TARGET_SYS}/${BINV}/32 \ |
18 | ${libdir}/${TARGET_SYS}/${BINV}/x32 \ | 18 | ${libdir}/${TARGET_SYS}/${BINV}/x32 \ |
19 | ${libdir}/${TARGET_SYS}/${BINV}/n32 \ | 19 | ${libdir}/${TARGET_SYS}/${BINV}/n32 \ |
20 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc*" | 20 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc* \ |
21 | ${@base_conditional('TARGET_SYS_NO_EXTENSION', '${TARGET_SYS}', '', '${libdir}/${TARGET_SYS_NO_EXTENSION}', d)}" | ||
21 | FILES_libgcov-dev = " \ | 22 | FILES_libgcov-dev = " \ |
22 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ | 23 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ |
23 | " | 24 | " |
@@ -141,3 +142,24 @@ python do_multilib_install() { | |||
141 | os.unlink(dest) | 142 | os.unlink(dest) |
142 | os.symlink(src, dest) | 143 | os.symlink(src, dest) |
143 | } | 144 | } |
145 | |||
146 | addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot | ||
147 | python do_extra_symlinks() { | ||
148 | targetsysnoext = d.getVar('TARGET_SYS_NO_EXTENSION', True) | ||
149 | |||
150 | if targetsysnoext != d.getVar('TARGET_SYS', True): | ||
151 | dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsysnoext | ||
152 | src = d.getVar('TARGET_SYS', True) | ||
153 | if not os.path.lexists(dest): | ||
154 | os.symlink(src, dest) | ||
155 | } | ||
156 | |||
157 | python () { | ||
158 | targetsysnoext = d.getVar('TARGET_SYS', True) | ||
159 | |||
160 | for suffix in [d.getVar('ABIEXTENSION', True), d.getVar('LIBCEXTENSION', True)]: | ||
161 | if suffix and targetsysnoext.endswith(suffix): | ||
162 | targetsysnoext = targetsysnoext[:-len(suffix)] | ||
163 | |||
164 | d.setVar('TARGET_SYS_NO_EXTENSION', targetsysnoext) | ||
165 | } | ||