mortsgna-armv7-tune: fix incorrect if condition

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2021-08-16 12:17:03 +02:00
parent d7feada280
commit 460d41871c

View File

@@ -4,7 +4,11 @@ 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' or 'armv7ve' or 'cortexa7' or 'cortexa8' or 'cortexa9' in features:
if 'armv7a' in features or \
'armv7ve' in features or \
'cortexa7' in features or \
'cortexa8' in features or \
'cortexa9' in features:
tune = 'armv7athf'
if 'bigendian' in features:
tune += 'b'