diff options
author | Laura Abbott <labbott@fedoraproject.org> | 2016-11-10 10:16:25 -0800 |
---|---|---|
committer | Laura Abbott <labbott@fedoraproject.org> | 2016-12-06 12:07:10 -0800 |
commit | 1b7eeb80190501aaf226e90e8f58f994cfc3efe0 (patch) | |
tree | 9ff96082cc146fb0ea946c6a111b61e90f9dd7f6 /Makefile.config | |
parent | fe324f69901af83cb16ee086f3d284e67ed36e33 (diff) | |
download | kernel-1b7eeb80190501aaf226e90e8f58f994cfc3efe0.tar.gz kernel-1b7eeb80190501aaf226e90e8f58f994cfc3efe0.tar.xz kernel-1b7eeb80190501aaf226e90e8f58f994cfc3efe0.zip |
Change method of configuration generation
The existing method of managing configuration files gets unweildy.
Changing individual lines in text files gets difficult without
manual organization. Switch to a method of configuration generation
that's inspired from the method used inside Red Hat. Each configuration
option gets its own file which are then combined to form the
configuration files. This makes confirming what's actually enabled much
easier.
Diffstat (limited to 'Makefile.config')
-rw-r--r-- | Makefile.config | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/Makefile.config b/Makefile.config deleted file mode 100644 index 148e21fef..000000000 --- a/Makefile.config +++ /dev/null @@ -1,129 +0,0 @@ -# Make rules for configuration files. -# -# $Id$ - -CFG = kernel-$(VERSION) - -CONFIGFILES = \ - $(CFG)-i686.config $(CFG)-i686-debug.config \ - $(CFG)-i686-PAE.config $(CFG)-i686-PAEdebug.config \ - $(CFG)-x86_64.config $(CFG)-x86_64-debug.config \ - $(CFG)-s390x.config \ - $(CFG)-armv7hl.config $(CFG)-armv7hl-lpae.config \ - $(CFG)-aarch64.config \ - $(CFG)-ppc64.config $(CFG)-ppc64p7.config $(CFG)-ppc64-debug.config \ - $(CFG)-ppc64le.config $(CFG)-ppc64le-debug.config - -PLATFORMS = x86 x86_64 powerpc s390x arm arm64 -TEMPFILES = $(addprefix temp-, $(addsuffix -generic, $(PLATFORMS))) - -configs: $(CONFIGFILES) - @rm -f kernel-*-config - @rm -f $(TEMPFILES) - @rm -f temp-generic temp-*-generic temp-*-generic-tmp - -# Augment the clean target to clean up our own cruft -clean :: - @rm -fv $(CONFIGFILES) $(TEMPFILES) temp-generic kernel-$(VERSION)*config - -temp-generic: config-generic config-nodebug - cat $^ > temp-generic - -temp-debug-generic: config-generic config-debug - cat $^ > temp-debug-generic - -temp-no-extra-generic: config-no-extra temp-generic - perl merge.pl $^ > $@ - -temp-arm-generic: config-arm-generic temp-no-extra-generic - perl merge.pl $^ > $@ - -temp-armv7-generic: config-armv7-generic temp-arm-generic - perl merge.pl $^ > $@ - -temp-armv7: config-armv7 temp-armv7-generic - perl merge.pl $^ > $@ - -temp-armv7-lpae: config-armv7-lpae temp-armv7-generic - perl merge.pl $^ > $@ - -temp-arm-debug-generic: temp-arm-generic temp-debug-generic - perl merge.pl $^ > $@ - -temp-arm64: config-arm64 temp-arm-generic - perl merge.pl $^ > $@ - -temp-arm64-debug: config-arm64 temp-arm-debug-generic - perl merge.pl $^ > $@ - -temp-x86-32: config-x86-32-generic config-x86-generic - perl merge.pl $^ > $@ - -temp-x86-32-generic: temp-x86-32 temp-generic - perl merge.pl $^ > $@ - -temp-x86-debug-generic: temp-x86-32 temp-debug-generic - perl merge.pl $^ > $@ - -temp-x86-64: config-x86_64-generic config-x86-generic - perl merge.pl $^ > $@ - -temp-x86_64-generic: temp-x86-64 temp-generic - perl merge.pl $^ > $@ - -temp-x86_64-debug-generic: temp-x86-64 temp-debug-generic - perl merge.pl $^ > $@ - -temp-powerpc64-generic: config-powerpc64-generic temp-generic - perl merge.pl $^ > $@ - -temp-powerpc64-debug-generic: config-powerpc64-generic temp-debug-generic - perl merge.pl $^ > $@ - -temp-s390-generic: config-s390x temp-generic - perl merge.pl $^ > $@ - -$(CFG)-i686-PAE.config: config-i686-PAE temp-x86-32-generic - perl merge.pl $^ i386 > $@ - -$(CFG)-i686-PAEdebug.config: config-i686-PAE temp-x86-debug-generic - perl merge.pl $^ i386 > $@ - -$(CFG)-i686.config: /dev/null temp-x86-32-generic - perl merge.pl $^ i386 > $@ - -$(CFG)-i686-debug.config: /dev/null temp-x86-debug-generic - perl merge.pl $^ i386 > $@ - -$(CFG)-x86_64.config: /dev/null temp-x86_64-generic - perl merge.pl $^ x86_64 > $@ - -$(CFG)-x86_64-debug.config: /dev/null temp-x86_64-debug-generic - perl merge.pl $^ x86_64 > $@ - -$(CFG)-ppc64.config: config-powerpc64 temp-powerpc64-generic - perl merge.pl $^ powerpc > $@ - -$(CFG)-ppc64-debug.config: config-powerpc64 temp-powerpc64-debug-generic - perl merge.pl $^ powerpc > $@ - -$(CFG)-ppc64p7.config: config-powerpc64p7 temp-powerpc64-generic - perl merge.pl $^ powerpc > $@ - -$(CFG)-ppc64le.config: config-powerpc64le temp-powerpc64-generic - perl merge.pl $^ powerpc > $@ - -$(CFG)-ppc64le-debug.config: config-powerpc64le temp-powerpc64-debug-generic - perl merge.pl $^ powerpc > $@ - -$(CFG)-s390x.config: config-s390x temp-s390-generic - perl merge.pl $^ s390 > $@ - -$(CFG)-armv7hl.config: /dev/null temp-armv7 - perl merge.pl $^ arm > $@ - -$(CFG)-armv7hl-lpae.config: /dev/null temp-armv7-lpae - perl merge.pl $^ arm > $@ - -$(CFG)-aarch64.config: /dev/null temp-arm64 - perl merge.pl $^ arm64 > $@ |