Jesse Keating 7a3296
# Make rules for configuration files.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# $Id$
Jesse Keating 7a3296
Jesse Keating 7a3296
CFG		= kernel-$(VERSION)
Jesse Keating 7a3296
Jesse Keating 7a3296
CONFIGFILES	= \
Jesse Keating 7a3296
	$(CFG)-i686.config $(CFG)-i686-debug.config \
Jesse Keating 7a3296
	$(CFG)-i686-PAE.config $(CFG)-i686-PAEdebug.config \
Jesse Keating 7a3296
	$(CFG)-x86_64.config $(CFG)-x86_64-debug.config \
Josh Boyer 8ffa0a
	$(CFG)-s390x.config \
3e616b
	$(CFG)-arm.config  $(CFG)-armv5tel.config \
3e616b
	$(CFG)-armv7l-omap.config $(CFG)-armv7l-tegra.config \
3e616b
	$(CFG)-armv7hl-omap.config $(CFG)-armv7hl-tegra.config \
Jesse Keating 7a3296
	$(CFG)-ppc.config $(CFG)-ppc-smp.config \
Jesse Keating 7a3296
	$(CFG)-sparc64.config  \
Josh Boyer 2ee118
	$(CFG)-ppc64.config $(CFG)-ppc64-debug.config 
Jesse Keating 7a3296
Josh Boyer 2ee118
PLATFORMS	= x86 x86_64 powerpc powerpc32 powerpc64 s390x sparc64
Jesse Keating 7a3296
TEMPFILES	= $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))
Jesse Keating 7a3296
Jesse Keating 7a3296
configs: $(CONFIGFILES)
Jesse Keating 7a3296
	@rm -f kernel-*-config
Jesse Keating 7a3296
	@rm -f $(TEMPFILES)
Jesse Keating 7a3296
	@rm -f temp-generic temp-*-generic temp-*-generic-tmp
Jesse Keating 7a3296
Jesse Keating 7a3296
# Augment the clean target to clean up our own cruft
Jesse Keating 7a3296
clean ::
Jesse Keating 7a3296
	@rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-generic: config-generic
Jesse Keating 7a3296
	cat config-generic config-nodebug > temp-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-debug-generic: config-generic
Jesse Keating 7a3296
	cat config-generic config-debug > temp-debug-generic
Jesse Keating 7a3296
Josh Boyer 8ffa0a
temp-arm-generic: config-arm-generic temp-generic
Josh Boyer 8ffa0a
	perl merge.pl $^  > $@
Josh Boyer 8ffa0a
Josh Boyer 8ffa0a
temp-armv7l-omap-generic: config-arm-omap-generic temp-arm-generic
Josh Boyer 8ffa0a
	perl merge.pl $^  > $@
Josh Boyer 8ffa0a
986a9f
temp-armv7l-tegra: config-arm-tegra temp-arm-generic
986a9f
	perl merge.pl $^  > $@
986a9f
Dave Jones 8ce702
temp-x86-32: config-x86-32-generic config-x86-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Dave Jones 8ce702
temp-x86-32-generic: temp-x86-32 temp-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Dave Jones 8ce702
temp-x86-debug-generic: temp-x86-32 temp-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Dave Jones 8ce702
temp-x86-64: config-x86_64-generic config-x86-generic
Dave Jones 8ce702
	perl merge.pl $^  > $@
Dave Jones 8ce702
Dave Jones 8ce702
temp-x86_64-generic: temp-x86-64 temp-generic
Dave Jones 8ce702
	perl merge.pl $^  > $@
Dave Jones 8ce702
Dave Jones 8ce702
temp-x86_64-debug-generic: temp-x86-64 temp-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-sparc64-generic: config-sparc64-generic temp-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-powerpc-generic: config-powerpc-generic temp-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
temp-s390-generic: config-s390x temp-generic
Jesse Keating 7a3296
	perl merge.pl $^ > $@
Jesse Keating 7a3296
Dave Jones 8ce702
kernel-$(VERSION)-i686-PAE.config: config-i686-PAE temp-x86-32-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Dave Jones 8ce702
kernel-$(VERSION)-i686.config: /dev/null temp-x86-32-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-i686-debug.config: /dev/null temp-x86-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-x86_64.config: /dev/null temp-x86_64-generic
Jesse Keating 7a3296
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-sparc64.config: /dev/null temp-sparc64-generic
Jesse Keating 7a3296
	perl merge.pl $^ sparc64 > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-ppc64.config: config-powerpc64 temp-powerpc-generic
Jesse Keating 7a3296
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-ppc64-debug.config: config-powerpc64 temp-powerpc-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
Jesse Keating 7a3296
	perl merge.pl $^ s390 > $@
Jesse Keating 7a3296
Josh Boyer 8ffa0a
kernel-$(VERSION)-arm.config: /dev/null temp-arm-generic
Josh Boyer 8ffa0a
	perl merge.pl $^ arm > $@
Josh Boyer 8ffa0a
3e616b
kernel-$(VERSION)-armv5tel.config: /dev/null temp-arm-generic
3e616b
	perl merge.pl $^ arm > $@
3e616b
Josh Boyer 8ffa0a
kernel-$(VERSION)-armv7l-omap.config: /dev/null temp-armv7l-omap-generic
Jesse Keating 7a3296
	perl merge.pl $^ arm > $@
Jesse Keating 7a3296
986a9f
kernel-$(VERSION)-armv7l-tegra.config: /dev/null temp-armv7l-tegra
986a9f
	perl merge.pl $^ arm > $@
986a9f
3e616b
kernel-$(VERSION)-armv7hl-omap.config: /dev/null temp-armv7l-omap-generic
3e616b
	perl merge.pl $^ arm > $@
3e616b
3e616b
kernel-$(VERSION)-armv7hl-tegra.config: /dev/null temp-armv7l-tegra
3e616b
	perl merge.pl $^ arm > $@
3e616b
Jesse Keating 7a3296
kernel-$(VERSION)-ppc.config: /dev/null temp-powerpc32-generic
Jesse Keating 7a3296
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a3296
Jesse Keating 7a3296
kernel-$(VERSION)-ppc-smp.config: config-powerpc32-smp temp-powerpc32-generic
Jesse Keating 7a3296
	perl merge.pl $^ powerpc > $@