1 obj-$(CONFIG_RAID6_PQ) += raid6_pq.o
3 raid6_pq-y += algos.o recov.o tables.o int1.o int2.o int4.o \
6 raid6_pq-$(CONFIG_X86) += recov_ssse3.o recov_avx2.o mmx.o sse1.o sse2.o avx2.o
7 raid6_pq-$(CONFIG_ALTIVEC) += altivec1.o altivec2.o altivec4.o altivec8.o
9 hostprogs-y += mktables
11 quiet_cmd_unroll = UNROLL $@
12 cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \
13 < $< > $@ || ( rm -f $@ && exit 1 )
15 ifeq ($(CONFIG_ALTIVEC),y)
16 altivec_flags := -maltivec -mabi=altivec
20 $(obj)/int1.c: UNROLL := 1
21 $(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE
22 $(call if_changed,unroll)
25 $(obj)/int2.c: UNROLL := 2
26 $(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE
27 $(call if_changed,unroll)
30 $(obj)/int4.c: UNROLL := 4
31 $(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE
32 $(call if_changed,unroll)
35 $(obj)/int8.c: UNROLL := 8
36 $(obj)/int8.c: $(src)/int.uc $(src)/unroll.awk FORCE
37 $(call if_changed,unroll)
40 $(obj)/int16.c: UNROLL := 16
41 $(obj)/int16.c: $(src)/int.uc $(src)/unroll.awk FORCE
42 $(call if_changed,unroll)
45 $(obj)/int32.c: UNROLL := 32
46 $(obj)/int32.c: $(src)/int.uc $(src)/unroll.awk FORCE
47 $(call if_changed,unroll)
49 CFLAGS_altivec1.o += $(altivec_flags)
51 $(obj)/altivec1.c: UNROLL := 1
52 $(obj)/altivec1.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
53 $(call if_changed,unroll)
55 CFLAGS_altivec2.o += $(altivec_flags)
57 $(obj)/altivec2.c: UNROLL := 2
58 $(obj)/altivec2.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
59 $(call if_changed,unroll)
61 CFLAGS_altivec4.o += $(altivec_flags)
63 $(obj)/altivec4.c: UNROLL := 4
64 $(obj)/altivec4.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
65 $(call if_changed,unroll)
67 CFLAGS_altivec8.o += $(altivec_flags)
69 $(obj)/altivec8.c: UNROLL := 8
70 $(obj)/altivec8.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
71 $(call if_changed,unroll)
73 quiet_cmd_mktable = TABLE $@
74 cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 )
77 $(obj)/tables.c: $(obj)/mktables FORCE
78 $(call if_changed,mktable)