From 8ead2485608dca138828cbec3ff41760f79703d8 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Tue, 18 Oct 2022 11:09:26 +0200 Subject: [PATCH] i2c: 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/i2c/README.md | 7 +++++++ crates/i2c/src/i2c.rs | 2 +- crates/i2c/src/main.rs | 2 +- crates/i2c/src/vhu_i2c.rs | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/crates/i2c/README.md b/crates/i2c/README.md index f73fe26..eaa52ed 100644 --- a/crates/i2c/README.md +++ b/crates/i2c/README.md @@ -62,3 +62,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/i2c/src/i2c.rs b/crates/i2c/src/i2c.rs index a2f88e4..43d6d41 100644 --- a/crates/i2c/src/i2c.rs +++ b/crates/i2c/src/i2c.rs @@ -3,7 +3,7 @@ // Copyright 2021 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; use std::collections::HashMap; diff --git a/crates/i2c/src/main.rs b/crates/i2c/src/main.rs index 9c42395..57c8926 100644 --- a/crates/i2c/src/main.rs +++ b/crates/i2c/src/main.rs @@ -3,7 +3,7 @@ // Copyright 2021 Linaro Ltd. All Rights Reserved. // Viresh Kumar // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause mod i2c; mod vhu_i2c; diff --git a/crates/i2c/src/vhu_i2c.rs b/crates/i2c/src/vhu_i2c.rs index db45ace..09072eb 100644 --- a/crates/i2c/src/vhu_i2c.rs +++ b/crates/i2c/src/vhu_i2c.rs @@ -3,7 +3,7 @@ // Copyright 2021 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::warn; use std::mem::size_of;