[Buildroot] [PATCH 3/4] package/libpng: enable neon support for aarch64

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat May 9 20:24:32 UTC 2020


On Mon,  4 May 2020 01:07:53 +0200
Romain Naour <romain.naour at gmail.com> wrote:

> NEON support is enabled by default on aarch64, so we
> can enable it unconditionaly.
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> ---
>  package/libpng/libpng.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk
> index 5c30a4f9ad..1a83c7e712 100644
> --- a/package/libpng/libpng.mk
> +++ b/package/libpng/libpng.mk
> @@ -15,7 +15,7 @@ LIBPNG_DEPENDENCIES = host-pkgconf zlib
>  HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
>  LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
>  
> -ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
> +ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_aarch64),y)
>  LIBPNG_CONF_OPTS += --enable-arm-neon
>  else
>  LIBPNG_CONF_OPTS += --disable-arm-neon

I've applied to next. However, I find it not so nice that the option
BR2_ARM_CPU_HAS_NEON is never true for AArch64, even though there is
NEON support on AArch64.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list