2015-01-22 15:53:10 +01:00
|
|
|
Submitting patches
|
|
|
|
==================
|
|
|
|
|
|
|
|
If you fixed a bug or you want to add support for something, patches are
|
2018-11-26 19:58:19 +01:00
|
|
|
welcome! The preferred method of submitting the patches to the project is by
|
|
|
|
email to the iwd mailing list:
|
|
|
|
|
|
|
|
iwd@lists.01.org
|
|
|
|
|
|
|
|
In order to ease the inclusion of your patch, it's important to follow
|
2015-01-22 15:53:10 +01:00
|
|
|
some rules, otherwise it will likely be rejected by maintainers.
|
|
|
|
|
|
|
|
iwd rules for submitting patches follow most of the rules used by Linux kernel
|
2019-03-20 09:10:19 +01:00
|
|
|
(https://www.kernel.org/doc/Documentation/process/submitting-patches.rst) with
|
|
|
|
some remarks:
|
2015-01-22 15:53:10 +01:00
|
|
|
|
|
|
|
1) Do *not* add "Signed-off-by" lines in your commit messages. iwd does not
|
|
|
|
use them, so including them is actually an error.
|
|
|
|
|
|
|
|
2) Be sure to follow the coding style rules of iwd. They are listed in
|
|
|
|
doc/coding-style.txt.
|
|
|
|
|
|
|
|
3) Split your patch according to the top-level directories. E.g.: if you added
|
|
|
|
a feature that touches files under 'unit/', 'src/' and 'doc/'
|
|
|
|
directories, split in three separated patches. Care should be taken to
|
|
|
|
structure patches in such a way as to not break compilation. The patches
|
|
|
|
should be split even if breaking the compilation is unavoidable.
|
|
|
|
|
|
|
|
4) The commit message should follow 50/72 formatting which means the header
|
|
|
|
should be limited to 50 characters and the description should be wrapped at 72
|
|
|
|
characters except if it contains quoted information from debug tools like
|
|
|
|
backtraces, compiler errors, etc.
|