diff options
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 | } | ||