From: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com> --- meta/classes-recipe/nodejs-arch.bbclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta/classes-recipe/nodejs-arch.bbclass diff --git a/meta/classes-recipe/nodejs-arch.bbclass b/meta/classes-recipe/nodejs-arch.bbclass new file mode 100644 index 0000000000..144eaf8409 --- /dev/null +++ b/meta/classes-recipe/nodejs-arch.bbclass @@ -0,0 +1,15 @@ +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +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|powerpc64le|ppc64le)$', a): return 'ppc64' + elif re.match('powerpc$', a): return 'ppc' + return a -- 2.39.5
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211138): https://lists.openembedded.org/g/openembedded-core/message/211138 Mute This Topic: https://lists.openembedded.org/mt/111123533/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-