summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/goarch.bbclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 8b95c5fe94..9ed562d5ab 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -43,10 +43,14 @@ def go_map_arch(a, d):
43 return 'mips64le' 43 return 'mips64le'
44 elif re.match('mips64*', a): 44 elif re.match('mips64*', a):
45 return 'mips64' 45 return 'mips64'
46 elif re.match('mipsel*', a): 46 elif re.match('mips.*', a):
47 return 'mipsle' 47 tf = d.getVar('TUNE_FEATURES').split()
48 elif re.match('mips*', a): 48 if 'fpu-hard' in tf and 'n32' not in tf:
49 return 'mips' 49 if 'mips32r2' in tf:
50 newtf = [t for t in tf if t != 'mips32r2']
51 newtf.append('mips32')
52 d.setVar('TUNE_FEATURES', ' '.join(newtf))
53 return 'mips' if 'bigendian' in tf else 'mipsle'
50 elif re.match('p(pc|owerpc)(64)', a): 54 elif re.match('p(pc|owerpc)(64)', a):
51 return 'ppc64' 55 return 'ppc64'
52 elif re.match('p(pc|owerpc)(64el)', a): 56 elif re.match('p(pc|owerpc)(64el)', a):