Makefile (2008d89fb6435a3a900b72b856a18e0cc0d2c057) | Makefile (7b3c70c43c13ad8e59f5561b154663d6bdb77021) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# This is a simple Makefile to test some of the RAID-6 code 4# from userspace. 5# 6 7pound := \# 8 --- 21 unchanged lines hidden (view full) --- 30 CFLAGS += -I../../../arch/arm/include -mfpu=neon 31 HAS_NEON = yes 32endif 33ifeq ($(ARCH),aarch64) 34 CFLAGS += -I../../../arch/arm64/include 35 HAS_NEON = yes 36endif 37 | 1# SPDX-License-Identifier: GPL-2.0 2# 3# This is a simple Makefile to test some of the RAID-6 code 4# from userspace. 5# 6 7pound := \# 8 --- 21 unchanged lines hidden (view full) --- 30 CFLAGS += -I../../../arch/arm/include -mfpu=neon 31 HAS_NEON = yes 32endif 33ifeq ($(ARCH),aarch64) 34 CFLAGS += -I../../../arch/arm64/include 35 HAS_NEON = yes 36endif 37 |
38ifeq ($(findstring ppc,$(ARCH)),ppc) 39 CFLAGS += -I../../../arch/powerpc/include 40 HAS_ALTIVEC := $(shell printf '$(pound)include <altivec.h>\nvector int a;\n' |\ 41 gcc -c -x c - >/dev/null && rm ./-.o && echo yes) 42endif 43 |
|
38ifeq ($(IS_X86),yes) 39 OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o 40 CFLAGS += -DCONFIG_X86 41 CFLAGS += $(shell echo "vpmovm2b %k1, %zmm5" | \ 42 gcc -c -x assembler - >/dev/null 2>&1 && \ 43 rm ./-.o && echo -DCONFIG_AS_AVX512=1) 44else ifeq ($(HAS_NEON),yes) 45 OBJS += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o 46 CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1 | 44ifeq ($(IS_X86),yes) 45 OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o 46 CFLAGS += -DCONFIG_X86 47 CFLAGS += $(shell echo "vpmovm2b %k1, %zmm5" | \ 48 gcc -c -x assembler - >/dev/null 2>&1 && \ 49 rm ./-.o && echo -DCONFIG_AS_AVX512=1) 50else ifeq ($(HAS_NEON),yes) 51 OBJS += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o 52 CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1 |
47else 48 HAS_ALTIVEC := $(shell printf '$(pound)include <altivec.h>\nvector int a;\n' |\ 49 gcc -c -x c - >/dev/null && rm ./-.o && echo yes) 50 ifeq ($(HAS_ALTIVEC),yes) 51 CFLAGS += -I../../../arch/powerpc/include 52 CFLAGS += -DCONFIG_ALTIVEC 53 OBJS += altivec1.o altivec2.o altivec4.o altivec8.o \ 54 vpermxor1.o vpermxor2.o vpermxor4.o vpermxor8.o 55 endif | 53else ifeq ($(HAS_ALTIVEC),yes) 54 CFLAGS += -DCONFIG_ALTIVEC 55 OBJS += altivec1.o altivec2.o altivec4.o altivec8.o \ 56 vpermxor1.o vpermxor2.o vpermxor4.o vpermxor8.o |
56endif 57 58.c.o: 59 $(CC) $(CFLAGS) -c -o $@ $< 60 61%.c: ../%.c 62 cp -f $< $@ 63 --- 75 unchanged lines hidden --- | 57endif 58 59.c.o: 60 $(CC) $(CFLAGS) -c -o $@ $< 61 62%.c: ../%.c 63 cp -f $< $@ 64 --- 75 unchanged lines hidden --- |