aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-distro/conf/distro/include/arm-default-tune.inc
blob: 5a6f44fe573bb292a17c7c45a901131c9d297853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def arm_tune_handler(d):
    features = d.getVar('TUNE_FEATURES', True).split()
    if 'armv7a' in features or 'armv7ve' in features:
        tune = 'armv7athf'
        if 'bigendian' in features:
            tune += 'b'
        if 'vfpv3' in features:
            tune += '-vfpv3'
        if 'vfpv3d16' in features:
            tune += '-vfpv3d16'
        if 'neon' in features:
            tune += '-neon'
        if 'vfpv4' in features:
            tune += '-vfpv4'
    else:
        tune = d.getVar('DEFAULTTUNE', True)
    return tune
DEFAULTTUNE_agl := "${@arm_tune_handler(d)}"