package/bayer2rgb-neon: enable for BR2_aarch64
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Wed, 8 Sep 2021 14:55:24 +0000 (16:55 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 10 Sep 2021 21:00:01 +0000 (23:00 +0200)
Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/bayer2rgb-neon/Config.in
package/bayer2rgb-neon/bayer2rgb-neon.mk

index 8fd18b4fa95cb88cc1d2f1bddf82483894d23f9c..7822171020a95855d877212bcd95c325f457eb4e 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_BAYER2RGB_NEON
        bool "bayer2rgb-neon"
-       depends on BR2_arm && BR2_ARM_CPU_HAS_NEON
+       depends on (BR2_arm && BR2_ARM_CPU_HAS_NEON) || BR2_aarch64
        depends on !BR2_STATIC_LIBS
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
index a483890c810a1a8e8d168eea6086ef688fa22af3..212fe767666925ef086b70772f1b8f2acc352095 100644 (file)
@@ -13,6 +13,12 @@ BAYER2RGB_NEON_INSTALL_STAGING = YES
 BAYER2RGB_NEON_DEPENDENCIES = host-pkgconf host-gengetopt
 BAYER2RGB_NEON_AUTORECONF = YES
 
-BAYER2RGB_NEON_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -mfpu=neon"
+BAYER2RGB_NEON_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_arm),y)
+BAYER2RGB_NEON_CFLAGS += -mfpu=neon
+endif
+
+BAYER2RGB_NEON_CONF_ENV = CFLAGS="$(BAYER2RGB_NEON_CFLAGS)"
 
 $(eval $(autotools-package))