On Tue, 11 Feb 2025 at 16:01, Stefan Herbrechtsmeier via
lists.openembedded.org
<stefan.herbrechtsmeier-oss=weidmueller....@lists.openembedded.org>
wrote:
> 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

Why does this need to be in a bbclass, and not in a library function?
Are there multiple users, what are they?

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211222): 
https://lists.openembedded.org/g/openembedded-core/message/211222
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to