summaryrefslogtreecommitdiff
path: root/classes/chicken.bbclass
blob: 5ebe1ff46262467fdb70239ddb71bf0a45ebd205 (plain)
1
2
3
4
5
6
7
8
9
10
11
def chicken_arch(bb, d):
    import re
    arch_pattern = re.compile('^i.*86$')
    target_arch = d.getVar("TARGET_ARCH", 1)
    if arch_pattern.match(target_arch):
        return 'x86'
    else:
        return target_arch

CHICKEN_ARCH = "${@chicken_arch(bb, d)}"