]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - debian/docs/README.inclusion-list
UBUNTU: [Config] update configs follwing rebase to Ubuntu-4.13.0-15.16
[mirror_ubuntu-artful-kernel.git] / debian / docs / README.inclusion-list
CommitLineData
fef4fb4a
LO
1This README describes the reason for, and the use of, module
2inclusion lists.
3
4The original Hardy release had the notion of sub-flavours,
5e.g., a flavour that was constructed as a subset of an existing flavour.
6For example, the virtual flavour was extracted from the server flavour using
7a subset of the server flavour modules. However, there were some difficult
8mainteneance issues with regard to packaging, make rules, and scripts. This
9re-implementation of the sub-flavours philosophy is hopefully simpler,
10and retrofitable to all releases.
11
12A module inclusion list looks at the problem of of constructing a package
13from the perspective of what modules do we _want_ in the package, as opposed
14to what modules we _don't_ want. As the kernel matures, more and more devices are added
15which makes the problem of configuration maintenance a real pain in the ass.
16If we took the approach of disabling all of the config options that we don't want,
17then the differences between flavours will quickly become quite large, making
18it difficult to quickly compare the individual flavour configs. Each time a
19new config option is added then we also have to make a decision about disabling in
20order to continue to keep the minimal number of modules.
21
22A module inclusion list is applied on a per-flavour basis. For example,
23debian.<BRANCH>/control.d/${flavour}.inclusion-list. For example, the
24config for virtual is very close to server and generic, but the inclusion list
25causes the virtual package to be constructed with _only_ the modules described
26in the inclusion list.
27
28The inclusion list format is a simple bash regular expression list of files. For example,
29
30arch/*/{crypto,kernel,oprofile}
31drivers/acpi/*
32drivers/ata/ahci.ko
33
34These 3 regular expression forms are suitable for expansion by bash and as inputs to 'find'.
35See debian/scripts/module-inclusion for details.
36
37There are 2 log files created as a side effect of the application of the module
38inclusion list; $(flavour).inclusion-list.log and $(flavour).depmod.log.
39
40$(flavour).inclusion-list.log : This log is created while the inclusion list
41modules are being copied. If any are missing, then those warnings go in this log.
42While its not considered a fatal error, you should endevour to correct your inclusion
43list such that there are no missing modules.
44
45$(flavour).depmod.log : The log is created as a result of running depmod on the
46resulting set of modules. If there are missing symbols then you'll find that information
47here. Again, you should modify your inclusion list such that there are no missing
48symbols.
49
50Tim Gardner <tim.gardner@canonical.com>
51June 2, 2010