1f5e70d0fSDavid Woodhouseobj-$(CONFIG_RAID6_PQ) += raid6_pq.o 2f5e70d0fSDavid Woodhouse 3f5e70d0fSDavid Woodhouseraid6_pq-y += raid6algos.o raid6recov.o raid6tables.o \ 4f5e70d0fSDavid Woodhouse raid6int1.o raid6int2.o raid6int4.o \ 5f5e70d0fSDavid Woodhouse raid6int8.o raid6int16.o raid6int32.o \ 6f5e70d0fSDavid Woodhouse raid6altivec1.o raid6altivec2.o raid6altivec4.o \ 7f5e70d0fSDavid Woodhouse raid6altivec8.o \ 8f5e70d0fSDavid Woodhouse raid6mmx.o raid6sse1.o raid6sse2.o 9f5e70d0fSDavid Woodhousehostprogs-y += mktables 10f5e70d0fSDavid Woodhouse 11f5e70d0fSDavid Woodhousequiet_cmd_unroll = UNROLL $@ 12f5e70d0fSDavid Woodhouse cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \ 13f5e70d0fSDavid Woodhouse < $< > $@ || ( rm -f $@ && exit 1 ) 14f5e70d0fSDavid Woodhouse 15f5e70d0fSDavid Woodhouseifeq ($(CONFIG_ALTIVEC),y) 16f5e70d0fSDavid Woodhousealtivec_flags := -maltivec -mabi=altivec 17f5e70d0fSDavid Woodhouseendif 18f5e70d0fSDavid Woodhouse 19f5e70d0fSDavid Woodhousetargets += raid6int1.c 20f5e70d0fSDavid Woodhouse$(obj)/raid6int1.c: UNROLL := 1 21f5e70d0fSDavid Woodhouse$(obj)/raid6int1.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE 22f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 23f5e70d0fSDavid Woodhouse 24f5e70d0fSDavid Woodhousetargets += raid6int2.c 25f5e70d0fSDavid Woodhouse$(obj)/raid6int2.c: UNROLL := 2 26f5e70d0fSDavid Woodhouse$(obj)/raid6int2.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE 27f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 28f5e70d0fSDavid Woodhouse 29f5e70d0fSDavid Woodhousetargets += raid6int4.c 30f5e70d0fSDavid Woodhouse$(obj)/raid6int4.c: UNROLL := 4 31f5e70d0fSDavid Woodhouse$(obj)/raid6int4.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE 32f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 33f5e70d0fSDavid Woodhouse 34f5e70d0fSDavid Woodhousetargets += raid6int8.c 35f5e70d0fSDavid Woodhouse$(obj)/raid6int8.c: UNROLL := 8 36f5e70d0fSDavid Woodhouse$(obj)/raid6int8.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE 37f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 38f5e70d0fSDavid Woodhouse 39f5e70d0fSDavid Woodhousetargets += raid6int16.c 40f5e70d0fSDavid Woodhouse$(obj)/raid6int16.c: UNROLL := 16 41f5e70d0fSDavid Woodhouse$(obj)/raid6int16.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE 42f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 43f5e70d0fSDavid Woodhouse 44f5e70d0fSDavid Woodhousetargets += raid6int32.c 45f5e70d0fSDavid Woodhouse$(obj)/raid6int32.c: UNROLL := 32 46f5e70d0fSDavid Woodhouse$(obj)/raid6int32.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE 47f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 48f5e70d0fSDavid Woodhouse 49f5e70d0fSDavid WoodhouseCFLAGS_raid6altivec1.o += $(altivec_flags) 50f5e70d0fSDavid Woodhousetargets += raid6altivec1.c 51f5e70d0fSDavid Woodhouse$(obj)/raid6altivec1.c: UNROLL := 1 52f5e70d0fSDavid Woodhouse$(obj)/raid6altivec1.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE 53f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 54f5e70d0fSDavid Woodhouse 55f5e70d0fSDavid WoodhouseCFLAGS_raid6altivec2.o += $(altivec_flags) 56f5e70d0fSDavid Woodhousetargets += raid6altivec2.c 57f5e70d0fSDavid Woodhouse$(obj)/raid6altivec2.c: UNROLL := 2 58f5e70d0fSDavid Woodhouse$(obj)/raid6altivec2.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE 59f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 60f5e70d0fSDavid Woodhouse 61f5e70d0fSDavid WoodhouseCFLAGS_raid6altivec4.o += $(altivec_flags) 62f5e70d0fSDavid Woodhousetargets += raid6altivec4.c 63f5e70d0fSDavid Woodhouse$(obj)/raid6altivec4.c: UNROLL := 4 64f5e70d0fSDavid Woodhouse$(obj)/raid6altivec4.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE 65f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 66f5e70d0fSDavid Woodhouse 67f5e70d0fSDavid WoodhouseCFLAGS_raid6altivec8.o += $(altivec_flags) 68f5e70d0fSDavid Woodhousetargets += raid6altivec8.c 69f5e70d0fSDavid Woodhouse$(obj)/raid6altivec8.c: UNROLL := 8 70f5e70d0fSDavid Woodhouse$(obj)/raid6altivec8.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE 71f5e70d0fSDavid Woodhouse $(call if_changed,unroll) 72f5e70d0fSDavid Woodhouse 73f5e70d0fSDavid Woodhousequiet_cmd_mktable = TABLE $@ 74f5e70d0fSDavid Woodhouse cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 ) 75f5e70d0fSDavid Woodhouse 76f5e70d0fSDavid Woodhousetargets += raid6tables.c 77f5e70d0fSDavid Woodhouse$(obj)/raid6tables.c: $(obj)/mktables FORCE 78f5e70d0fSDavid Woodhouse $(call if_changed,mktable) 79