1 # Make rules for configuration files.
5 CFG = kernel-$(VERSION)
8 $(CFG)-i686.config $(CFG)-i686-debug.config \
9 $(CFG)-i686-PAE.config $(CFG)-i686-PAEdebug.config \
10 $(CFG)-x86_64.config $(CFG)-x86_64-debug.config \
11 $(CFG)-s390x.config $(CFG)-arm.config \
12 $(CFG)-ppc.config $(CFG)-ppc-smp.config \
13 $(CFG)-sparc64.config \
14 $(CFG)-ppc64.config $(CFG)-ppc64-debug.config \
17 PLATFORMS = x86 x86_64 powerpc powerpc32 powerpc64 s390x ia64 sparc64
18 TEMPFILES = $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))
20 configs: $(CONFIGFILES)
21 @rm -f kernel-*-config
23 @rm -f temp-generic temp-*-generic temp-*-generic-tmp
25 # Augment the clean target to clean up our own cruft
27 @rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config
29 temp-generic: config-generic
30 cat config-generic config-nodebug > temp-generic
32 temp-debug-generic: config-generic
33 cat config-generic config-debug > temp-debug-generic
35 temp-x86-generic: config-x86-generic temp-generic
38 temp-x86-debug-generic: config-x86-generic temp-debug-generic
41 temp-x86_64-generic: config-x86_64-generic temp-generic
44 temp-x86_64-debug-generic: config-x86_64-generic temp-debug-generic
47 temp-sparc64-generic: config-sparc64-generic temp-generic
50 temp-powerpc-generic: config-powerpc-generic temp-generic
53 temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
56 temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
59 temp-s390-generic: config-s390x temp-generic
62 temp-ia64-generic: config-ia64-generic temp-generic
65 kernel-$(VERSION)-i686-PAE.config: config-i686-PAE temp-x86-generic
66 perl merge.pl $^ i386 > $@
68 kernel-$(VERSION)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
69 perl merge.pl $^ i386 > $@
71 kernel-$(VERSION)-i686.config: config-vserver temp-x86-generic
72 perl merge.pl $^ i386 > $@
74 kernel-$(VERSION)-i686-debug.config: config-vserver temp-x86-debug-generic
75 perl merge.pl $^ i386 > $@
77 kernel-$(VERSION)-x86_64.config: config-vserver temp-x86_64-generic
78 perl merge.pl $^ x86_64 > $@
80 kernel-$(VERSION)-x86_64-debug.config: config-vserver temp-x86_64-debug-generic
81 perl merge.pl $^ x86_64 > $@
83 kernel-$(VERSION)-sparc64.config: /dev/null temp-sparc64-generic
84 perl merge.pl $^ sparc64 > $@
86 kernel-$(VERSION)-ppc64.config: config-powerpc64 temp-powerpc-generic
87 perl merge.pl $^ powerpc > $@
89 kernel-$(VERSION)-ppc64-debug.config: config-powerpc64 temp-powerpc-debug-generic
90 perl merge.pl $^ powerpc > $@
92 kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
93 perl merge.pl $^ s390 > $@
95 kernel-$(VERSION)-arm.config: config-arm temp-generic
96 perl merge.pl $^ arm > $@
98 kernel-$(VERSION)-ppc.config: /dev/null temp-powerpc32-generic
99 perl merge.pl $^ powerpc > $@
101 kernel-$(VERSION)-ppc-smp.config: config-powerpc32-smp temp-powerpc32-generic
102 perl merge.pl $^ powerpc > $@
104 kernel-$(VERSION)-ia64.config: /dev/null temp-ia64-generic
105 perl merge.pl $^ ia64 > $@