From bd61beeed9c0d59b10bbca5650f450d21be20e63 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Tue, 18 Oct 2022 11:06:56 +0200 Subject: [PATCH] gpio: update License in source files and readme Cargo.toml defines `license = "Apache-2.0 OR BSD-3-Clause"`, so let's update the SPDX in source files and add a section in the readme about the license. Signed-off-by: Stefano Garzarella --- crates/gpio/README.md | 7 +++++++ crates/gpio/src/backend.rs | 2 +- crates/gpio/src/gpio.rs | 2 +- crates/gpio/src/main.rs | 2 +- crates/gpio/src/vhu_gpio.rs | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/crates/gpio/README.md b/crates/gpio/README.md index a71ca57..c063698 100644 --- a/crates/gpio/README.md +++ b/crates/gpio/README.md @@ -63,3 +63,10 @@ use to communicate as well as share the guests memory over a memfd. -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \ -numa node,memdev=mem \ ... + +## License + +This project is licensed under either of + +- [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0 +- [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git a/crates/gpio/src/backend.rs b/crates/gpio/src/backend.rs index 1ade0d6..c3cabd5 100644 --- a/crates/gpio/src/backend.rs +++ b/crates/gpio/src/backend.rs @@ -3,7 +3,7 @@ // Copyright 2022 Linaro Ltd. All Rights Reserved. // Viresh Kumar // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause use log::{info, warn}; use std::num::ParseIntError; diff --git a/crates/gpio/src/gpio.rs b/crates/gpio/src/gpio.rs index be80026..5171983 100644 --- a/crates/gpio/src/gpio.rs +++ b/crates/gpio/src/gpio.rs @@ -3,7 +3,7 @@ // Copyright 2022 Linaro Ltd. All Rights Reserved. // Viresh Kumar // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause use log::error; use std::sync::{Arc, RwLock}; diff --git a/crates/gpio/src/main.rs b/crates/gpio/src/main.rs index 045cea3..075b044 100644 --- a/crates/gpio/src/main.rs +++ b/crates/gpio/src/main.rs @@ -3,7 +3,7 @@ // Copyright 2022 Linaro Ltd. All Rights Reserved. // Viresh Kumar // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause #[cfg(target_env = "gnu")] mod backend; diff --git a/crates/gpio/src/vhu_gpio.rs b/crates/gpio/src/vhu_gpio.rs index b3984d9..406c4ca 100644 --- a/crates/gpio/src/vhu_gpio.rs +++ b/crates/gpio/src/vhu_gpio.rs @@ -3,7 +3,7 @@ // Copyright 2022 Linaro Ltd. All Rights Reserved. // Viresh Kumar // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause use log::error; use std::mem::size_of;