blob: 4a793ff5d12f5e8702a3e4fc8350c625e1aed3e3 [file] [log] [blame]
Stewart Smith2b1ca122018-12-11 13:38:14 +11001op-build Linux Kernel
2=====================
3
Stewart Smith128a2a42018-12-11 13:38:29 +11004The skiroot/Petitboot kernel is currently based on the 4.19 series.
Stewart Smith2b1ca122018-12-11 13:38:14 +11005
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
Stewart Smithc0c50202018-12-11 13:45:56 +110037We aim to follow "the latest upstream release".
38
39For op-build stable trees, we follow the latest stable release of the
40kernel that particular op-build release was made with. Since op-build
41stable releases may outlast how long an upstream kernel is maintain for,
42we will move up the kernel version we use until the next LTS kernel.
43Once on an LTS kernel, an op-build stable release will stick with that
44version.
45
Stewart Smith2b1ca122018-12-11 13:38:14 +110046Tree and patches
47----------------
48
49The kernel tree hosted at https://github.com/open-power/linux contains
50the current release plus a set of patches that we carry. Ideally there
51would be no patches carried, as everything should be upstream.
52
53We take the commits in this tree between the upstream tag and the
54openpower tag and generate a series of patches that are imported into
55the op-build Buildroot overlay, and placed in
56`op-build/openpower/linux <https://github.com/open-power/op-build/tree/master/openpower/linux>`_.
57op-build then fetches the upstream tarball and applies these patches.
58This way we dont have to clone an entire tree when doing an op-build
59build.
60
61Patches in the tree
62-------------------
63
64- xhci: Reset controller on xhci shutdown