From 8e1fb7e985c8c91b770c0701b6e37e8592ae3738 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Tue, 18 Oct 2022 11:09:45 +0200 Subject: [PATCH] rng: 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/rng/README.md | 7 +++++++ crates/rng/src/main.rs | 2 +- crates/rng/src/vhu_rng.rs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/rng/README.md b/crates/rng/README.md index bb1ee826..74080c02 100644 --- a/crates/rng/README.md +++ b/crates/rng/README.md @@ -71,3 +71,10 @@ for the backend RNG device to communicate with the vhost RNG daemon: -device vhost-user-rng-pci,chardev=rng0 \ -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/rng/src/main.rs b/crates/rng/src/main.rs index aa7270aa..2dd77d78 100644 --- a/crates/rng/src/main.rs +++ b/crates/rng/src/main.rs @@ -2,7 +2,7 @@ // Copyright 2022 Linaro Ltd. All Rights Reserved. // Mathieu Poirier // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause mod vhu_rng; use log::{info, warn}; diff --git a/crates/rng/src/vhu_rng.rs b/crates/rng/src/vhu_rng.rs index 7facbb68..4fe27fa8 100644 --- a/crates/rng/src/vhu_rng.rs +++ b/crates/rng/src/vhu_rng.rs @@ -3,7 +3,7 @@ // Copyright 2022 Linaro Ltd. All Rights Reserved. // Mathieu Poirier // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause use log::warn; use std::io::Read;