| 1 |
# Make rules for configuration files.
|
| 2 |
#
|
| 3 |
# $Id$
|
| 4 |
|
| 5 |
CFG = kernel-$(VERSION)
|
| 6 |
|
| 7 |
CONFIGFILES = \
|
| 8 |
$(CFG)-i586.config \
|
| 9 |
$(CFG)-i686.config $(CFG)-i686-PAE.config \
|
| 10 |
$(CFG)-i686-debug.config $(CFG)-i686-PAEdebug.config \
|
| 11 |
$(CFG)-x86_64.config $(CFG)-x86_64-debug.config \
|
| 12 |
$(CFG)-s390x.config \
|
| 13 |
$(CFG)-ppc.config $(CFG)-ppc-smp.config \
|
| 14 |
$(CFG)-sparc64.config $(CFG)-sparc64-smp.config \
|
| 15 |
$(CFG)-ppc64.config $(CFG)-ppc64-kdump.config $(CFG)-ppc64-debug.config \
|
| 16 |
$(CFG)-ia64.config
|
| 17 |
|
| 18 |
PLATFORMS = x86 x86_64 powerpc powerpc32 powerpc64 s390x ia64 sparc64
|
| 19 |
TEMPFILES = $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))
|
| 20 |
|
| 21 |
configs: $(CONFIGFILES)
|
| 22 |
@rm -f kernel-*-config
|
| 23 |
@rm -f $(TEMPFILES)
|
| 24 |
@rm -f temp-generic temp-*-generic temp-*-generic-tmp
|
| 25 |
|
| 26 |
# Augment the clean target to clean up our own cruft
|
| 27 |
clean ::
|
| 28 |
@rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config
|
| 29 |
|
| 30 |
temp-generic: config-generic
|
| 31 |
cat config-generic config-nodebug > temp-generic
|
| 32 |
|
| 33 |
temp-debug-generic: config-generic
|
| 34 |
cat config-generic config-debug > temp-debug-generic
|
| 35 |
|
| 36 |
temp-x86-generic: config-x86-generic temp-generic
|
| 37 |
perl merge.pl $^ > $@
|
| 38 |
|
| 39 |
temp-x86-debug-generic: config-x86-generic temp-debug-generic
|
| 40 |
perl merge.pl $^ > $@
|
| 41 |
|
| 42 |
temp-x86_64-generic: config-x86_64-generic temp-generic
|
| 43 |
perl merge.pl $^ > $@
|
| 44 |
|
| 45 |
temp-x86_64-debug-generic: config-x86_64-generic temp-debug-generic
|
| 46 |
perl merge.pl $^ > $@
|
| 47 |
|
| 48 |
temp-sparc64-generic: config-sparc64-generic temp-generic
|
| 49 |
perl merge.pl $^ > $@
|
| 50 |
|
| 51 |
temp-powerpc-generic: config-powerpc-generic temp-generic
|
| 52 |
perl merge.pl $^ > $@
|
| 53 |
|
| 54 |
temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
|
| 55 |
perl merge.pl $^ > $@
|
| 56 |
|
| 57 |
temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
|
| 58 |
perl merge.pl $^ > $@
|
| 59 |
|
| 60 |
temp-s390-generic: config-s390x temp-generic
|
| 61 |
perl merge.pl $^ > $@
|
| 62 |
|
| 63 |
temp-ia64-generic: config-ia64-generic temp-generic
|
| 64 |
perl merge.pl $^ > $@
|
| 65 |
|
| 66 |
kernel-$(VERSION)-i686.config: config-i686 temp-x86-generic
|
| 67 |
perl merge.pl $^ i386 > $@
|
| 68 |
|
| 69 |
kernel-$(VERSION)-i686-debug.config: config-i686 temp-x86-debug-generic
|
| 70 |
perl merge.pl $^ i386 > $@
|
| 71 |
|
| 72 |
kernel-$(VERSION)-i686-PAE.config: config-i686-PAE temp-x86-generic
|
| 73 |
perl merge.pl $^ i386 > $@
|
| 74 |
|
| 75 |
kernel-$(VERSION)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
|
| 76 |
perl merge.pl $^ i386 > $@
|
| 77 |
|
| 78 |
kernel-$(VERSION)-i586.config: config-i586 temp-x86-generic
|
| 79 |
perl merge.pl $^ i386 > $@
|
| 80 |
|
| 81 |
kernel-$(VERSION)-x86_64.config: /dev/null temp-x86_64-generic
|
| 82 |
perl merge.pl $^ x86_64 > $@
|
| 83 |
|
| 84 |
kernel-$(VERSION)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic
|
| 85 |
perl merge.pl $^ x86_64 > $@
|
| 86 |
|
| 87 |
kernel-$(VERSION)-sparc64-smp.config: config-sparc64-smp temp-sparc64-generic
|
| 88 |
perl merge.pl $^ sparc64 > $@
|
| 89 |
|
| 90 |
kernel-$(VERSION)-sparc64.config: /dev/null temp-sparc64-generic
|
| 91 |
perl merge.pl $^ sparc64 > $@
|
| 92 |
|
| 93 |
kernel-$(VERSION)-ppc64.config: config-powerpc64 temp-powerpc-generic
|
| 94 |
perl merge.pl $^ powerpc > $@
|
| 95 |
|
| 96 |
kernel-$(VERSION)-ppc64-kdump.config: config-powerpc64-kdump kernel-$(VERSION)-ppc64.config
|
| 97 |
perl merge.pl $^ powerpc > $@
|
| 98 |
|
| 99 |
kernel-$(VERSION)-ppc64-debug.config: config-powerpc64 temp-powerpc-debug-generic
|
| 100 |
perl merge.pl $^ powerpc > $@
|
| 101 |
|
| 102 |
kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
|
| 103 |
perl merge.pl $^ s390 > $@
|
| 104 |
|
| 105 |
kernel-$(VERSION)-ppc.config: /dev/null temp-powerpc32-generic
|
| 106 |
perl merge.pl $^ powerpc > $@
|
| 107 |
|
| 108 |
kernel-$(VERSION)-ppc-smp.config: config-powerpc32-smp temp-powerpc32-generic
|
| 109 |
perl merge.pl $^ powerpc > $@
|
| 110 |
|
| 111 |
kernel-$(VERSION)-ia64.config: /dev/null temp-ia64-generic
|
| 112 |
perl merge.pl $^ ia64 > $@
|