diff --git a/.editorconfig b/.editorconfig index cfbf1d18a..b5215f545 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + # EditorConfig: https://editorconfig.org/ root = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54268da8c..6403e0fd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + name: CI on: push: @@ -15,8 +18,9 @@ jobs: - name: Install dependencies run: ./scripts/deps.sh - - name: Check SPDX tags - run: ./scripts/lint/01-spdx-tags.sh + # 24.04 only has reuse 2.1.0, so use the action for latest version + - name: Check REUSE compliance + uses: fsfe/reuse-action@v6 - name: Check formatting run: ./scripts/lint/02-uncrustify.sh diff --git a/.gitignore b/.gitignore index 8c70cfc7e..4c9925053 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + /build/ /config.mk /power.csv diff --git a/.gitmodules b/.gitmodules index 3afab1489..64b913f48 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + [submodule "ecsim"] path = tools/ecsim url = https://github.com/system76/ecsim.git diff --git a/.mailmap b/.mailmap index e7c2d4ff3..ad2498184 100644 --- a/.mailmap +++ b/.mailmap @@ -1,4 +1,9 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + Andrew Rodland +Brock Szuszczewicz +Brock Szuszczewicz Carl Richell Evan Lojewski Jeremy Soller diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 000000000..0e259d42c --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/LICENSE b/LICENSES/GPL-3.0-only.txt similarity index 100% rename from LICENSE rename to LICENSES/GPL-3.0-only.txt diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 000000000..de0a6183b --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 000000000..6ad3d7a88 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + +version = 1 + +[[annotations]] +path = [ + "Cargo.lock", + "POWER.txt", +] +precedence = "override" +SPDX-License-Identifier = "CC0-1.0" +SPDX-FileCopyrightText = "NONE" + +[[annotations]] +path = [ + "Makefile", + "README.md", + "docs/**", + "scripts/**", + "src/**", +] +precedence = "override" +SPDX-License-Identifier = "GPL-3.0-only" +SPDX-FileCopyrightText = [ + "2025 System76, Inc.", + "2020 Evan Lojewski", + "2020 Fabian Topfstedt", + "2020 Andrew Rodland", + "2020 Brosseau Valentin", + "2023 3mdeb Sp. z o.o.", +] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7e18c85ec..4b777c93f 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + [toolchain] channel = "1.85.0" components = ["clippy", "rustfmt"] diff --git a/scripts/deps.sh b/scripts/deps.sh index a36e05a5e..f10a9514e 100755 --- a/scripts/deps.sh +++ b/scripts/deps.sh @@ -20,6 +20,7 @@ if [ "${ID}" = "debian" ] || [[ "${ID_LIKE}" =~ "debian" ]]; then libudev-dev \ make \ pkgconf \ + reuse \ sdcc \ shellcheck \ uncrustify \ @@ -31,6 +32,7 @@ elif [ "${ID}" = "fedora" ] || [[ "${ID_LIKE}" =~ "fedora" ]]; then avrdude \ gcc \ make \ + reuse \ rustup \ sdcc \ ShellCheck \ @@ -45,6 +47,7 @@ elif [ "${ID}" = "arch" ] || [[ "${ID_LIKE}" =~ "arch" ]]; then gcc \ make \ pkgconf \ + reuse \ rustup \ sdcc \ shellcheck \ diff --git a/scripts/lint/01-reuse.sh b/scripts/lint/01-reuse.sh new file mode 100755 index 000000000..f62263906 --- /dev/null +++ b/scripts/lint/01-reuse.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-only + +# Check that project is REUSE compliant. + +# shellcheck disable=SC1091 + +LINT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) +. "$LINT_DIR/util.sh" + +echo -n "Checking for REUSE compliance..." + +if ! command -v reuse > /dev/null; then + skipped "reuse not found" + exit 0 +fi + +if ! reuse lint --quiet; then + failed + + reuse lint --lines + exit 1 +fi + +passed diff --git a/scripts/lint/01-spdx-tags.sh b/scripts/lint/01-spdx-tags.sh deleted file mode 100755 index e9136e8dd..000000000 --- a/scripts/lint/01-spdx-tags.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: GPL-3.0-only - -# Check that all files have a SPDX license identifier -# TODO: Validate license tags against a whitelist - -LINT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) -. "$LINT_DIR/util.sh" - -echo -n "Checking for SPDX tags..." - -EXCLUDES=( - # Ignore license files - ':!:LICENSE' - ':!:**/LICENSE' - # Ignore cargo files - ':!:**/Cargo.lock' - ':!:**/Cargo.toml' - ':!:rust-toolchain.toml' - # Ignore text files - ':!:*.md' - ':!:*.txt' - # Ignore dotfiles - ':!:\.*' - ':!:**/\.*' -) - -needs_tag=() - -for file in $(git ls-files "${EXCLUDES[@]}"); do - # Only check regular files - if [[ ! -f "$file" ]]; then - continue - fi - - # SPDX must appear at head of file - if ! head "$file" | grep -q 'SPDX-License-Identifier:'; then - needs_tag+=("$file") - fi -done - -if [[ "${#needs_tag[@]}" != "0" ]]; then - failed - - for file in "${needs_tag[@]}"; do - echo "- $file" - done - - exit 1 -fi - -passed diff --git a/src/board/system76/common/flash/flash.mk b/src/board/system76/common/flash/flash.mk index 0144821aa..319f70283 100644 --- a/src/board/system76/common/flash/flash.mk +++ b/src/board/system76/common/flash/flash.mk @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-3.0-or-later +# SPDX-FileCopyrightText: Copyright (C) 2020 Evan Lojewski flash-y += main.c diff --git a/src/board/system76/common/flash/include/flash/entry.h b/src/board/system76/common/flash/include/flash/entry.h index ed5b71ac3..f7495be8d 100644 --- a/src/board/system76/common/flash/include/flash/entry.h +++ b/src/board/system76/common/flash/include/flash/entry.h @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later +// SPDX-FileCopyrightText: Copyright (C) 2020 Evan Lojewski #ifndef _FLASH_ENTRY_H #define _FLASH_ENTRY_H diff --git a/src/board/system76/common/flash/main.c b/src/board/system76/common/flash/main.c index be84a864c..6fa2d58f0 100644 --- a/src/board/system76/common/flash/main.c +++ b/src/board/system76/common/flash/main.c @@ -1,8 +1,5 @@ -/* - * Copyright (C) 2020 Evan Lojewski - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ +// SPDX-License-Identifier: GPL-3.0-or-later +// SPDX-FileCopyrightText: Copyright (C) 2020 Evan Lojewski #include #include diff --git a/src/board/system76/common/flash/wrapper.c b/src/board/system76/common/flash/wrapper.c index 824d4afac..457ea1977 100644 --- a/src/board/system76/common/flash/wrapper.c +++ b/src/board/system76/common/flash/wrapper.c @@ -1,8 +1,5 @@ -/* - * Copyright (C) 2020 Evan Lojewski - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ +// SPDX-License-Identifier: GPL-3.0-or-later +// SPDX-FileCopyrightText: Copyright (C) 2020 Evan Lojewski #include #include diff --git a/src/board/system76/common/include/board/flash.h b/src/board/system76/common/include/board/flash.h index e2cb84fa4..8af3838eb 100644 --- a/src/board/system76/common/include/board/flash.h +++ b/src/board/system76/common/include/board/flash.h @@ -1,8 +1,5 @@ -/* - * Copyright (C) 2020 Evan Lojewski - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ +// SPDX-License-Identifier: GPL-3.0-or-later +// SPDX-FileCopyrightText: Copyright (C) 2020 Evan Lojewski #ifndef _BOARD_FLASH_H #define _BOARD_FLASH_H diff --git a/tools/containers/Makefile b/tools/containers/Makefile index 389726595..4ddfee9f1 100644 --- a/tools/containers/Makefile +++ b/tools/containers/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-3.0-only +# SPDX-FileCopyrightText: 2024 System76, Inc. # Disable built-in rules and variables MAKEFLAGS += --no-builtin-rules --no-builtin-variables diff --git a/tools/containers/ec/Containerfile b/tools/containers/ec/Containerfile index 6e1c3f975..c1e0b9459 100644 --- a/tools/containers/ec/Containerfile +++ b/tools/containers/ec/Containerfile @@ -94,6 +94,7 @@ RUN apt-get --quiet update \ libhidapi-dev \ make \ pkgconf \ + reuse \ rustup \ shellcheck \ uncrustify \ diff --git a/tools/mega2560/Makefile b/tools/mega2560/Makefile index 9e015a5e4..e41dfe0ca 100644 --- a/tools/mega2560/Makefile +++ b/tools/mega2560/Makefile @@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-3.0-only -# SPDX-FileCopyrightText: 2025 System76, Inc. # Disable built-in rules and variables MAKEFLAGS += --no-builtin-rules --no-builtin-variables diff --git a/tools/mega2560/REUSE.toml b/tools/mega2560/REUSE.toml new file mode 100644 index 000000000..968954d9b --- /dev/null +++ b/tools/mega2560/REUSE.toml @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + +version = 1 + +[[annotations]] +path = [ + "Makefile", + "README.md", + "src/**", +] +precedence = "override" +SPDX-License-Identifier = "GPL-3.0-only" +SPDX-FileCopyrightText = "2025 System76, Inc." diff --git a/tools/system76_ectool/.gitignore b/tools/system76_ectool/.gitignore index b83d22266..82064d9a3 100644 --- a/tools/system76_ectool/.gitignore +++ b/tools/system76_ectool/.gitignore @@ -1 +1,4 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + /target/ diff --git a/tools/system76_ectool/Cargo.toml b/tools/system76_ectool/Cargo.toml index c9bfed34e..a64cae5b3 100644 --- a/tools/system76_ectool/Cargo.toml +++ b/tools/system76_ectool/Cargo.toml @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: MIT +# SPDX-FileCopyrightText: 2020 System76, Inc. + [package] name = "system76_ectool" version = "0.3.8" diff --git a/tools/system76_ectool/LICENSE b/tools/system76_ectool/LICENSE deleted file mode 100644 index 2fc283041..000000000 --- a/tools/system76_ectool/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 System76 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/tools/system76_ectool/REUSE.toml b/tools/system76_ectool/REUSE.toml new file mode 100644 index 000000000..4b3880569 --- /dev/null +++ b/tools/system76_ectool/REUSE.toml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: NONE + +version = 1 + +[[annotations]] +path = ["Cargo.lock"] +precedence = "override" +SPDX-License-Identifier = "CC0-1.0" +SPDX-FileCopyrightText = "NONE" diff --git a/tools/system76_ectool/src/access/hid.rs b/tools/system76_ectool/src/access/hid.rs index b5bbca858..d9d2cd3f6 100644 --- a/tools/system76_ectool/src/access/hid.rs +++ b/tools/system76_ectool/src/access/hid.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use hidapi::HidDevice; diff --git a/tools/system76_ectool/src/access/lpc/direct.rs b/tools/system76_ectool/src/access/lpc/direct.rs index f6fc8836f..1a36f78c8 100644 --- a/tools/system76_ectool/src/access/lpc/direct.rs +++ b/tools/system76_ectool/src/access/lpc/direct.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use hwio::{Io, Pio}; diff --git a/tools/system76_ectool/src/access/lpc/linux.rs b/tools/system76_ectool/src/access/lpc/linux.rs index 5bb17528f..c213b4cb4 100644 --- a/tools/system76_ectool/src/access/lpc/linux.rs +++ b/tools/system76_ectool/src/access/lpc/linux.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use std::{ fs, diff --git a/tools/system76_ectool/src/access/lpc/mod.rs b/tools/system76_ectool/src/access/lpc/mod.rs index 7710d11e2..7c123b8b4 100644 --- a/tools/system76_ectool/src/access/lpc/mod.rs +++ b/tools/system76_ectool/src/access/lpc/mod.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. const SMFI_CMD_BASE: u16 = 0xE00; const SMFI_CMD_SIZE: usize = 0x100; diff --git a/tools/system76_ectool/src/access/lpc/sim.rs b/tools/system76_ectool/src/access/lpc/sim.rs index ae593afe4..12cfa0532 100644 --- a/tools/system76_ectool/src/access/lpc/sim.rs +++ b/tools/system76_ectool/src/access/lpc/sim.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use std::{io, net::UdpSocket, time::Duration}; diff --git a/tools/system76_ectool/src/access/mod.rs b/tools/system76_ectool/src/access/mod.rs index 6886b2195..2adcfe4ef 100644 --- a/tools/system76_ectool/src/access/mod.rs +++ b/tools/system76_ectool/src/access/mod.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use crate::Error; use downcast_rs::Downcast; diff --git a/tools/system76_ectool/src/ec.rs b/tools/system76_ectool/src/ec.rs index 03006852e..cc04f9cf5 100644 --- a/tools/system76_ectool/src/ec.rs +++ b/tools/system76_ectool/src/ec.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. #[cfg(not(feature = "std"))] use alloc::{boxed::Box, vec}; diff --git a/tools/system76_ectool/src/error.rs b/tools/system76_ectool/src/error.rs index a48636419..bc0a790b8 100644 --- a/tools/system76_ectool/src/error.rs +++ b/tools/system76_ectool/src/error.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. /// Errors returned by operations #[derive(Debug)] diff --git a/tools/system76_ectool/src/firmware.rs b/tools/system76_ectool/src/firmware.rs index e0e674f30..9bd373e66 100644 --- a/tools/system76_ectool/src/firmware.rs +++ b/tools/system76_ectool/src/firmware.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. /// Parses firmware information from a firmware ROM pub struct Firmware<'a> { diff --git a/tools/system76_ectool/src/legacy.rs b/tools/system76_ectool/src/legacy.rs index b4c9aae60..d12d2c406 100644 --- a/tools/system76_ectool/src/legacy.rs +++ b/tools/system76_ectool/src/legacy.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use crate::{Error, Pmc, SuperIo, Timeout}; diff --git a/tools/system76_ectool/src/lib.rs b/tools/system76_ectool/src/lib.rs index 8b999bfdf..a79aa9855 100644 --- a/tools/system76_ectool/src/lib.rs +++ b/tools/system76_ectool/src/lib.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. //! Library for accessing System76 ECs //! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec diff --git a/tools/system76_ectool/src/main.rs b/tools/system76_ectool/src/main.rs index 4b3351725..05e754460 100644 --- a/tools/system76_ectool/src/main.rs +++ b/tools/system76_ectool/src/main.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. #![allow(clippy::uninlined_format_args)] diff --git a/tools/system76_ectool/src/pmc.rs b/tools/system76_ectool/src/pmc.rs index d86dcf7d1..dfe63c3ac 100644 --- a/tools/system76_ectool/src/pmc.rs +++ b/tools/system76_ectool/src/pmc.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use hwio::{Io, Pio}; diff --git a/tools/system76_ectool/src/spi.rs b/tools/system76_ectool/src/spi.rs index 877e42df5..98f35a7f2 100644 --- a/tools/system76_ectool/src/spi.rs +++ b/tools/system76_ectool/src/spi.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use crate::{Error, Timeout}; diff --git a/tools/system76_ectool/src/super_io.rs b/tools/system76_ectool/src/super_io.rs index 56e333d3a..81d7d774e 100644 --- a/tools/system76_ectool/src/super_io.rs +++ b/tools/system76_ectool/src/super_io.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. use hwio::{Io, Pio}; diff --git a/tools/system76_ectool/src/timeout.rs b/tools/system76_ectool/src/timeout.rs index 78364e708..46c816fcc 100644 --- a/tools/system76_ectool/src/timeout.rs +++ b/tools/system76_ectool/src/timeout.rs @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2020 System76, Inc. #[cfg(feature = "std")] use std::time::{Duration, Instant};