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 \
Josh Boyer 8ffa0af
	$(CFG)-s390x.config \
Kyle McMartin 575de6c
	$(CFG)-armv7hl.config $(CFG)-armv7hl-lpae.config \
Kyle McMartin 575de6c
	$(CFG)-aarch64.config \
Josh Boyer 5a77287
	$(CFG)-ppc64.config $(CFG)-ppc64p7.config $(CFG)-ppc64-debug.config \
c9229e1
	$(CFG)-ppc64le.config $(CFG)-ppc64le-debug.config
Jesse Keating 7a32965
c9229e1
PLATFORMS	= x86 x86_64 powerpc s390x arm arm64
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
63afba2
temp-generic: config-generic config-nodebug
63afba2
	cat $^ > temp-generic
Jesse Keating 7a32965
63afba2
temp-debug-generic: config-generic config-debug
63afba2
	cat $^ > temp-debug-generic
Jesse Keating 7a32965
Kyle McMartin f1adcbd
temp-no-extra-generic: config-no-extra temp-generic
Kyle McMartin f1adcbd
	perl merge.pl $^ > $@
Kyle McMartin f1adcbd
Kyle McMartin f1adcbd
temp-arm-generic: config-arm-generic temp-no-extra-generic
Kyle McMartin 575de6c
	perl merge.pl $^ > $@
Kyle McMartin 575de6c
Kyle McMartin 575de6c
temp-armv7-generic: config-armv7-generic temp-arm-generic
8c4242c
	perl merge.pl $^ > $@
8c4242c
8c4242c
temp-armv7: config-armv7 temp-armv7-generic
8c4242c
	perl merge.pl $^ > $@
8c4242c
8c4242c
temp-armv7-lpae: config-armv7-lpae temp-armv7-generic
faa8d0c
	perl merge.pl $^ > $@
faa8d0c
Kyle McMartin 575de6c
temp-arm-debug-generic: temp-arm-generic temp-debug-generic
Kyle McMartin 575de6c
	perl merge.pl $^ > $@
Kyle McMartin 575de6c
Kyle McMartin 575de6c
temp-arm64: config-arm64 temp-arm-generic
Kyle McMartin 575de6c
	perl merge.pl $^ > $@
Kyle McMartin 575de6c
Kyle McMartin 575de6c
temp-arm64-debug: config-arm64 temp-arm-debug-generic
Kyle McMartin 575de6c
	perl merge.pl $^ > $@
Kyle McMartin 575de6c
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
c9229e1
temp-powerpc64-generic: config-powerpc64-generic temp-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
c9229e1
temp-powerpc64-debug-generic: config-powerpc64-generic temp-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^  > $@
Jesse Keating 7a32965
Jesse Keating 7a32965
temp-s390-generic: config-s390x temp-generic
Jesse Keating 7a32965
	perl merge.pl $^ > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-i686-PAE.config: config-i686-PAE temp-x86-32-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-i686.config: /dev/null temp-x86-32-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-i686-debug.config: /dev/null temp-x86-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ i386 > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-x86_64.config: /dev/null temp-x86_64-generic
Jesse Keating 7a32965
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a32965
c9229e1
$(CFG)-ppc64.config: config-powerpc64 temp-powerpc64-generic
Josh Boyer 3b76903
	perl merge.pl $^ powerpc > $@
Josh Boyer 3b76903
c9229e1
$(CFG)-ppc64-debug.config: config-powerpc64 temp-powerpc64-debug-generic
Jesse Keating 7a32965
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-ppc64p7.config: config-powerpc64p7 temp-powerpc64-generic
Jesse Keating 7a32965
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a32965
c9229e1
$(CFG)-ppc64le.config: config-powerpc64le temp-powerpc64-generic
c9229e1
	perl merge.pl $^ powerpc > $@
c9229e1
c9229e1
$(CFG)-ppc64le-debug.config: config-powerpc64le temp-powerpc64-debug-generic
Josh Boyer 5a77287
	perl merge.pl $^ powerpc > $@
Josh Boyer 5a77287
Kyle McMartin 82b54fd
$(CFG)-s390x.config: config-s390x temp-s390-generic
Jesse Keating 7a32965
	perl merge.pl $^ s390 > $@
Jesse Keating 7a32965
Kyle McMartin 82b54fd
$(CFG)-armv7hl.config: /dev/null temp-armv7
986a9f3
	perl merge.pl $^ arm > $@
986a9f3
Kyle McMartin 82b54fd
$(CFG)-armv7hl-lpae.config: /dev/null temp-armv7-lpae
d07b00d
	perl merge.pl $^ arm > $@
d07b00d
Kyle McMartin 575de6c
$(CFG)-aarch64.config: /dev/null temp-arm64
Kyle McMartin 575de6c
	perl merge.pl $^ arm64 > $@