summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-devtools/nodejs/nodejs_4.8.2.bbappend
blob: a70300d8620b34263494c28aef5d05e64075a23e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Overriding map_nodejs_arch() is needed to support building nodejs on ppc64le
# We can remove this, once OpenBMC moves to a version of Yocto with
# http://lists.openembedded.org/pipermail/openembedded-devel/2018-February/116737.html
def map_nodejs_arch(a, d):
        import re

        if   re.match('i.86$', a): return 'ia32'
        elif re.match('x86_64$', a): return 'x64'
        elif re.match('aarch64$', a): return 'arm64'
        elif re.match('(powerpc64|ppc64le)$', a): return 'ppc64'
        elif re.match('powerpc$', a): return 'ppc'
        return a