summaryrefslogtreecommitdiffstats
path: root/Makefile.config
blob: c92d986f0d713bde21008f0eca65dd0caebd89be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Make rules for configuration files.
#
# $Id$

CFG		= kernel-$(VERSION)

CONFIGFILES	= \
	$(CFG)-i686.config $(CFG)-i686-debug.config \
	$(CFG)-i686-PAE.config $(CFG)-i686-PAEdebug.config \
	$(CFG)-x86_64.config $(CFG)-x86_64-debug.config \
	$(CFG)-s390x.config \
	$(CFG)-arm.config  $(CFG)-armv5tel.config  $(CFG)-armv7hl.config \
	$(CFG)-armv5tel-kirkwood.config \
	$(CFG)-armv7l-imx.config $(CFG)-armv7l-omap.config \
	$(CFG)-armv7l-tegra.config $(CFG)-armv7l-highbank.config \
	$(CFG)-armv7hl-imx.config $(CFG)-armv7hl-omap.config \
	$(CFG)-armv7hl-tegra.config $(CFG)-armv7hl-highbank.config \
	$(CFG)-ppc.config $(CFG)-ppc-smp.config \
	$(CFG)-sparc64.config  \
	$(CFG)-ppc64.config $(CFG)-ppc64-debug.config 

PLATFORMS	= x86 x86_64 powerpc powerpc32 powerpc64 s390x sparc64
TEMPFILES	= $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))

configs: $(CONFIGFILES)
	@rm -f kernel-*-config
	@rm -f $(TEMPFILES)
	@rm -f temp-generic temp-*-generic temp-*-generic-tmp

# Augment the clean target to clean up our own cruft
clean ::
	@rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config

temp-generic: config-generic
	cat config-generic config-nodebug > temp-generic

temp-debug-generic: config-generic
	cat config-generic config-debug > temp-debug-generic

temp-arm-generic: config-arm-generic temp-generic
	perl merge.pl $^  > $@

temp-armv7l-omap: config-arm-omap temp-arm-generic
	perl merge.pl $^  > $@

temp-armv7l-tegra: config-arm-tegra temp-arm-generic
	perl merge.pl $^  > $@

temp-armv5tel-kirkwood: config-arm-kirkwood temp-arm-generic
	perl merge.pl $^  > $@

temp-armv7l-imx: config-arm-imx temp-arm-generic
	perl merge.pl $^  > $@

temp-armv7l-highbank: config-arm-highbank temp-arm-generic
	perl merge.pl $^  > $@

temp-x86-32: config-x86-32-generic config-x86-generic
	perl merge.pl $^  > $@

temp-x86-32-generic: temp-x86-32 temp-generic
	perl merge.pl $^  > $@

temp-x86-debug-generic: temp-x86-32 temp-debug-generic
	perl merge.pl $^  > $@

temp-x86-64: config-x86_64-generic config-x86-generic
	perl merge.pl $^  > $@

temp-x86_64-generic: temp-x86-64 temp-generic
	perl merge.pl $^  > $@

temp-x86_64-debug-generic: temp-x86-64 temp-debug-generic
	perl merge.pl $^  > $@

temp-sparc64-generic: config-sparc64-generic temp-generic
	perl merge.pl $^  > $@

temp-powerpc-generic: config-powerpc-generic temp-generic
	perl merge.pl $^  > $@

temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
	perl merge.pl $^  > $@

temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
	perl merge.pl $^  > $@

temp-s390-generic: config-s390x temp-generic
	perl merge.pl $^ > $@

kernel-$(VERSION)-i686-PAE.config: config-i686-PAE temp-x86-32-generic
	perl merge.pl $^ i386 > $@

kernel-$(VERSION)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
	perl merge.pl $^ i386 > $@

kernel-$(VERSION)-i686.config: /dev/null temp-x86-32-generic
	perl merge.pl $^ i386 > $@

kernel-$(VERSION)-i686-debug.config: /dev/null temp-x86-debug-generic
	perl merge.pl $^ i386 > $@

kernel-$(VERSION)-x86_64.config: /dev/null temp-x86_64-generic
	perl merge.pl $^ x86_64 > $@

kernel-$(VERSION)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic
	perl merge.pl $^ x86_64 > $@

kernel-$(VERSION)-sparc64.config: /dev/null temp-sparc64-generic
	perl merge.pl $^ sparc64 > $@

kernel-$(VERSION)-ppc64.config: config-powerpc64 temp-powerpc-generic
	perl merge.pl $^ powerpc > $@

kernel-$(VERSION)-ppc64-debug.config: config-powerpc64 temp-powerpc-debug-generic
	perl merge.pl $^ powerpc > $@

kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
	perl merge.pl $^ s390 > $@

kernel-$(VERSION)-arm.config: /dev/null temp-arm-generic
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv5tel.config: /dev/null temp-arm-generic
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7hl.config: /dev/null temp-arm-generic
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv5tel-kirkwood.config: /dev/null temp-armv5tel-kirkwood
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7l-imx.config: /dev/null temp-armv7l-imx
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7l-highbank.config: /dev/null temp-armv7l-highbank
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7l-omap.config: /dev/null temp-armv7l-omap
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7l-tegra.config: /dev/null temp-armv7l-tegra
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7hl-imx.config: /dev/null temp-armv7l-imx
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7hl-highbank.config: /dev/null temp-armv7l-highbank
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7hl-omap.config: /dev/null temp-armv7l-omap
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-armv7hl-tegra.config: /dev/null temp-armv7l-tegra
	perl merge.pl $^ arm > $@

kernel-$(VERSION)-ppc.config: /dev/null temp-powerpc32-generic
	perl merge.pl $^ powerpc > $@

kernel-$(VERSION)-ppc-smp.config: config-powerpc32-smp temp-powerpc32-generic
	perl merge.pl $^ powerpc > $@