summaryrefslogtreecommitdiffstats
path: root/config_generation
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2016-11-10 10:16:25 -0800
committerLaura Abbott <labbott@fedoraproject.org>2016-12-06 12:07:10 -0800
commit1b7eeb80190501aaf226e90e8f58f994cfc3efe0 (patch)
tree9ff96082cc146fb0ea946c6a111b61e90f9dd7f6 /config_generation
parentfe324f69901af83cb16ee086f3d284e67ed36e33 (diff)
downloadkernel-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 'config_generation')
-rw-r--r--config_generation37
1 files changed, 37 insertions, 0 deletions
diff --git a/config_generation b/config_generation
new file mode 100644
index 000000000..e5dde85cf
--- /dev/null
+++ b/config_generation
@@ -0,0 +1,37 @@
+# config-variant=config:config:config
+# kernel.config files are build on the fly based on this config,
+# the first arg is arch and variant, the second is a hierarchy of
+# config options, lowest priority to highest
+
+# x86_64
+x86_64=baseconfig:baseconfig-x86:baseconfig-x86-x86_64
+x86_64-debug=baseconfig:baseconfig-x86:baseconfig-x86-x86_64:debugconfig:debugconfig-x86
+
+# i686
+i686=baseconfig:baseconfig-x86:baseconfig-x86-i686
+i686-debug=baseconfig:baseconfig-x86:baseconfig-x86-i686:debugconfig:debugconfig-x86
+i686-PAE=baseconfig:baseconfig-x86:baseconfig-x86-i686PAE
+i686-PAEdebug=baseconfig:baseconfig-x86:baseconfig-x86-i686PAE:debugconfig:debugconfig-x86
+
+# ppc64
+ppc64=baseconfig:baseconfig-powerpc:baseconfig-powerpc-powerpc64
+ppc64-debug=baseconfig:baseconfig-powerpc:baseconfig-powerpc-powerpc64:debugconfig
+
+# ppc64le
+ppc64le=baseconfig:baseconfig-powerpc:baseconfig-powerpc-powerpc64le
+ppc64le-debug=baseconfig:baseconfig-powerpc:baseconfig-powerpc-powerpc64le:debugconfig
+ppc64p7=baseconfig:baseconfig-powerpc:baseconfig-powerpc-powerpc64p7
+ppc64p7-debug=baseconfig:baseconfig-powerpc:baseconfig-powerpc-powerpc64p7:debugconfig
+# s390x
+s390x=baseconfig:baseconfig-s390x
+s390x-debug=baseconfig:baseconfig-s390x:debugconfig
+
+# aarch64
+aarch64=baseconfig:baseconfig-arm:baseconfig-arm-arm64
+aarch64-debug=baseconfig:baseconfig-arm:baseconfig-arm-arm64:debugconfig:debugconfig-arm
+
+# arm
+armv7hl=baseconfig:baseconfig-arm:baseconfig-arm-armv7:baseconfig-arm-armv7-armv7
+armv7hl-debug=baseconfig:baseconfig-arm:baseconfig-arm-armv7:baseconfig-arm-armv7-armv7:debugconfig:debugconfig-arm:debugconfig-arm-armv7
+armv7hl-lpae=baseconfig:baseconfig-arm:baseconfig-arm-armv7:baseconfig-arm-armv7-lpae
+armv7hl-lpae-debug=baseconfig:baseconfig-arm:baseconfig-arm-armv7:baseconfig-arm-armv7-lpae:debugconfig:debugconfig-arm:debugconfig-arm-armv7