Jesse Keating 7a32965
# Make rules for configuration files.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# $Id$
Jesse Keating 7a32965
Jesse Keating 7a32965
CFG		= kernel-$(VERSION)
Jesse Keating 7a32965
Jesse Keating 7a32965
CONFIGFILES	= \
Jesse Keating 7a32965
	$(CFG)-i686.config $(CFG)-i686-debug.config \
Jesse Keating 7a32965
	$(CFG)-i686-PAE.config $(CFG)-i686-PAEdebug.config \
Jesse Keating 7a32965
	$(CFG)-x86_64.config $(CFG)-x86_64-debug.config \
8ffa0af
	$(CFG)-s390x.config \
faa8d0c
	$(CFG)-armv7.config \
50c065d
	$(CFG)-armv5tel-kirkwood.config \
d07b00d
	$(CFG)-armv7l.config  $(CFG)-armv7hl.config \
d07b00d
	$(CFG)-armv7l-imx.config $(CFG)-armv7hl-imx.config \
d07b00d
	$(CFG)-armv7l-omap.config $(CFG)-armv7hl-omap.config \
d07b00d
	$(CFG)-armv7l-tegra.config $(CFG)-armv7hl-tegra.config \
d07b00d
	$(CFG)-armv7l-highbank.config $(CFG)-armv7hl-highbank.config \
Jesse Keating 7a32965
	$(CFG)-ppc.config $(CFG)-ppc-smp.config \
Jesse Keating 7a32965
	$(CFG)-sparc64.config  \
3b76903
	$(CFG)-ppc64.config $(CFG)-ppc64p7.config $(CFG)-ppc64-debug.config 
Jesse Keating 7a32965
e6981d5
PLATFORMS	= x86 x86_64 powerpc powerpc32 powerpc64 s390x sparc64 arm
Jesse Keating 7a32965
TEMPFILES	= $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS)))
Jesse Keating 7a32965
Jesse Keating 7a32965
configs: $(CONFIGFILES)
Jesse Keating 7a32965
	@rm -f kernel-*-config
Jesse Keating 7a32965
	@rm -f $(TEMPFILES)
Jesse Keating 7a32965
	@rm -f temp-generic temp-*-generic temp-*-generic-tmp
Jesse Keating 7a32965
Jesse Keating 7a32965
# Augment the clean target to clean up our own cruft
Jesse Keating 7a32965
clean ::
Jesse Keating 7a32965
	@rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-generic: config-generic
Jesse Keating 7a32965
	cat config-generic config-nodebug > temp-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-debug-generic: config-generic
Jesse Keating 7a32965
	cat config-generic config-debug > temp-debug-generic
Jesse Keating 7a32965
faa8d0c
temp-armv7: config-armv7 temp-generic
faa8d0c
	perl merge.pl $^ > $@
faa8d0c
8ffa0af
temp-arm-generic: config-arm-generic temp-generic
8ffa0af
	perl merge.pl $^  > $@
8ffa0af
d07b00d
temp-armv7l-versatile: config-arm-versatile temp-arm-generic
d07b00d
	perl merge.pl $^  > $@
d07b00d
749420c
temp-armv7l-omap: config-arm-omap temp-arm-generic
8ffa0af
	perl merge.pl $^  > $@
8ffa0af
986a9f3
temp-armv7l-tegra: config-arm-tegra temp-arm-generic
986a9f3
	perl merge.pl $^  > $@
986a9f3
534352f
temp-armv5tel-kirkwood: config-arm-kirkwood temp-arm-generic
534352f
	perl merge.pl $^  > $@
534352f
534352f
temp-armv7l-imx: config-arm-imx temp-arm-generic
534352f
	perl merge.pl $^  > $@
534352f
534352f
temp-armv7l-highbank: config-arm-highbank temp-arm-generic
534352f
	perl merge.pl $^  > $@
534352f
Dave Jones 8ce7027
temp-x86-32: config-x86-32-generic config-x86-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Dave Jones 8ce7027
temp-x86-32-generic: temp-x86-32 temp-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Dave Jones 8ce7027
temp-x86-debug-generic: temp-x86-32 temp-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Dave Jones 8ce7027
temp-x86-64: config-x86_64-generic config-x86-generic
Dave Jones 8ce7027
	perl merge.pl $^  > $@
Dave Jones 8ce7027
Dave Jones 8ce7027
temp-x86_64-generic: temp-x86-64 temp-generic
Dave Jones 8ce7027
	perl merge.pl $^  > $@
Dave Jones 8ce7027
Dave Jones 8ce7027
temp-x86_64-debug-generic: temp-x86-64 temp-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-sparc64-generic: config-sparc64-generic temp-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-powerpc-generic: config-powerpc-generic temp-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-powerpc-debug-generic: config-powerpc-generic temp-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-powerpc32-generic: config-powerpc32-generic temp-powerpc-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
3b76903
temp-powerpc64-generic: config-powerpc64 temp-powerpc-generic
3b76903
	perl merge.pl $^ > $@
3b76903
Jesse Keating 7a32965
temp-s390-generic: config-s390x temp-generic
Jesse Keating 7a32965
	perl merge.pl $^ > $@
Jesse Keating 7a32965
Dave Jones 8ce7027
kernel-$(VERSION)-i686-PAE.config: config-i686-PAE temp-x86-32-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Dave Jones 8ce7027
kernel-$(VERSION)-i686.config: /dev/null temp-x86-32-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-i686-debug.config: /dev/null temp-x86-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-x86_64.config: /dev/null temp-x86_64-generic
Jesse Keating 7a32965
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-sparc64.config: /dev/null temp-sparc64-generic
Jesse Keating 7a32965
	perl merge.pl $^ sparc64 > $@
Jesse Keating 7a32965
3b76903
kernel-$(VERSION)-ppc64.config: /dev/null temp-powerpc64-generic
3b76903
	perl merge.pl $^ powerpc > $@
3b76903
3b76903
kernel-$(VERSION)-ppc64-debug.config: temp-powerpc64-generic temp-powerpc-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a32965
3b76903
kernel-$(VERSION)-ppc64p7.config: config-powerpc64p7 temp-powerpc64-generic
Jesse Keating 7a32965
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-s390x.config: config-s390x temp-s390-generic
Jesse Keating 7a32965
	perl merge.pl $^ s390 > $@
Jesse Keating 7a32965
faa8d0c
kernel-$(VERSION)-armv7.config: /dev/null temp-armv7
faa8d0c
	perl merge.pl $^ armv7 > $@
faa8d0c
d07b00d
kernel-$(VERSION)-armv5tel-kirkwood.config: /dev/null temp-armv5tel-kirkwood
551d759
	perl merge.pl $^ arm > $@
551d759
d07b00d
kernel-$(VERSION)-armv7l.config: /dev/null temp-armv7l-versatile
534352f
	perl merge.pl $^ arm > $@
534352f
534352f
kernel-$(VERSION)-armv7l-imx.config: /dev/null temp-armv7l-imx
534352f
	perl merge.pl $^ arm > $@
534352f
534352f
kernel-$(VERSION)-armv7l-highbank.config: /dev/null temp-armv7l-highbank
534352f
	perl merge.pl $^ arm > $@
534352f
749420c
kernel-$(VERSION)-armv7l-omap.config: /dev/null temp-armv7l-omap
Jesse Keating 7a32965
	perl merge.pl $^ arm > $@
Jesse Keating 7a32965
986a9f3
kernel-$(VERSION)-armv7l-tegra.config: /dev/null temp-armv7l-tegra
986a9f3
	perl merge.pl $^ arm > $@
986a9f3
faa8d0c
kernel-$(VERSION)-armv7hl.config: /dev/null temp-armv7
d07b00d
	perl merge.pl $^ arm > $@
d07b00d
534352f
kernel-$(VERSION)-armv7hl-imx.config: /dev/null temp-armv7l-imx
534352f
	perl merge.pl $^ arm > $@
534352f
534352f
kernel-$(VERSION)-armv7hl-highbank.config: /dev/null temp-armv7l-highbank
534352f
	perl merge.pl $^ arm > $@
534352f
749420c
kernel-$(VERSION)-armv7hl-omap.config: /dev/null temp-armv7l-omap
3e616b4
	perl merge.pl $^ arm > $@
3e616b4
3e616b4
kernel-$(VERSION)-armv7hl-tegra.config: /dev/null temp-armv7l-tegra
3e616b4
	perl merge.pl $^ arm > $@
3e616b4
Jesse Keating 7a32965
kernel-$(VERSION)-ppc.config: /dev/null temp-powerpc32-generic
Jesse Keating 7a32965
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
kernel-$(VERSION)-ppc-smp.config: config-powerpc32-smp temp-powerpc32-generic
Jesse Keating 7a32965
	perl merge.pl $^ powerpc > $@