From 72592dc62c0de0c4c55b889e1a2e2958ceae23d6 Mon Sep 17 00:00:00 2001 From: Oliver Schib Date: Fri, 8 Jan 2016 19:32:20 +0100 Subject: Add SSE2 optimisation to BruteFIR Signed-off-by: Oliver Schib --- package/brutefir/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/brutefir') diff --git a/package/brutefir/Makefile b/package/brutefir/Makefile index 23577ad23..a65661aad 100644 --- a/package/brutefir/Makefile +++ b/package/brutefir/Makefile @@ -22,9 +22,13 @@ include $(ADK_TOPDIR)/mk/package.mk $(eval $(call PKG_template,BRUTEFIR,brutefir,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION))) -ifeq ($(ADK_TARGET_ARCH_X86)$(ADK_TARGET_ARCH_X86_64),y) +ifeq ($(ADK_TARGET_CPU_WITH_SSE2),y) +TARGET_CFLAGS+= -msse2 +else +ifeq($ADK_TARGET_CPU_WITH_SSE),y) TARGET_CFLAGS+= -msse endif +endif GCCPATH:= $(subst libgcc.a,,$(shell $(TARGET_CC) -print-libgcc-file-name)) XAKE_FLAGS+= LIBPATHS="-L$(GCCPATH)" -- cgit v1.2.3