1 obj-$(CONFIG_RAID6_PQ) += raid6_pq.o
3 raid6_pq-y += algos.o recov.o recov_ssse3.o tables.o int1.o int2.o int4.o \
4 int8.o int16.o int32.o altivec1.o altivec2.o altivec4.o \
5 altivec8.o mmx.o sse1.o sse2.o
6 hostprogs-y += mktables
8 quiet_cmd_unroll = UNROLL $@
9 cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \
10 < $< > $@ || ( rm -f $@ && exit 1 )
12 ifeq ($(CONFIG_ALTIVEC),y)
13 altivec_flags := -maltivec -mabi=altivec
17 $(obj)/int1.c: UNROLL := 1
18 $(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE
19 $(call if_changed,unroll)
22 $(obj)/int2.c: UNROLL := 2
23 $(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE
24 $(call if_changed,unroll)
27 $(obj)/int4.c: UNROLL := 4
28 $(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE
29 $(call if_changed,unroll)
32 $(obj)/int8.c: UNROLL := 8
33 $(obj)/int8.c: $(src)/int.uc $(src)/unroll.awk FORCE
34 $(call if_changed,unroll)
37 $(obj)/int16.c: UNROLL := 16
38 $(obj)/int16.c: $(src)/int.uc $(src)/unroll.awk FORCE
39 $(call if_changed,unroll)
42 $(obj)/int32.c: UNROLL := 32
43 $(obj)/int32.c: $(src)/int.uc $(src)/unroll.awk FORCE
44 $(call if_changed,unroll)
46 CFLAGS_altivec1.o += $(altivec_flags)
48 $(obj)/altivec1.c: UNROLL := 1
49 $(obj)/altivec1.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
50 $(call if_changed,unroll)
52 CFLAGS_altivec2.o += $(altivec_flags)
54 $(obj)/altivec2.c: UNROLL := 2
55 $(obj)/altivec2.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
56 $(call if_changed,unroll)
58 CFLAGS_altivec4.o += $(altivec_flags)
60 $(obj)/altivec4.c: UNROLL := 4
61 $(obj)/altivec4.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
62 $(call if_changed,unroll)
64 CFLAGS_altivec8.o += $(altivec_flags)
66 $(obj)/altivec8.c: UNROLL := 8
67 $(obj)/altivec8.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
68 $(call if_changed,unroll)
70 quiet_cmd_mktable = TABLE $@
71 cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 )
74 $(obj)/tables.c: $(obj)/mktables FORCE
75 $(call if_changed,mktable)