Signed-off-by: Vladimir Murzin murzin.v@gmail.com --- lib/raid6/test/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile index 087332d..50b80a7 100644 --- a/lib/raid6/test/Makefile +++ b/lib/raid6/test/Makefile @@ -34,6 +34,16 @@ else ifeq ($(HAS_ALTIVEC),yes) OBJS += altivec1.o altivec2.o altivec4.o altivec8.o endif + + HAS_NEON := $(shell echo -e ".fpu neon \t\n veor d0, d0, d0 \t\n" |\ + gcc -c -x assembler - >&/dev/null && \ + rm ./-.o && echo yes) + ifeq ($(HAS_NEON),yes) + OBJS += neon_glue.o neon.o + CFLAGS += -DCONFIG_NEON + SFLAGS = -D__ASSEMBLY__ -include asm/unified.h + SFLAGS += -I ../../../include -I ../../../arch/arm/include + endif endif
.c.o: @@ -88,6 +98,9 @@ int32.c: int.uc ../unroll.awk tables.c: mktables ./mktables > tables.c
+neon.o: ../neon.S + $(CC) $(SFLAGS) -c -o $@ $^ + clean: rm -f *.o *.a mktables mktables.c *.uc int*.c altivec*.c tables.c raid6test