Thanks, applied as dcf1b0cdf95ab0f9870afc9284cadc159958ea1a.

Michael

[sent from post-receive hook]

On Fri, 09 May 2025 09:25:06 +0200, Michael Tretter <[email protected]> 
wrote:
> If libmvec is available depends on the architecture and the glibc
> version. Thus, it is not available on all architectures.
> 
> This is a problem on a BSP that contains platforms with different
> architectures, if some of the architectures have libmvec and others
> don't.
> 
> Respect PTXCONF_GLIBC_MVEC only on architectures that actually have
> libmvec and ignore the setting otherwise.
> 
> Signed-off-by: Michael Tretter <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/rules/glibc.make b/rules/glibc.make
> index 2dd74a70fe80..74caeb31664b 100644
> --- a/rules/glibc.make
> +++ b/rules/glibc.make
> @@ -26,6 +26,17 @@ GLIBC_VERSION      := $(call ptx/config-version, 
> PTXCONF_GLIBC)
>  # Prepare
>  # 
> ----------------------------------------------------------------------------
>  
> +GLIBC_INSTALL_MVEC :=
> +ifdef PTXCONF_ARCH_X86
> +GLIBC_INSTALL_MVEC := $(PTXCONF_GLIBC_MVEC)
> +endif
> +ifdef PTXCONF_ARCH_ARM64
> +# libmvec support has been added to AArch64 with glibc version 2.38
> +ifdef PTXCONF_GLIBC_2_38
> +GLIBC_INSTALL_MVEC := $(PTXCONF_GLIBC_MVEC)
> +endif
> +endif
> +
>  $(STATEDIR)/glibc.prepare:
>       @$(call targetinfo)
>  ifdef PTXCONF_GLIBC_Y2038
> @@ -88,7 +99,7 @@ ifdef PTXCONF_GLIBC_M
>       @$(call install_copy_toolchain_lib, glibc, libm.so.6)
>  endif
>  
> -ifdef PTXCONF_GLIBC_MVEC
> +ifdef GLIBC_INSTALL_MVEC
>       @$(call install_copy_toolchain_lib, glibc, libmvec.so.1)
>  endif
>  

Reply via email to