Skip to content

Commit 9e5c3a6

Browse files
authored
Merge pull request #13 from lowRISC/license_headers
License headers
2 parents f045081 + 291525e commit 9e5c3a6

File tree

15 files changed

+505
-205
lines changed

15 files changed

+505
-205
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright lowRISC contributors.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: CI
26

37
on:
@@ -21,6 +25,10 @@ jobs:
2125
run: |
2226
uv sync --all-extras
2327
28+
- name: Run reuse lint
29+
run: |
30+
uv run reuse lint
31+
2432
- name: Linting
2533
run: |
2634
uv run ruff check

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright lowRISC contributors.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
# Byte-compiled / optimized / DLL files
26
__pycache__/
37
*.py[codz]

CLA

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
lowRISC CIC
2+
Contributor License Agreement ("Agreement") v1.0
3+
4+
You accept and agree to the following terms and conditions for Your present and
5+
future Contributions submitted to the Project. Except for the license granted
6+
herein to the Project and recipients of software distributed by the Project,
7+
You reserve all right, title, and interest in and to Your Contributions.
8+
9+
1. Definitions.
10+
11+
"You" (or "Your") shall mean the copyright owner or legal entity authorized by
12+
the copyright owner that is making this Agreement with the Project. For legal
13+
entities, the entity making a Contribution and all other entities that control,
14+
are controlled by, or are under common control with that entity are considered
15+
to be a single Contributor. For the purposes of this definition, "control"
16+
means (i) the power, direct or indirect, to cause the direction or management
17+
of such entity, whether by contract or otherwise, or (ii) ownership of fifty
18+
percent (50%) or more of the outstanding shares, or (iii) beneficial ownership
19+
of such entity.
20+
21+
"Contribution" shall mean any original work of authorship, including any
22+
modifications or additions to an existing work, that is intentionally submitted
23+
by You to the Project for inclusion in, or documentation of, any of the
24+
products owned or managed by the Project (the "Work"). For the purposes of this
25+
definition, "submitted" means any form of electronic, verbal, or written
26+
communication sent to the Project or its representatives, including but not
27+
limited to communication on electronic mailing lists, source code control
28+
systems, and issue tracking systems that are managed by, or on behalf of, the
29+
Project for the purpose of discussing and improving the Work, but excluding
30+
communication that is conspicuously marked or otherwise designated in writing
31+
by You as "Not a Contribution."
32+
33+
2. Grant of Copyright License. Subject to the terms and conditions of this
34+
Agreement, You hereby grant to the Project and to recipients of software
35+
distributed by the Project a perpetual, worldwide, non-exclusive, no-charge,
36+
royalty-free, irrevocable copyright license to reproduce, prepare derivative
37+
works of, publicly display, publicly perform, sublicense, and distribute Your
38+
Contributions and such derivative works.
39+
40+
3. Grant of Patent License. Subject to the terms and conditions of this
41+
Agreement, You hereby grant to the Project and to recipients of the Work
42+
distributed by the Project a perpetual, worldwide, non-exclusive, no-charge,
43+
royalty-free, irrevocable (except as stated in this section) patent license to
44+
make, have made, use, offer to sell, sell, import, and otherwise transfer the
45+
Work, where such license applies only to those patent claims licensable by You
46+
that are necessarily infringed by Your Contribution(s) alone or by combination
47+
of Your Contribution(s) with the Work to which such Contribution(s) was
48+
submitted. If any entity institutes patent litigation against You or any other
49+
entity (including a cross-claim or counterclaim in a lawsuit) alleging that
50+
your Contribution, or the Work to which you have contributed, constitutes
51+
direct or contributory patent infringement, then any patent licenses granted to
52+
that entity under this Agreement for that Contribution or Work shall terminate
53+
as of the date such litigation is filed.
54+
55+
4. You represent that you are legally entitled to grant the above license. If
56+
your employer(s) has rights to intellectual property that you create that
57+
includes your Contributions, you represent that you have received permission to
58+
make Contributions on behalf of that employer, that your employer has waived
59+
such rights for your Contributions to the Project, or that your employer has
60+
executed a separate Corporate CLA with the Project.
61+
62+
5. You represent that each of Your Contributions is Your original creation (see
63+
section 7 for submissions on behalf of others). You represent that Your
64+
Contribution submissions include complete details of any third-party license or
65+
other restriction (including, but not limited to, related patents and
66+
trademarks) of which you are personally aware and which are associated with any
67+
part of Your Contributions.
68+
69+
6. You are not expected to provide support for Your Contributions, except to
70+
the extent You desire to provide support. You may provide support for free, for
71+
a fee, or not at all. Unless required by applicable law or agreed to in
72+
writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES
73+
OR CONDITIONS OF ANY KIND, either express or implied, including, without
74+
limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
75+
MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
76+
77+
7. Should You wish to submit work that is not Your original creation, You may
78+
submit it to the Project separately from any Contribution, identifying the
79+
complete details of its source and of any license or other restriction
80+
(including, but not limited to, related patents, trademarks, and license
81+
agreements) of which you are personally aware, and conspicuously marking the
82+
work as "Submitted on behalf of a third-party: [named here]".
83+
84+
8. You agree to notify the Project of any facts or circumstances of which you
85+
become aware that would make these representations inaccurate in any respect.
86+
87+
Please sign: __________________________________ Date: ________________

CONTRIBUTING.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Contributing code to the Benevis repository
2+
<!--
3+
# SPDX-FileCopyrightText: lowRISC contributors.
4+
# SPDX-License-Identifier: Apache-2.0
5+
-->
6+
7+
## Contributor License Agreement
8+
9+
Contributions to Benevis must be accompanied by sign-off text that indicates
10+
acceptance of the Contributor License Agreement (see [CLA](CLA) for full
11+
text), which is closely derived from the Apache Individual Contributor License
12+
Agreement. The sign-off text must be included once per commit, in the commit
13+
message. The sign-off can be automatically inserted using a command such as
14+
`git commit -s`, which will generate the text in the form:
15+
`Signed-off-by: Random J Developer <[email protected]>`
16+
17+
By adding this sign-off, you are certifying:
18+
19+
_By signing-off on this submission, I agree to be bound by the terms of the
20+
Contributor License Agreement located at the root of the project repository,
21+
and I agree that this submission constitutes a "Contribution" under that
22+
Agreement._
23+
24+
Please note that this project and any contributions to it are public and that
25+
a record of all contributions (including any personal information submitted
26+
with it, including a sign-off) is maintained indefinitely and may be
27+
redistributed consistent with this project or the open source license(s)
28+
involved.
29+
30+
## Quick guidelines
31+
32+
* Keep a clean commit history. This means no merge commits, and no long series
33+
of "fixup" patches (rebase or squash as appropriate). Structure work as a
34+
series of logically ordered, atomic patches. `git rebase -i` is your friend.
35+
* Changes should be made via pull request, with review. A pull request will be
36+
committed by a "committer" once it has had an explicit positive review.
37+
* When changes are restricted to a specific area, you are recommended to add a
38+
tag to the beginning of the first line of the commit message in square
39+
brackets. e.g. "[rdl2ot] Fix bug #15".
40+
* Code review is not design review and doesn't remove the need for discussing
41+
implementation options. If you would like to make a large-scale change or
42+
discuss multiple implementation options, discuss on the mailing list.
43+
* Create pull requests from a fork rather than making new branches in
44+
`github.com/lowrisc/Benevis`.
45+
* Do not attempt to commit code with a non-Apache license without discussing
46+
first.
47+
* If a relevant bug or tracking issue exists, reference it in the pull request
48+
and commits.
49+
50+
For a detailed why and how please refer to one of the multiple [resources](https://chris.beams.io/posts/git-commit/) regarding git commit messages.
51+
52+
If you use `vi` for your commit message, consider to put the following snippet inside your `~/.vimrc`:
53+
54+
```
55+
autocmd Filetype gitcommit setlocal spell textwidth=72
56+
```

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LICENSES/Apache-2.0.txt

0 commit comments

Comments
 (0)