diff options
Diffstat (limited to 'meta-phosphor/common/recipes-devtools/nodejs/nodejs_4.8.2.bbappend')
-rw-r--r-- | meta-phosphor/common/recipes-devtools/nodejs/nodejs_4.8.2.bbappend | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-devtools/nodejs/nodejs_4.8.2.bbappend b/meta-phosphor/common/recipes-devtools/nodejs/nodejs_4.8.2.bbappend new file mode 100644 index 000000000..a70300d86 --- /dev/null +++ b/meta-phosphor/common/recipes-devtools/nodejs/nodejs_4.8.2.bbappend @@ -0,0 +1,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 |