| 1 |
======================= |
| 2 |
How to support flashrom |
| 3 |
======================= |
| 4 |
|
| 5 |
Intro |
| 6 |
========= |
| 7 |
|
| 8 |
This document is for people and companies who want to help flashrom, and it explains |
| 9 |
various ways how to do this. |
| 10 |
|
| 11 |
There are lots of ways to help (as you can see below), whether you have little time or a lot, |
| 12 |
whether you are a developer, a user or a company. |
| 13 |
flashrom is a free open source software project, and all the contributions are publicly visible - |
| 14 |
which means you get all the glory for your work, and you help the whole open source ecosystem. |
| 15 |
Thank you! |
| 16 |
|
| 17 |
flashrom supports a huge variety of environments, platforms and hardware, and there is |
| 18 |
no one person or one company on earth which has setup to test and maintain all of these |
| 19 |
(and realistically, never will be). The only way we can maintain all of these, |
| 20 |
is together as a community. |
| 21 |
|
| 22 |
To be aware of what's going on, subscribe to our :ref:`mailing list` and/or join our :ref:`real time channels`. |
| 23 |
|
| 24 |
Development |
| 25 |
=========== |
| 26 |
|
| 27 |
Development, or in other words, sending patches to flashrom, is what probably comes to mind first |
| 28 |
when you think about helping and contributing. And indeed, this is a great help, |
| 29 |
and patches are always welcome. |
| 30 |
|
| 31 |
If your idea fits into one patch, you can just send it. If you have bigger plans in mind, |
| 32 |
a large amount of work over a longer time frame, the best way is to start a topic on the mailing list. |
| 33 |
This helps with planning, and also people in the community, whoever is interested, |
| 34 |
will be able to support your effort. |
| 35 |
|
| 36 |
If you are new to flashrom development process, please start by reading :doc:`/dev_guide/development_guide`. |
| 37 |
It's also useful to check `existing patches <https://review.coreboot.org/q/status:open+project:flashrom>`_ |
| 38 |
for examples on how the dev process works. |
| 39 |
|
| 40 |
For some types of contributions we have more detailed guidelines, check the list :doc:`/contrib_howtos/index`. |
| 41 |
|
| 42 |
.. _support-code-reviews: |
| 43 |
|
| 44 |
Code reviews |
| 45 |
============ |
| 46 |
|
| 47 |
Did you know: code reviews are equally important as writing the code! |
| 48 |
|
| 49 |
For each patch, we need at least one reviewer, and often more than one. |
| 50 |
Doing code reviews is highly appreciated and highly respected! |
| 51 |
All reviewers' names are immortalised in git history together with authors names, |
| 52 |
as "Reviewed-by" and "Signed-off-by" tags in a commit message (see `example <https://review.coreboot.org/c/flashrom/+/80729>`_). |
| 53 |
|
| 54 |
Code review involves carefully inspecting the patch in Gerrit, and adding comments if anything |
| 55 |
is unclear/potential errors/issues/something missing etc. If you think the patch is ready, |
| 56 |
you can vote on the patch. Every Gerrit user with a registered account can add comments to patches |
| 57 |
and vote +1/-1. Note that if you vote -1, you need to add a comment explaining why you gave a negative vote, |
| 58 |
and what specific big issues that you see with the patch. Negative vote is a stronger opinion, |
| 59 |
and in most cases just adding comments is enough. |
| 60 |
|
| 61 |
The group of people who can fully approve the patch (i.e. vote +2, see :doc:`/about_flashrom/team`) |
| 62 |
is limited, however every Gerrit user can do code reviews. This increases overall confidence |
| 63 |
in the reviewed patch. Approving the patch is much easier when the code reviews are done well. |
| 64 |
|
| 65 |
You can check pending patches under review `in Gerrit <https://review.coreboot.org/q/status:open+project:flashrom>`_ |
| 66 |
and help with code review if a patch looks useful, you understand what it is about, and want to have it submitted. |
| 67 |
|
| 68 |
.. _building-and-testing: |
| 69 |
|
| 70 |
Building and testing |
| 71 |
==================== |
| 72 |
|
| 73 |
Given the large variety of environments and hardware that flashrom supports, |
| 74 |
the question of building and testing flashrom is always relevant. |
| 75 |
Try to build flashrom at head on your environment and if it doesn't build, |
| 76 |
send a patch to fix (see :doc:`/dev_guide/development_guide`) or file a ticket in :ref:`bugtracker` |
| 77 |
with as many details as possible. |
| 78 |
|
| 79 |
A special case of this is, the time when flashrom team is preparing the release. |
| 80 |
The release candidate tag is announced on the mailing list, and it is a great help to try and build and test |
| 81 |
a release candidate in whatever your environment is. Both positive and negative results are important, |
| 82 |
and you are welcome to share the results, just don't forget to include environment details. |
| 83 |
In case of issues, as always: patches are very very welcome. |
| 84 |
|
| 85 |
Documentation |
| 86 |
============= |
| 87 |
|
| 88 |
You don't have to be a flashrom developer to add, update or review documentation. In fact, |
| 89 |
lots of users' docs can greatly benefit from reviews by the users, who are supposed to read and use the docs. |
| 90 |
Doc how to update the docs is here: :doc:`/how_to_add_docs` |
| 91 |
|
| 92 |
As for specific ideas: |
| 93 |
|
| 94 |
#. If there is an announcement on the mailing list about new doc under review, |
| 95 |
have a look and you can join the review |
| 96 |
|
| 97 |
#. If you have been following the document and discovered something incorrect there, or outdated, |
| 98 |
send a patch to update the document. |
| 99 |
|
| 100 |
#. New documentation welcome. |
| 101 |
|
| 102 |
Mailing list |
| 103 |
============ |
| 104 |
|
| 105 |
If you are not subscribed: please subscribe (see :ref:`mailing list`) so you can see what's going on. |
| 106 |
|
| 107 |
Oftentimes, mailing list has questions from flashrom users. If it so happens |
| 108 |
that you maybe know what they are asking, or have ideas about it - you are welcome to respond! |
| 109 |
This will be very helpful. |
| 110 |
|
| 111 |
Similarly, if there is a development discussion that makes sense to you and is relevant: please join the discussion. |
| 112 |
|
| 113 |
Mailing list is archived, and archives are public and searchable. Which means, |
| 114 |
when you respond to the post you not only help that one person who is asking, |
| 115 |
but you also help one hundred people in future, who have the same question and can search the answer on the list archives. |
| 116 |
|
| 117 |
Joining the team |
| 118 |
================ |
| 119 |
|
| 120 |
If you have experience of flashrom development, good knowledge of some of the areas of flashrom code, |
| 121 |
some time and motivation, you can consider joining the team, more info here (:doc:`/about_flashrom/team`). |
| 122 |
Unlike the previous ideas, this means some *regular* time commitment (the amount of time |
| 123 |
can be small or large, but it is regular). |
| 124 |
|
| 125 |
If you are not at this stage yet, but are considering this as a potential goal for the future, |
| 126 |
check the :doc:`/about_flashrom/team` page for what it means. |
| 127 |
|
| 128 |
Special appeal for companies |
| 129 |
============================ |
| 130 |
|
| 131 |
There are lots of companies that have their own forks of flashrom, and it would be a great help |
| 132 |
if you could contribute back to the upstream project! |
| 133 |
|
| 134 |
Try to keep your fork as close as possible to upstream, do not diverge without a strong reason. |
| 135 |
This makes it easier for you to downstream patches, and also makes it easier to contribute patches |
| 136 |
from your fork upstream. As an end result, you will be exchanging code and knowledge with a large ecosystem |
| 137 |
rather than hiding in your own corner. Working together we can achieve a higher quality bar, |
| 138 |
which is better for the upstream project, and better for your fork. |
| 139 |
|
| 140 |
Consider the following ideas: |
| 141 |
|
| 142 |
#. Send upstream the bug fixes you found |
| 143 |
|
| 144 |
#. Add unit tests for the areas you are using actively |
| 145 |
|
| 146 |
#. Add new features or add support for new platforms/hardware, especially if you have that in your lab |
| 147 |
and can reliably test and maintain |
| 148 |
|
| 149 |
#. Help with releases: if you have an automated test suite, run it on release candidates. |
| 150 |
Build and test flashrom for the devices you have in the lab. |
| 151 |
|
| 152 |
#. If possible, allocate an engineer(s) to contribute to upstream project (and all their work |
| 153 |
you can downstream straight away). Upstream early, upstream often: anything you can upstream sooner |
| 154 |
will make your life easier in the future. |
| 155 |
|
| 156 |
#. Have someone subscribed to the mailing list and respond when the topic is relevant to you, |
| 157 |
and you have a knowledge of questions or ideas how to help. |
| 158 |
|
| 159 |
#. On a long term, consider joining the :doc:`/about_flashrom/team`, pick something to maintain: |
| 160 |
for example a programmer you are using often |
| 161 |
|
| 162 |
Outro |
| 163 |
======== |
| 164 |
|
| 165 |
If you read all of the above and still unsure what to do, but actually want to help, |
| 166 |
please don't be afraid to ask flashrom project lead directly (Anastasia Klimchuk, |
| 167 |
and you can find email in `Gerrit <https://review.coreboot.org/c/flashrom/+/80729>`_ |
| 168 |
or tag aklm on Discord (see :ref:`real time channels`). |
| 169 |
|
| 170 |
**Every bit of help matters and you can help make flashrom a better place. Thank you!** |