diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2018-06-06 21:08:17 +0200 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2018-06-06 21:08:17 +0200 |
commit | b1fc6b476c1611913acebf0cbc3f2d2810a0980e (patch) | |
tree | 76e5f52647d0b96bd2b60a15c4ee432fa5ac59a7 /README.txt | |
parent | a50724433ddcd21528d22b857f77faf500b15d25 (diff) | |
parent | 1debdf05d152262113e10ef380a6dadf54782f21 (diff) | |
download | kernel-b1fc6b476c1611913acebf0cbc3f2d2810a0980e.tar.gz kernel-b1fc6b476c1611913acebf0cbc3f2d2810a0980e.tar.xz kernel-b1fc6b476c1611913acebf0cbc3f2d2810a0980e.zip |
merge stabilization upstream branch
Diffstat (limited to 'README.txt')
-rw-r--r-- | README.txt | 60 |
1 files changed, 28 insertions, 32 deletions
diff --git a/README.txt b/README.txt index 6195bb56d..f0a42351c 100644 --- a/README.txt +++ b/README.txt @@ -31,30 +31,29 @@ by make verrel config heirarchy. ----------------- Instead of having to maintain a config file for every arch variant we build on, -the kernel spec uses a nested system of configs. At the top level, is -config-generic. Add options here that should be present in every possible -config on all architectures. - -Beneath this are per-arch overrides. For example config-x86-generic add -additional x86 specific options, and also _override_ any options that were -set in config-generic. - -The heirarchy looks like this.. - - config-generic - | - config-x86-generic - | | - config-x86-32-generic config-x86-64-generic - -An option set in a lower level will override the same option set in one -of the higher levels. - - -There exist two additional overrides, config-debug, and config-nodebug, -which override -generic, and the per-arch overrides. It is documented -further below. - +the kernel spec uses a nested system of configs. Each option CONFIG_FOO is +represented by a single file named CONFIG_FOO which contains the state (=y, =m, +=n). These options are collected in the folder base-generic. Architecture +specific options are set in nested folders. An option set in a nested folder +will override the same option set in one of the higher levels. + +The individual CONFIG_FOO files only exist in the pkg-git repository. The RPM +contains kernel-foo.config files which are the result of combining all the +CONFIG_FOO files. The files are combined by running build_configs.sh. This +script _must_ be run each time one of the options is changed. + +Example flow: + +# Enable the option CONFIG_ABC123 as a module for all arches +echo "CONFIG_ABC123=m" > configs/base-generic/CONFIG_ABC1234 +# enable the option CONFIG_XYZ321 for only x86 +echo "# CONFIG_XYZ321 is not set" > configs/base-generic/CONFIG_XYZ321 +echo "CONFIG_XYZ321=m" > configs/base-generic/x86/CONFIG_XYZ321 +# regenerate the combined config files +./build_configs.sh + +The file config_generation gives a listing of what folders go into each +config file generated. debug options. -------------- @@ -69,14 +68,11 @@ typically been run already, which sets up the following.. If we are building for rawhide, 'make debug' has been run, which changes the status quo to: - We only build one kernel 'kernel' -- The debug options from 'config-debug' are always turned on. +- The debug options are always turned on. This is done to increase coverage testing, as not many people actually run kernel-debug. -To add new debug options, add an option to _both_ config-debug and config-nodebug, -and also new stanzas to the Makefile 'debug' and 'release' targets. - -Sometimes debug options get added to config-generic, or per-arch overrides -instead of config-[no]debug. In this instance, the options should have no -discernable performance impact, otherwise they belong in the debug files. - +The debug options are managed in a separate heierarchy under base-debug. This +works in a similar manner to base-generic. More deeply nested folders, again, +override options. The file config_generation gives a listing of what folders +go into each config file generated. |