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 <sgarzare@redhat.com>
This commit is contained in:
Stefano Garzarella 2022-10-18 11:06:56 +02:00 committed by Mathieu Poirier
parent 6c52f494a3
commit bd61beeed9
5 changed files with 11 additions and 4 deletions

View File

@ -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)

View File

@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <viresh.kumar@linaro.org>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use log::{info, warn};
use std::num::ParseIntError;

View File

@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <viresh.kumar@linaro.org>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use log::error;
use std::sync::{Arc, RwLock};

View File

@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <viresh.kumar@linaro.org>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
#[cfg(target_env = "gnu")]
mod backend;

View File

@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <viresh.kumar@linaro.org>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use log::error;
use std::mem::size_of;