From 0512910e4901edcb78bb1daa4eb3be9bdc4dc8a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Szymanski?= Date: Wed, 8 Sep 2021 16:55:24 +0200 Subject: [PATCH] package/bayer2rgb-neon: enable for BR2_aarch64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Szymanski Signed-off-by: Yann E. MORIN --- package/bayer2rgb-neon/Config.in | 2 +- package/bayer2rgb-neon/bayer2rgb-neon.mk | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package/bayer2rgb-neon/Config.in b/package/bayer2rgb-neon/Config.in index 8fd18b4fa9..7822171020 100644 --- a/package/bayer2rgb-neon/Config.in +++ b/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 diff --git a/package/bayer2rgb-neon/bayer2rgb-neon.mk b/package/bayer2rgb-neon/bayer2rgb-neon.mk index a483890c81..212fe76766 100644 --- a/package/bayer2rgb-neon/bayer2rgb-neon.mk +++ b/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)) -- 2.30.2