Browse Source

package/bayer2rgb-neon: enable for BR2_aarch64

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Sébastien Szymanski 3 years ago
parent
commit
0512910e49
2 changed files with 8 additions and 2 deletions
  1. 1 1
      package/bayer2rgb-neon/Config.in
  2. 7 1
      package/bayer2rgb-neon/bayer2rgb-neon.mk

+ 1 - 1
package/bayer2rgb-neon/Config.in

@@ -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

+ 7 - 1
package/bayer2rgb-neon/bayer2rgb-neon.mk

@@ -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))