File: CONTRIBUTING.md

package info (click to toggle)
picolibc 1.8.11-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,064 kB
  • sloc: ansic: 404,031; asm: 24,984; sh: 2,585; python: 2,289; perl: 680; pascal: 329; exp: 287; makefile: 222; cpp: 71; xml: 40
file content (96 lines) | stat: -rw-r--r-- 3,331 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Contributing to Picolibc

We welcome contributions of all forms, including patches to code and
documentation, issue reports, or just kind words.

## Getting Current Source Code

Picolibc sources are maintained in git and hosted in two places.

 1. [keithp.com](https://keithp.com/cgit/picolibc.git/). This is the
    'canonical' source location.

 2. [github](https://github.com/keith-packard/picolibc). This should
    exactly mirror the code at keithp.com. I've placed it here to
    make contributing to Picolibc easier for people familiar with github.

You can create a local copy of the repository with git clone:

	$ git clone git://keithp.com/git/picolibc.git

or

	$ git clone https://github.com/keith-packard/picolibc.git

## Meson

Picolibc uses the [meson](https://mesonbuild.com/) build tool. You'll
need to make sure that's installed before you start trying to build
the software.

## Building Picolibc from Source

As Picolibc is designed to be used for embedded systems, getting that
configured correctly can be a challenge. Learn more about that in the
[build](doc/build.md) page.

## Formatting Source Code

Picolibc code comes from a multitude of sources using an enormous
range of styles. As picolibc tries to retain compatibility with newlib
so that bug fixes can be shared between projects, we can't easily
reformat all of the existing code. Here are suggestions on how to
preserve compatibility while still being able to write readable code:

 1. Whitespace-only changes are not helpful, please don't submit
    changes that are only fixing formatting.

 2. Try to adopt local coding styles as much as you can manage by
    matching code within the same files.

 3. For brand-new files, please use the global .editorconfig settings
    if possible:

     * no literal tab characters, only spaces
     * 4-space indentation for nested elements
     * no trailing whitespace
     * utf-8 encoding

## Patch Submission

You can submit patches in a couple of ways:

 1. Mail to the picolibc list (see below). This can be tricky as it
    requires a friendly email system, and you'll have to subscribe to
    the mailing list before it will let you post anything
    (sigh). Here's a simple example sending the latest patch in your
    local repository to the list:

	$ git send-email --to picolibc@keithp.com HEAD^

 2. Generate a pull-request in github.

    1. Fork the picolibc project into your own github account
    2. Push patches to that repository
    3. While viewing your repository, click on the 'New pull request'
       button and follow the instructions there.

## Issue Tracking

We're using the issue tracker on Github for now; if you have issues,
please submit them to the
[Picolibc Issue Tracker](https://github.com/keith-packard/picolibc/issues)

## Mailing List

Picolibc has a mailing list, hosted at keithp.com. You can
[subscribe here](https://keithp.com/mailman/listinfo/picolibc).
This is a public list, with public archives. Participants are expected
to abide by the [Picolibc Code of Conduct](CODE_OF_CONDUCT.md).

## Code of Conduct

Picolibc uses the [Contributor Covenant](https://www.contributor-covenant.org/),
which you'll find in the source tree as [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
Please help make picolibc a kind and welcoming environment by following
those rules.