Skip to content

Commit

Permalink
rng: update License in source files and readme
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stefano-garzarella authored and mathieupoirier committed Oct 27, 2022
1 parent 8ead248 commit 8e1fb7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions crates/rng/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion crates/rng/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Mathieu Poirier <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
mod vhu_rng;

use log::{info, warn};
Expand Down
2 changes: 1 addition & 1 deletion crates/rng/src/vhu_rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Mathieu Poirier <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::warn;
use std::io::Read;
Expand Down

0 comments on commit 8e1fb7e

Please sign in to comment.