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 \
Kyle McMartin 575de6
	$(CFG)-armv7hl.config $(CFG)-armv7hl-lpae.config \
Kyle McMartin 575de6
	$(CFG)-aarch64.config \
Josh Boyer 5a7728
	$(CFG)-ppc64.config $(CFG)-ppc64p7.config $(CFG)-ppc64-debug.config \
c9229e
	$(CFG)-ppc64le.config $(CFG)-ppc64le-debug.config
Jesse Keating 7a3296
c9229e
PLATFORMS	= x86 x86_64 powerpc s390x arm arm64
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
63afba
temp-generic: config-generic config-nodebug
63afba
	cat $^ > temp-generic
Jesse Keating 7a3296
63afba
temp-debug-generic: config-generic config-debug
63afba
	cat $^ > temp-debug-generic
Jesse Keating 7a3296
Kyle McMartin f1adcb
temp-no-extra-generic: config-no-extra temp-generic
Kyle McMartin f1adcb
	perl merge.pl $^ > $@
Kyle McMartin f1adcb
Kyle McMartin f1adcb
temp-arm-generic: config-arm-generic temp-no-extra-generic
Kyle McMartin 575de6
	perl merge.pl $^ > $@
Kyle McMartin 575de6
Kyle McMartin 575de6
temp-armv7-generic: config-armv7-generic temp-arm-generic
8c4242
	perl merge.pl $^ > $@
8c4242
8c4242
temp-armv7: config-armv7 temp-armv7-generic
8c4242
	perl merge.pl $^ > $@
8c4242
8c4242
temp-armv7-lpae: config-armv7-lpae temp-armv7-generic
faa8d0
	perl merge.pl $^ > $@
faa8d0
Kyle McMartin 575de6
temp-arm-debug-generic: temp-arm-generic temp-debug-generic
Kyle McMartin 575de6
	perl merge.pl $^ > $@
Kyle McMartin 575de6
Kyle McMartin 575de6
temp-arm64: config-arm64 temp-arm-generic
Kyle McMartin 575de6
	perl merge.pl $^ > $@
Kyle McMartin 575de6
Kyle McMartin 575de6
temp-arm64-debug: config-arm64 temp-arm-debug-generic
Kyle McMartin 575de6
	perl merge.pl $^ > $@
Kyle McMartin 575de6
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
c9229e
temp-powerpc64-generic: config-powerpc64-generic temp-generic
Jesse Keating 7a3296
	perl merge.pl $^  > $@
Jesse Keating 7a3296
c9229e
temp-powerpc64-debug-generic: config-powerpc64-generic temp-debug-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
Kyle McMartin 82b54f
$(CFG)-i686-PAE.config: config-i686-PAE temp-x86-32-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-i686.config: /dev/null temp-x86-32-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-i686-debug.config: /dev/null temp-x86-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ i386 > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-x86_64.config: /dev/null temp-x86_64-generic
Jesse Keating 7a3296
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ x86_64 > $@
Jesse Keating 7a3296
c9229e
$(CFG)-ppc64.config: config-powerpc64 temp-powerpc64-generic
Josh Boyer 3b7690
	perl merge.pl $^ powerpc > $@
Josh Boyer 3b7690
c9229e
$(CFG)-ppc64-debug.config: config-powerpc64 temp-powerpc64-debug-generic
Jesse Keating 7a3296
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-ppc64p7.config: config-powerpc64p7 temp-powerpc64-generic
Jesse Keating 7a3296
	perl merge.pl $^ powerpc > $@
Jesse Keating 7a3296
c9229e
$(CFG)-ppc64le.config: config-powerpc64le temp-powerpc64-generic
c9229e
	perl merge.pl $^ powerpc > $@
c9229e
c9229e
$(CFG)-ppc64le-debug.config: config-powerpc64le temp-powerpc64-debug-generic
Josh Boyer 5a7728
	perl merge.pl $^ powerpc > $@
Josh Boyer 5a7728
Kyle McMartin 82b54f
$(CFG)-s390x.config: config-s390x temp-s390-generic
Jesse Keating 7a3296
	perl merge.pl $^ s390 > $@
Jesse Keating 7a3296
Kyle McMartin 82b54f
$(CFG)-armv7hl.config: /dev/null temp-armv7
986a9f
	perl merge.pl $^ arm > $@
986a9f
Kyle McMartin 82b54f
$(CFG)-armv7hl-lpae.config: /dev/null temp-armv7-lpae
d07b00
	perl merge.pl $^ arm > $@
d07b00
Kyle McMartin 575de6
$(CFG)-aarch64.config: /dev/null temp-arm64
Kyle McMartin 575de6
	perl merge.pl $^ arm64 > $@