port the stats utility from Rusty Russell
[openadk.git] / docs / contribute.txt
blob5a8e1fdd87689cf8c9ba55a8453ede8e8fdd00b3
1 // -*- mode:doc; -*-
2 // vim: set syntax=asciidoc:
4 Contributing to OpenADK
5 =======================
7 If you want to contribute to OpenADK, you will need a git view of
8 the project. Refer to xref:getting-openadk[] to get it.
10 Currently a mail to wbx@openadk.org is the central place for contribution.
12 [[submitting-patches]]
13 Submitting patches
14 ------------------
16 When your changes are done, and committed in your local git view,
17 _rebase_ your development branch on top of the upstream tree before
18 generating the patch set. To do so, run:
20 ---------------------
21 $ git fetch --all --tags
22 $ git rebase origin/master
23 ---------------------
25 Here, you are ready to generate then submit your patch set.
27 To generate it, run:
29 ---------------------
30 $ git format-patch -M -n -s origin/master
31 ---------------------
33 This will generate patch files automatically adding the +Signed-off-by+ line.
35 Once patch files are generated, you can review/edit the commit message
36 before submitting them using your favorite text editor.
38 Lastly, send/submit your patch set to the OpenADK developer:
40 ---------------------
41 $ git send-email --to wbx@openadk.org *.patch
42 ---------------------
44 Note that +git+ should be configured to use your mail account.
45 To configure +git+, see +man git-send-email+ or google it.
47 Make sure posted *patches are not line-wrapped*, otherwise they cannot
48 easily be applied. In such a case, fix your e-mail client, or better,
49 use +git send-email+ to send your patches.
51 Cover letter
52 ~~~~~~~~~~~~
54 If you want to present the whole patch set in a separate mail, add
55 +--cover-letter+ to the +git format-patch+ command (see +man
56 git-format-patch+ for further information). This will generate a
57 template for an introduction e-mail to your patch series.
59 A 'cover letter' may be useful to introduce the changes you propose
60 in the following cases:
62 * large number of commits in the series;
64 * deep impact of the changes in the rest of the project;
66 * RFC footnote:[RFC: (Request for comments) change proposal];
68 * whenever you feel it will help presenting your work, your choices,
69   the review process, etc.
71 [[reporting-bugs]]
72 Reporting issues/bugs, get help
73 -------------------------------
75 Try to think as if you were trying to help someone else; in
76 that case, what would you need?
78 Here is a short list of details to provide in such case:
80 * host machine (OS/release)
81 * git version of OpenADK
82 * target for which the build fails
83 * package(s) which the build fails
84 * the command that fails and its output
85 * the make.log file, generated when make v is used
86 * any information you think that may be relevant
88 Additionally, you can add the +.config+ file.