diff options
Diffstat (limited to 'lib/raid6/Makefile')
-rw-r--r-- | lib/raid6/Makefile | 81 |
1 files changed, 39 insertions, 42 deletions
diff --git a/lib/raid6/Makefile b/lib/raid6/Makefile index 19bf32da644f..8a38102770f3 100644 --- a/lib/raid6/Makefile +++ b/lib/raid6/Makefile | |||
@@ -1,11 +1,8 @@ | |||
1 | obj-$(CONFIG_RAID6_PQ) += raid6_pq.o | 1 | obj-$(CONFIG_RAID6_PQ) += raid6_pq.o |
2 | 2 | ||
3 | raid6_pq-y += raid6algos.o raid6recov.o raid6tables.o \ | 3 | raid6_pq-y += algos.o recov.o tables.o int1.o int2.o int4.o \ |
4 | raid6int1.o raid6int2.o raid6int4.o \ | 4 | int8.o int16.o int32.o altivec1.o altivec2.o altivec4.o \ |
5 | raid6int8.o raid6int16.o raid6int32.o \ | 5 | altivec8.o mmx.o sse1.o sse2.o |
6 | raid6altivec1.o raid6altivec2.o raid6altivec4.o \ | ||
7 | raid6altivec8.o \ | ||
8 | raid6mmx.o raid6sse1.o raid6sse2.o | ||
9 | hostprogs-y += mktables | 6 | hostprogs-y += mktables |
10 | 7 | ||
11 | quiet_cmd_unroll = UNROLL $@ | 8 | quiet_cmd_unroll = UNROLL $@ |
@@ -16,63 +13,63 @@ ifeq ($(CONFIG_ALTIVEC),y) | |||
16 | altivec_flags := -maltivec -mabi=altivec | 13 | altivec_flags := -maltivec -mabi=altivec |
17 | endif | 14 | endif |
18 | 15 | ||
19 | targets += raid6int1.c | 16 | targets += int1.c |
20 | $(obj)/raid6int1.c: UNROLL := 1 | 17 | $(obj)/int1.c: UNROLL := 1 |
21 | $(obj)/raid6int1.c: $(src)/raid6int.uc $(src)/unroll.awk FORCE | 18 | $(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE |
22 | $(call if_changed,unroll) | 19 | $(call if_changed,unroll) |
23 | 20 | ||
24 | targets += raid6int2.c | 21 | targets += int2.c |
25 | $(obj)/raid6int2.c: UNROLL := 2 | 22 | $(obj)/int2.c: UNROLL := 2 |
26 | $(obj)/raid6int2.c: $(src)/raid6int.uc $(src)/unroll.awk FORCE | 23 | $(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE |
27 | $(call if_changed,unroll) | 24 | $(call if_changed,unroll) |
28 | 25 | ||
29 | targets += raid6int4.c | 26 | targets += int4.c |
30 | $(obj)/raid6int4.c: UNROLL := 4 | 27 | $(obj)/int4.c: UNROLL := 4 |
31 | $(obj)/raid6int4.c: $(src)/raid6int.uc $(src)/unroll.awk FORCE | 28 | $(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE |
32 | $(call if_changed,unroll) | 29 | $(call if_changed,unroll) |
33 | 30 | ||
34 | targets += raid6int8.c | 31 | targets += int8.c |
35 | $(obj)/raid6int8.c: UNROLL := 8 | 32 | $(obj)/int8.c: UNROLL := 8 |
36 | $(obj)/raid6int8.c: $(src)/raid6int.uc $(src)/unroll.awk FORCE | 33 | $(obj)/int8.c: $(src)/int.uc $(src)/unroll.awk FORCE |
37 | $(call if_changed,unroll) | 34 | $(call if_changed,unroll) |
38 | 35 | ||
39 | targets += raid6int16.c | 36 | targets += int16.c |
40 | $(obj)/raid6int16.c: UNROLL := 16 | 37 | $(obj)/int16.c: UNROLL := 16 |
41 | $(obj)/raid6int16.c: $(src)/raid6int.uc $(src)/unroll.awk FORCE | 38 | $(obj)/int16.c: $(src)/int.uc $(src)/unroll.awk FORCE |
42 | $(call if_changed,unroll) | 39 | $(call if_changed,unroll) |
43 | 40 | ||
44 | targets += raid6int32.c | 41 | targets += int32.c |
45 | $(obj)/raid6int32.c: UNROLL := 32 | 42 | $(obj)/int32.c: UNROLL := 32 |
46 | $(obj)/raid6int32.c: $(src)/raid6int.uc $(src)/unroll.awk FORCE | 43 | $(obj)/int32.c: $(src)/int.uc $(src)/unroll.awk FORCE |
47 | $(call if_changed,unroll) | 44 | $(call if_changed,unroll) |
48 | 45 | ||
49 | CFLAGS_raid6altivec1.o += $(altivec_flags) | 46 | CFLAGS_altivec1.o += $(altivec_flags) |
50 | targets += raid6altivec1.c | 47 | targets += altivec1.c |
51 | $(obj)/raid6altivec1.c: UNROLL := 1 | 48 | $(obj)/altivec1.c: UNROLL := 1 |
52 | $(obj)/raid6altivec1.c: $(src)/raid6altivec.uc $(src)/unroll.awk FORCE | 49 | $(obj)/altivec1.c: $(src)/altivec.uc $(src)/unroll.awk FORCE |
53 | $(call if_changed,unroll) | 50 | $(call if_changed,unroll) |
54 | 51 | ||
55 | CFLAGS_raid6altivec2.o += $(altivec_flags) | 52 | CFLAGS_altivec2.o += $(altivec_flags) |
56 | targets += raid6altivec2.c | 53 | targets += altivec2.c |
57 | $(obj)/raid6altivec2.c: UNROLL := 2 | 54 | $(obj)/altivec2.c: UNROLL := 2 |
58 | $(obj)/raid6altivec2.c: $(src)/raid6altivec.uc $(src)/unroll.awk FORCE | 55 | $(obj)/altivec2.c: $(src)/altivec.uc $(src)/unroll.awk FORCE |
59 | $(call if_changed,unroll) | 56 | $(call if_changed,unroll) |
60 | 57 | ||
61 | CFLAGS_raid6altivec4.o += $(altivec_flags) | 58 | CFLAGS_altivec4.o += $(altivec_flags) |
62 | targets += raid6altivec4.c | 59 | targets += altivec4.c |
63 | $(obj)/raid6altivec4.c: UNROLL := 4 | 60 | $(obj)/altivec4.c: UNROLL := 4 |
64 | $(obj)/raid6altivec4.c: $(src)/raid6altivec.uc $(src)/unroll.awk FORCE | 61 | $(obj)/altivec4.c: $(src)/altivec.uc $(src)/unroll.awk FORCE |
65 | $(call if_changed,unroll) | 62 | $(call if_changed,unroll) |
66 | 63 | ||
67 | CFLAGS_raid6altivec8.o += $(altivec_flags) | 64 | CFLAGS_altivec8.o += $(altivec_flags) |
68 | targets += raid6altivec8.c | 65 | targets += altivec8.c |
69 | $(obj)/raid6altivec8.c: UNROLL := 8 | 66 | $(obj)/altivec8.c: UNROLL := 8 |
70 | $(obj)/raid6altivec8.c: $(src)/raid6altivec.uc $(src)/unroll.awk FORCE | 67 | $(obj)/altivec8.c: $(src)/altivec.uc $(src)/unroll.awk FORCE |
71 | $(call if_changed,unroll) | 68 | $(call if_changed,unroll) |
72 | 69 | ||
73 | quiet_cmd_mktable = TABLE $@ | 70 | quiet_cmd_mktable = TABLE $@ |
74 | cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 ) | 71 | cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 ) |
75 | 72 | ||
76 | targets += raid6tables.c | 73 | targets += tables.c |
77 | $(obj)/raid6tables.c: $(obj)/mktables FORCE | 74 | $(obj)/tables.c: $(obj)/mktables FORCE |
78 | $(call if_changed,mktable) | 75 | $(call if_changed,mktable) |