summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/cross-canadian.bbclass2
-rw-r--r--meta/recipes-devtools/gcc/libgcc-common.inc11
2 files changed, 8 insertions, 5 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index 099c0daf42..21921b3dd0 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -80,7 +80,7 @@ python () {
80 for extraos in d.getVar("BASECANADIANEXTRAOS", True).split(): 80 for extraos in d.getVar("BASECANADIANEXTRAOS", True).split():
81 d.appendVar("CANADIANEXTRAOS", " " + extraos + "n32") 81 d.appendVar("CANADIANEXTRAOS", " " + extraos + "n32")
82 if tarch == "arm" or tarch == "armeb": 82 if tarch == "arm" or tarch == "armeb":
83 d.appendVar("CANADIANEXTRAOS", " linux-musleabi linux-uclibceabi") 83 d.appendVar("CANADIANEXTRAOS", " linux-gnueabi linux-musleabi linux-uclibceabi")
84 d.setVar("TARGET_OS", "linux-gnueabi") 84 d.setVar("TARGET_OS", "linux-gnueabi")
85 else: 85 else:
86 d.setVar("TARGET_OS", "linux") 86 d.setVar("TARGET_OS", "linux")
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc
index 4e4f0fd03b..1549eb4b62 100644
--- a/meta/recipes-devtools/gcc/libgcc-common.inc
+++ b/meta/recipes-devtools/gcc/libgcc-common.inc
@@ -123,15 +123,18 @@ fakeroot python do_multilib_install() {
123 os.symlink(src, dest) 123 os.symlink(src, dest)
124} 124}
125 125
126def get_original_vendoros(d): 126def get_original_os(d):
127 vendoros = d.expand('${TARGET_VENDOR}-${TARGET_OS}') 127 vendoros = d.expand('${TARGET_ARCH}${ORIG_TARGET_VENDOR}-${TARGET_OS}')
128 for suffix in [d.getVar('ABIEXTENSION', True), d.getVar('LIBCEXTENSION', True)]: 128 for suffix in [d.getVar('ABIEXTENSION', True), d.getVar('LIBCEXTENSION', True)]:
129 if suffix and vendoros.endswith(suffix): 129 if suffix and vendoros.endswith(suffix):
130 vendoros = vendoros[:-len(suffix)] 130 vendoros = vendoros[:-len(suffix)]
131 # Arm must use linux-gnueabi not linux as only the former is accepted by gcc
132 if vendoros.startswith("arm-") and not vendoros.endswith("-gnueabi"):
133 vendoros = vendoros + "-gnueabi"
131 return vendoros 134 return vendoros
132 135
133ORIG_TARGET_VENDOROS := "${@get_original_vendoros(d)}" 136ORIG_TARGET_VENDOR := "${TARGET_VENDOR}"
134BASETARGET_SYS = "${TARGET_ARCH}${ORIG_TARGET_VENDOROS}" 137BASETARGET_SYS = "${@get_original_os(d)}"
135 138
136addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot 139addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot
137fakeroot python do_extra_symlinks() { 140fakeroot python do_extra_symlinks() {