1obj-$(CONFIG_RAID6_PQ) += raid6_pq.o 2 3raid6_pq-y += algos.o recov.o tables.o int1.o int2.o int4.o \ 4 int8.o int16.o int32.o 5 6raid6_pq-$(CONFIG_X86) += recov_ssse3.o recov_avx2.o mmx.o sse1.o sse2.o avx2.o 7raid6_pq-$(CONFIG_ALTIVEC) += altivec1.o altivec2.o altivec4.o altivec8.o 8raid6_pq-$(CONFIG_TILEGX) += tilegx8.o 9 10hostprogs-y += mktables 11 12quiet_cmd_unroll = UNROLL $@ 13 cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \ 14 < $< > $@ || ( rm -f $@ && exit 1 ) 15 16ifeq ($(CONFIG_ALTIVEC),y) 17altivec_flags := -maltivec -mabi=altivec 18endif 19 20targets += int1.c 21$(obj)/int1.c: UNROLL := 1 22$(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE 23 $(call if_changed,unroll) 24 25targets += int2.c 26$(obj)/int2.c: UNROLL := 2 27$(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE 28 $(call if_changed,unroll) 29 30targets += int4.c 31$(obj)/int4.c: UNROLL := 4 32$(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE 33 $(call if_changed,unroll) 34 35targets += int8.c 36$(obj)/int8.c: UNROLL := 8 37$(obj)/int8.c: $(src)/int.uc $(src)/unroll.awk FORCE 38 $(call if_changed,unroll) 39 40targets += int16.c 41$(obj)/int16.c: UNROLL := 16 42$(obj)/int16.c: $(src)/int.uc $(src)/unroll.awk FORCE 43 $(call if_changed,unroll) 44 45targets += int32.c 46$(obj)/int32.c: UNROLL := 32 47$(obj)/int32.c: $(src)/int.uc $(src)/unroll.awk FORCE 48 $(call if_changed,unroll) 49 50CFLAGS_altivec1.o += $(altivec_flags) 51targets += altivec1.c 52$(obj)/altivec1.c: UNROLL := 1 53$(obj)/altivec1.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 54 $(call if_changed,unroll) 55 56CFLAGS_altivec2.o += $(altivec_flags) 57targets += altivec2.c 58$(obj)/altivec2.c: UNROLL := 2 59$(obj)/altivec2.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 60 $(call if_changed,unroll) 61 62CFLAGS_altivec4.o += $(altivec_flags) 63targets += altivec4.c 64$(obj)/altivec4.c: UNROLL := 4 65$(obj)/altivec4.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 66 $(call if_changed,unroll) 67 68CFLAGS_altivec8.o += $(altivec_flags) 69targets += altivec8.c 70$(obj)/altivec8.c: UNROLL := 8 71$(obj)/altivec8.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 72 $(call if_changed,unroll) 73 74targets += tilegx8.c 75$(obj)/tilegx8.c: UNROLL := 8 76$(obj)/tilegx8.c: $(src)/tilegx.uc $(src)/unroll.awk FORCE 77 $(call if_changed,unroll) 78 79quiet_cmd_mktable = TABLE $@ 80 cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 ) 81 82targets += tables.c 83$(obj)/tables.c: $(obj)/mktables FORCE 84 $(call if_changed,mktable) 85