Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

alevy
Copy link
Member

@alevy alevy commented Nov 4, 2022

Pull Request Overview

This pull request adds a default copyright and license notice to all Rust files in the repository

Testing Strategy

None

TODO or Help Wanted

Documentation Updated

  • [] Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@github-actions github-actions bot added component HIL This affects a Tock HIL interface. kernel chips/nrf Change pertains to the nRF5x family of MCUs. arch/risc-v RISC-V architecture chips/sam4l Change pertains to the SAM4L MCU. chips/stm32 Change pertains to the stm32 family of MCUSs tock-libraries This affects libraries supported by the Tock project WG-OpenTitan In the purview of the OpenTitan working group. labels Nov 4, 2022
@alevy alevy added the P-Significant This is a substancial change that requires review from all core developers. label Nov 4, 2022
@hudson-ayers
Copy link
Contributor

2 files we may need to consider:

hudson: ~/tock (master) $ rg Copyright --type rust
capsules/src/sip_hash.rs
16://! Copyright 2012-2016 The Rust Project Developers.
17://! Copyright 2016-2021 Frank Denis.
18://! Copyright 2021 Western Digital

chips/nrf52/src/crt1.rs
11: * Copyright 2016, Michael Andersen <[email protected]>

Based on the discussion on the call today, I think our conclusion was that these files should have the added copyright in this PR removed in favor of what is already there. It is also worth noting that the crt1 file seems to be licensed only under Apache 2.0

@alevy
Copy link
Member Author

alevy commented Nov 4, 2022

@hudson-ayers thanks for finding those! Fixed those two files (by just removing the lines I had added)

@jrvanwhy
Copy link
Contributor

jrvanwhy commented Nov 4, 2022

I thought Pat was going to write up a policy document for license headers. Did I misunderstand during the meeting?

@hudson-ayers
Copy link
Contributor

I thought Pat was going to write up a policy document for license headers. Did I misunderstand during the meeting?

You understood correctly, I don't think this will be merged without that document first getting written and approved.

@lschuermann lschuermann added the blocked Waiting on something, like a different PR or a dependency. label Nov 4, 2022
@bradjc
Copy link
Contributor

bradjc commented Nov 21, 2022

Why is the first line Apache or MIT, and the second line MIT or Apache?

@alevy
Copy link
Member Author

alevy commented Nov 22, 2022

Why is the first line Apache or MIT, and the second line MIT or Apache?

Oops... because I made a mistake. Will fix

@alevy
Copy link
Member Author

alevy commented Jan 20, 2023

Rebased and added the Copyright Tock Contributors 2023 line

@alevy
Copy link
Member Author

alevy commented Mar 30, 2023

@jrvanwhy done

hudson-ayers
hudson-ayers previously approved these changes Mar 30, 2023
Copy link
Contributor

@jrvanwhy jrvanwhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Licensed under the Apache License, Version 2.0 or the MIT License.
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright Tock Contributors 2022.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file already has a license header, please revert.

@jrvanwhy
Copy link
Contributor

Oh, and please don't bulk-update this PR to say 2023 instead of 2022 -- I've marked every file as viewed and I'd strongly prefer to not lose that state.

bradjc
bradjc previously approved these changes Mar 31, 2023
@alevy alevy dismissed stale reviews from bradjc and hudson-ayers via 2f49fcf March 31, 2023 17:04
@jrvanwhy
Copy link
Contributor

@lschuermann The following files were added in #3110, should they be copyright 2022 or 2023?

  1. chips/qemu_rv32_virt_chip/src/virtio_mmio.rs
  2. chips/virtio/src/queues/split_queue.rs

Also, the following files were added in #3396, same question (2022 or 2023):

  1. capsules/core/Cargo.toml
  2. capsules/core/src/lib.rs
  3. capsules/core/src/virtualizers/mod.rs
  4. capsules/extra/Cargo.toml
  5. capsules/extra/src/test/mod.rs

Leon wasn't immediately available, so we decided on the core WG call to change these dates to 2023 so this can be merged ASAP.

@jrvanwhy
Copy link
Contributor

You'll need to add tools/sha256sum/src/main.rs to a .lcignore file for CI to pass.

@lschuermann
Copy link
Member

Leon wasn't immediately available, so we decided on the core WG call to change these dates to 2023 so this can be merged ASAP.

@jrvanwhy My apologies for the delayed response! 2023 is absolutely fine, I can update them right now.

@lschuermann
Copy link
Member

Okay, raced with @alevy on the push. This looks good to me otherwise, thanks so much for the work!

Copy link
Contributor

@jrvanwhy jrvanwhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capsules/extra/src/can.rs still has an extra header, but we can fix that in a later PR.

@alevy
Copy link
Member Author

alevy commented Apr 1, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 1, 2023

👎 Rejected by label

@alevy alevy removed the blocked Waiting on something, like a different PR or a dependency. label Apr 1, 2023
@alevy
Copy link
Member Author

alevy commented Apr 1, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 1, 2023

Build succeeded:

@bors bors bot merged commit 9496135 into master Apr 1, 2023
@bors bors bot deleted the license branch April 1, 2023 02:12
jrvanwhy pushed a commit to jrvanwhy/tock that referenced this pull request Apr 1, 2023
This PR adds license headers for every file type in the repository that the license checker supports. This uses the same license notice style as tock#3317, setting the copyright year to the current year (2023) across-the-board.

I removed the `/.envrc` and `/.direnv` exclusions, as I don't think they belong it `.lcignore`. I think they belong in `.gitignore` instead? I'd appreciate input on where they belong (or why I was wrong and they belong in `.lcignore`).

I also made a stylistic decision to have a single `.lcignore` file in the root of the repository. To that end, I kept `doc/`-specific rules in the root `.lcignore`, and removed `tools/license-checker/testdata/.lcignore`.
bors bot added a commit that referenced this pull request Apr 17, 2023
3420: Add license headers to every file the license checker supports. r=jrvanwhy a=jrvanwhy

This PR adds license headers for every file type in the repository that the license checker supports. This uses the same license notice style as #3317, setting the copyright year to the current year (2023) across-the-board.

I removed the `/.envrc` and `/.direnv` exclusions, as I don't think they belong it `.lcignore`. I think they belong in `.gitignore` instead? I'd appreciate input on where they belong (or why I was wrong and they belong in `.lcignore`).

I also made a stylistic decision to have a single `.lcignore` file in the root of the repository. To that end, I kept `doc/`-specific rules in the root `.lcignore`, and removed `tools/license-checker/testdata/.lcignore`.

Oh, and I removed the duplicate header on `capsules/extra/src/can.rs`.

3424: doc: notes: update dates and format r=brghena a=bradjc

### Pull Request Overview

Just a couple of minor fixes to documentation dates and formatting I found.


### Testing Strategy

This pull request was tested by...


### TODO or Help Wanted

This pull request still needs...


### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Johnathan Van Why <[email protected]>
Co-authored-by: Brad Campbell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/risc-v RISC-V architecture chips/nrf Change pertains to the nRF5x family of MCUs. chips/sam4l Change pertains to the SAM4L MCU. chips/stm32 Change pertains to the stm32 family of MCUSs component HIL This affects a Tock HIL interface. kernel P-Significant This is a substancial change that requires review from all core developers. tock-libraries This affects libraries supported by the Tock project WG-OpenTitan In the purview of the OpenTitan working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants