diff options
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc-common.inc | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc.inc | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc index 3101762b02..22da03b4c0 100644 --- a/meta/recipes-devtools/gcc/libgcc-common.inc +++ b/meta/recipes-devtools/gcc/libgcc-common.inc | |||
@@ -116,23 +116,23 @@ fakeroot python do_multilib_install() { | |||
116 | os.symlink(src, dest) | 116 | os.symlink(src, dest) |
117 | } | 117 | } |
118 | 118 | ||
119 | def get_original_vendoros(d): | ||
120 | vendoros = d.expand('${TARGET_VENDOR}-${TARGET_OS}') | ||
121 | for suffix in [d.getVar('ABIEXTENSION', True), d.getVar('LIBCEXTENSION', True)]: | ||
122 | if suffix and vendoros.endswith(suffix): | ||
123 | vendoros = vendoros[:-len(suffix)] | ||
124 | return vendoros | ||
125 | |||
126 | ORIG_TARGET_VENDOROS := "${@get_original_vendoros(d)}" | ||
127 | BASETARGET_SYS = "${TARGET_ARCH}${ORIG_TARGET_VENDOROS}" | ||
128 | |||
119 | addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot | 129 | addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot |
120 | fakeroot python do_extra_symlinks() { | 130 | fakeroot python do_extra_symlinks() { |
121 | targetsysnoext = d.getVar('TARGET_SYS_NO_EXTENSION', True) | 131 | targetsys = d.getVar('BASETARGET_SYS', True) |
122 | 132 | ||
123 | if targetsysnoext != d.getVar('TARGET_SYS', True): | 133 | if targetsys != d.getVar('TARGET_SYS', True): |
124 | dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsysnoext | 134 | dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsys |
125 | src = d.getVar('TARGET_SYS', True) | 135 | src = d.getVar('TARGET_SYS', True) |
126 | if not os.path.lexists(dest) and os.path.lexists(d.getVar('D', True) + d.getVar('libdir', True)): | 136 | if not os.path.lexists(dest) and os.path.lexists(d.getVar('D', True) + d.getVar('libdir', True)): |
127 | os.symlink(src, dest) | 137 | os.symlink(src, dest) |
128 | } | 138 | } |
129 | |||
130 | python () { | ||
131 | targetsysnoext = d.getVar('TARGET_SYS', True) | ||
132 | |||
133 | for suffix in [d.getVar('ABIEXTENSION', True), d.getVar('LIBCEXTENSION', True)]: | ||
134 | if suffix and targetsysnoext.endswith(suffix): | ||
135 | targetsysnoext = targetsysnoext[:-len(suffix)] | ||
136 | |||
137 | d.setVar('TARGET_SYS_NO_EXTENSION', targetsysnoext) | ||
138 | } | ||
diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc index 35432c793e..739adbd968 100644 --- a/meta/recipes-devtools/gcc/libgcc.inc +++ b/meta/recipes-devtools/gcc/libgcc.inc | |||
@@ -24,7 +24,7 @@ FILES_${PN}-dev = "\ | |||
24 | ${libdir}/${TARGET_SYS}/${BINV}/x32 \ | 24 | ${libdir}/${TARGET_SYS}/${BINV}/x32 \ |
25 | ${libdir}/${TARGET_SYS}/${BINV}/n32 \ | 25 | ${libdir}/${TARGET_SYS}/${BINV}/n32 \ |
26 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc* \ | 26 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc* \ |
27 | ${@base_conditional('TARGET_SYS_NO_EXTENSION', '${TARGET_SYS}', '', '${libdir}/${TARGET_SYS_NO_EXTENSION}', d)} \ | 27 | ${@base_conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ |
28 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ | 28 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ |
29 | " | 29 | " |
30 | 30 | ||