Skip to content
Snippets Groups Projects
README 137 KiB
Newer Older
When you send a patch, please include the following information with
it:
Wolfgang Denk's avatar
Wolfgang Denk committed

* For bug fixes: a description of the bug and how your patch fixes
  this bug. Please try to include a way of demonstrating that the
  patch actually fixes something.
Wolfgang Denk's avatar
Wolfgang Denk committed

* For new features: a description of the feature and your
  implementation.
Wolfgang Denk's avatar
Wolfgang Denk committed

* A CHANGELOG entry as plaintext (separate from the patch)
Wolfgang Denk's avatar
Wolfgang Denk committed

* For major contributions, your entry to the CREDITS file
Wolfgang Denk's avatar
Wolfgang Denk committed

* When you add support for a new board, don't forget to add this
  board to the MAKEALL script, too.
Wolfgang Denk's avatar
Wolfgang Denk committed

* If your patch adds new configuration options, don't forget to
  document these in the README file.
Wolfgang Denk's avatar
Wolfgang Denk committed

* The patch itself. If you are using git (which is *strongly*
  recommended) you can easily generate the patch using the
  "git-format-patch". If you then use "git-send-email" to send it to
  the U-Boot mailing list, you will avoid most of the common problems
  with some other mail clients.

  If you cannot use git, use "diff -purN OLD NEW". If your version of
  diff does not support these options, then get the latest version of
  GNU diff.
Wolfgang Denk's avatar
Wolfgang Denk committed

  The current directory when running this command shall be the parent
  directory of the U-Boot source tree (i. e. please make sure that
  your patch includes sufficient directory information for the
  affected files).
  We prefer patches as plain text. MIME attachments are discouraged,
  and compressed attachments must not be used.
Wolfgang Denk's avatar
Wolfgang Denk committed

* If one logical set of modifications affects or creates several
  files, all these changes shall be submitted in a SINGLE patch file.
* Changesets that contain different, unrelated modifications shall be
  submitted as SEPARATE patches, one patch per changeset.
Wolfgang Denk's avatar
Wolfgang Denk committed

Wolfgang Denk's avatar
Wolfgang Denk committed

* Before sending the patch, run the MAKEALL script on your patched
  source tree and make sure that no errors or warnings are reported
  for any of the boards.
Wolfgang Denk's avatar
Wolfgang Denk committed

* Keep your modifications to the necessary minimum: A patch
  containing several unrelated changes or arbitrary reformats will be
  returned with a request to re-formatting / split it.
Wolfgang Denk's avatar
Wolfgang Denk committed

* If you modify existing code, make sure that your new code does not
  add to the memory footprint of the code ;-) Small is beautiful!
  When adding new features, these should compile conditionally only
  (using #ifdef), and the resulting code with the new feature
  disabled must not need more memory than the old code without your
  modification.

* Remember that there is a size limit of 40 kB per message on the
  u-boot-users mailing list. Bigger patches will be moderated. If
  they are reasonable and not bigger than 100 kB, they will be
  acknowledged. Even bigger patches should be avoided.