Stewart Smith | 2b1ca12 | 2018-12-11 13:38:14 +1100 | [diff] [blame^] | 1 | op-build Linux Kernel |
| 2 | ===================== |
| 3 | |
| 4 | The skiroot/Petitboot kernel is currently based on the 4.17 series. |
| 5 | |
| 6 | Submitting a patch |
| 7 | ------------------ |
| 8 | |
| 9 | If you require a patch added to the firmware, follow these steps: |
| 10 | |
| 11 | 1. Submit your patch upstream. It doesn’t need to be upstream, but it |
| 12 | should be on it’s way |
| 13 | 2. 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 | don’t spam the community. The current tree is based on 4.15-stable. |
| 17 | |
| 18 | Bug fixes |
| 19 | --------- |
| 20 | |
| 21 | Whenever a stable release is tagged in |
| 22 | https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/, |
| 23 | we will rebase our patches on top of that and create a new release. |
| 24 | |
| 25 | If you are submitting patches upstream that you want to be included, |
| 26 | then 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 | |
| 29 | Versioning |
| 30 | ---------- |
| 31 | |
| 32 | Versions are the upstream version number, followed by ``-openpowerN``, |
| 33 | where N is the revision that counts up from 1 for the given upstream |
| 34 | version number. These versions will be present as tags in the git |
| 35 | repository hosted at https://github.com/open-power/linux. |
| 36 | |
| 37 | Tree and patches |
| 38 | ---------------- |
| 39 | |
| 40 | The kernel tree hosted at https://github.com/open-power/linux contains |
| 41 | the current release plus a set of patches that we carry. Ideally there |
| 42 | would be no patches carried, as everything should be upstream. |
| 43 | |
| 44 | We take the commits in this tree between the upstream tag and the |
| 45 | openpower tag and generate a series of patches that are imported into |
| 46 | the op-build Buildroot overlay, and placed in |
| 47 | `op-build/openpower/linux <https://github.com/open-power/op-build/tree/master/openpower/linux>`_. |
| 48 | op-build then fetches the upstream tarball and applies these patches. |
| 49 | This way we don’t have to clone an entire tree when doing an op-build |
| 50 | build. |
| 51 | |
| 52 | Patches in the tree |
| 53 | ------------------- |
| 54 | |
| 55 | - xhci: Reset controller on xhci shutdown |