blob: 87ec71c391ce816e71d731a5df28c1ff1f754472 [file] [log] [blame]
Stewart Smith2b1ca122018-12-11 13:38:14 +11001op-build Linux Kernel
2=====================
3
4The skiroot/Petitboot kernel is currently based on the 4.17 series.
5
6Submitting a patch
7------------------
8
9If you require a patch added to the firmware, follow these steps:
10
111. Submit your patch upstream. It doesnt need to be upstream, but it
12 should be on its way
132. Send a pull request or a ``git format-patch`` formatted patch series
14 to openpower-firmware@lists.ozlabs.org, and cc joel@jms.id.au. Be
15 sure to use ``--suppress-cc=sob`` when generating the patches so we
16 dont spam the community. The current tree is based on 4.15-stable.
17
18Bug fixes
19---------
20
21Whenever a stable release is tagged in
22https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/,
23we will rebase our patches on top of that and create a new release.
24
25If you are submitting patches upstream that you want to be included,
26then ensure you cc stable as per the
27`rules <https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/stable_kernel_rules.txt>`__.
28
29Versioning
30----------
31
32Versions are the upstream version number, followed by ``-openpowerN``,
33where N is the revision that counts up from 1 for the given upstream
34version number. These versions will be present as tags in the git
35repository hosted at https://github.com/open-power/linux.
36
37Tree and patches
38----------------
39
40The kernel tree hosted at https://github.com/open-power/linux contains
41the current release plus a set of patches that we carry. Ideally there
42would be no patches carried, as everything should be upstream.
43
44We take the commits in this tree between the upstream tag and the
45openpower tag and generate a series of patches that are imported into
46the op-build Buildroot overlay, and placed in
47`op-build/openpower/linux <https://github.com/open-power/op-build/tree/master/openpower/linux>`_.
48op-build then fetches the upstream tarball and applies these patches.
49This way we dont have to clone an entire tree when doing an op-build
50build.
51
52Patches in the tree
53-------------------
54
55- xhci: Reset controller on xhci shutdown