diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml new file mode 100644 index 0000000..4cde0df --- /dev/null +++ b/.github/workflows/reuse.yml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2023 Rivos Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +name: reuse + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: reuse Compliance Check + uses: fsfe/reuse-action@v1 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2684e22..7de853e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Rivos Inc. +# +# SPDX-License-Identifier: Apache-2.0 + name: Rust on: diff --git a/.gitignore b/.gitignore index 3e58fe2..e4f5af4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Rivos Inc. +# +# SPDX-License-Identifier: Apache-2.0 + target/ **/*.rs.bk **/*.sw[po] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..9b65909 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: 2023 Rivos Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +repos: + # pull mirror of https://github.com/fsfe/reuse-tool + - repo: https://github.com/rivosinc/reuse-tool + rev: '91c61b9b5f85d4f0023cb780dad635cc6ff08afa' + hooks: + # Check compliance + - id: reuse diff --git a/BUILD b/BUILD index 4546bd6..c989d33 100644 --- a/BUILD +++ b/BUILD @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Rivos Inc. +# +# SPDX-License-Identifier: Apache-2.0 + package(default_visibility = ["//visibility:public"]) load("@rules_rust//rust:defs.bzl", "rust_clippy", "rust_library", "rustfmt_test") diff --git a/LICENSES/LicenseRef-ChromiumOS-BSD-style.txt b/LICENSES/LicenseRef-ChromiumOS-BSD-style.txt deleted file mode 100644 index f6d41c6..0000000 --- a/LICENSES/LicenseRef-ChromiumOS-BSD-style.txt +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2017 The ChromiumOS Authors -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index 4e0899b..1805256 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ + + # Overview +[![REUSE status](https://api.reuse.software/badge/github.com/rivosinc/sbi-rs)](https://api.reuse.software/info/github.com/rivosinc/sbi-rs) + This crate provides interfaces for both implementing(firmware or hypervisor) and using(S and VS mode supervisors) [SBI](https://github.com/riscv-non-isa/riscv-sbi-doc/releases) functionality. diff --git a/bazel-locks/Sbi-Cargo.Bazel.lock.license b/bazel-locks/Sbi-Cargo.Bazel.lock.license new file mode 100644 index 0000000..d8f6e93 --- /dev/null +++ b/bazel-locks/Sbi-Cargo.Bazel.lock.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 Rivos Inc. + +SPDX-License-Identifier: Apache-2.0 diff --git a/bazel-locks/sbi-cargo-bazel-lock.json.license b/bazel-locks/sbi-cargo-bazel-lock.json.license new file mode 100644 index 0000000..d8f6e93 --- /dev/null +++ b/bazel-locks/sbi-cargo-bazel-lock.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 Rivos Inc. + +SPDX-License-Identifier: Apache-2.0 diff --git a/deps.bzl b/deps.bzl index f397675..18e9665 100644 --- a/deps.bzl +++ b/deps.bzl @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Rivos Inc. +# +# SPDX-License-Identifier: Apache-2.0 + load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository") # on changes to crate depdencies, run the following command: