1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<?xml version='1.0' encoding='utf-8'?>
<!-- -*- DocBook -*- -->
<chapter id="ch-source">
<?dbhtml filename="ch-source.html" ?>
<title>Debian kernel source</title>
<section id="s-changes"><title>Changes to the pristine kernel source</title>
<para>
The kernels in Debian are distributed in binary form, built from the Debian
kernel source. It is important to recognize that Debian kernel source may be
(and in most cases is) different from the upstream (or "pristine") kernel
source, distributed from <ulink
url="https://www.kernel.org">www.kernel.org</ulink> and its mirrors. Due to
licensing restrictions, unclear license information, or failure to comply with
the Debian Free Software Guidelines (DFSG), parts of the kernel are removed in
order to distribute the source in the <literal>main</literal> section of the
Debian archive. Such removal produces
<filename>linux_<replaceable>version</replaceable>.orig.tar.xz</filename> tarball,
which serves as the original upstream source. <replaceable>version</replaceable> is
the actual upstream version.
</para>
<para>
The guidelines for firmware removal were set by the <ulink
url="https://www.debian.org/vote/2006/vote_007">Handling source-less firmware in
the Linux kernel</ulink> General Resolution and the <ulink
url="https://lists.debian.org/debian-kernel/2006/10/msg00541.html">position
statement</ulink> by the release managers. As
of version 2.6.31-1, all known sourceless firmware has been removed from the
Debian package, but much of it is included in the <ulink
url="https://packages.debian.org/source/firmware-nonfree">firmware-nonfree</ulink>
package. Additional information about firmware licensing and removals may be
found at the <ulink url="https://wiki.debian.org">Debian Wiki</ulink> page
<ulink
url="https://wiki.debian.org/KernelFirmwareLicensing">KernelFirmwareLicensing</ulink>.
</para>
</section>
<section id="s-patches"><title>Debian kernel patches</title>
<para>
The source from which the Debian binary kernels are built is obtained by taking
the source from
<filename>linux_<replaceable>version</replaceable>.orig.tar.xz</filename> (that is,
pristine kernel source with problematic parts removed) and applying a set of
Debian patches. These patches typically implement essential fixes for serious
bugs and security holes.
</para>
</section>
<section id="s-acceptance"><title>Policy for patch acceptance</title>
<para>
The general policy of the Debian kernel team is that a patch must either fix a
bug or add hardware support, and must be based on a change already accepted by
the upstream kernel maintainers. The change does not need to have been
included in an upstream release yet. This policy allows the team to drop most
patches when moving to a new upstream version, rather than having to maintain
an increasing series of Debian-specific patches. The recommended procedure for
inclusion of patches introducing optional features is to submit to the upstream
maintainer.
</para>
</section>
</chapter>
|