Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
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
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))