Skip to content

Commit

Permalink
fix noncompliant copyright/license files; add reuse compliance badge,…
Browse files Browse the repository at this point in the history
… github action, pre-commit hook

related to #18

Signed-off-by: Kevin Broch <kbroch@rivosinc.com>
  • Loading branch information
kbroch-rivosinc committed May 20, 2023
1 parent 18febaf commit 53a589e
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 27 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

name: Rust

on:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

target/
**/*.rs.bk
**/*.sw[po]
Expand Down
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
27 changes: 0 additions & 27 deletions LICENSES/LicenseRef-ChromiumOS-BSD-style.txt

This file was deleted.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<!--
SPDX-FileCopyrightText: 2023 Rivos Inc.
SPDX-License-Identifier: Apache-2.0
-->

# 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.
Expand Down
3 changes: 3 additions & 0 deletions bazel-locks/Sbi-Cargo.Bazel.lock.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Rivos Inc.

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions bazel-locks/sbi-cargo-bazel-lock.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Rivos Inc.

SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions deps.bzl
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 53a589e

Please sign in to comment.