mortsgna-armv7-tune.inc: Fix MORTSGNA_ARMV7_TUNE for most common machines

Fixes [1]

[1] https://github.com/schnitzeltony/meta-mortsgna/issues/13

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2020-02-22 12:38:14 +01:00
parent e450bd9313
commit 08c4665a82

View File

@@ -4,7 +4,7 @@ def armv7_tune_handler(d):
# to common tune value
if d.getVar('MORTSGNA_ARMV7_TUNE') == '1':
features = d.getVar('TUNE_FEATURES').split()
if 'armv7a' in features or 'armv7ve' in features:
if 'armv7a' in features or 'armv7ve' or 'armv7ve' or 'cortexa7' or 'cortexa8' or 'cortexa9' in features:
tune = 'armv7athf'
if 'bigendian' in features:
tune += 'b'
@@ -12,6 +12,5 @@ def armv7_tune_handler(d):
tune += '-neon'
else:
tune = d.getVar('DEFAULTTUNE')
return tune