Skip to content

Commit 33c30fc

Browse files
Merge pull request #1532 from nicholasbishop/bishop-spdx
Add SPDX headers
2 parents 20f3f13 + 93062c1 commit 33c30fc

File tree

189 files changed

+459
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+459
-1
lines changed

Diff for: uefi-macros/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
#![recursion_limit = "128"]
24

35
extern crate proc_macro;

Diff for: uefi-macros/tests/compilation.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
#[test]
24
fn ui() {
35
let t = trybuild::TestCases::new();

Diff for: uefi-raw/src/capsule.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI update capsules.
24
//!
35
//! Capsules are used to pass information to the firmware, for example to

Diff for: uefi-raw/src/enums.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! This module provides tooling that facilitates dealing with C-style enums
24
//!
35
//! C-style enums and Rust-style enums are quite different. There are things

Diff for: uefi-raw/src/firmware_storage.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Types related to firmware storage.
24
35
use crate::Guid;

Diff for: uefi-raw/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Raw interface for working with UEFI.
24
//!
35
//! This crate is intended for implementing UEFI services. It is also used for

Diff for: uefi-raw/src/protocol/block.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Guid, Status};
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/protocol/console.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
pub mod serial;
24

35
use crate::{guid, Char16, Event, Guid, PhysicalAddress, Status};

Diff for: uefi-raw/src/protocol/console/serial.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Guid, Status};
24
use bitflags::bitflags;
35

Diff for: uefi-raw/src/protocol/device_path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
mod device_path_gen;
24

35
use crate::{guid, Char16, Guid};

Diff for: uefi-raw/src/protocol/device_path/device_path_gen.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
// DO NOT EDIT
24
//
35
// This file was automatically generated with:

Diff for: uefi-raw/src/protocol/disk.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Event, Guid, Status};
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/protocol/driver.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::device_path::DevicePathProtocol;
24
use crate::{guid, Guid, Handle, Status};
35

Diff for: uefi-raw/src/protocol/file_system.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::time::Time;
24
use crate::{guid, Char16, Event, Guid, Status};
35
use bitflags::bitflags;

Diff for: uefi-raw/src/protocol/firmware_volume.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::firmware_storage::FirmwareVolumeAttributes;
24
use crate::protocol::block::Lba;
35
use crate::{guid, Guid, Handle, PhysicalAddress, Status};

Diff for: uefi-raw/src/protocol/hii/database.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Bindings for HII Database Protocol
24
35
use super::{HiiHandle, HiiPackageHeader, HiiPackageListHeader, KeyDescriptor};

Diff for: uefi-raw/src/protocol/hii/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! HII Protocols
24
35
pub mod database;

Diff for: uefi-raw/src/protocol/loaded_image.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::device_path::DevicePathProtocol;
24
use crate::table::boot::MemoryType;
35
use crate::table::system::SystemTable;

Diff for: uefi-raw/src/protocol/media.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::device_path::DevicePathProtocol;
24
use crate::{guid, Guid, Status};
35
use core::ffi::c_void;

Diff for: uefi-raw/src/protocol/memory_protection.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::table::boot::MemoryAttribute;
24
use crate::{guid, Guid, PhysicalAddress, Status};
35

Diff for: uefi-raw/src/protocol/misc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::table::runtime;
24
use crate::{guid, Guid, Status};
35

Diff for: uefi-raw/src/protocol/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Protocol definitions.
24
//!
35
//! Protocols are sets of related functionality identified by a unique

Diff for: uefi-raw/src/protocol/network/dhcp4.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char8, Event, Guid, Ipv4Address, MacAddress, Status};
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/protocol/network/http.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char16, Char8, Event, Guid, Ipv4Address, Ipv6Address, Status};
24
use core::ffi::c_void;
35
use core::fmt::{self, Debug, Formatter};

Diff for: uefi-raw/src/protocol/network/ip4.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::Ipv4Address;
24

35
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]

Diff for: uefi-raw/src/protocol/network/ip4_config2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::network::ip4::Ip4RouteTable;
24
use crate::{guid, Char16, Event, Guid, Ipv4Address, MacAddress, Status};
35
use core::ffi::c_void;

Diff for: uefi-raw/src/protocol/network/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
pub mod dhcp4;
24
pub mod http;
35
pub mod ip4;

Diff for: uefi-raw/src/protocol/network/tls.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Guid, Status};
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/protocol/rng.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! `Rng` protocol.
24
35
use crate::{guid, Guid, Status};

Diff for: uefi-raw/src/protocol/scsi.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Event, Guid, Status};
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/protocol/shell_params.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char16, Guid};
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/protocol/string.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char16, Char8, Guid};
24

35
#[derive(Debug)]

Diff for: uefi-raw/src/protocol/tcg.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! [TCG] (Trusted Computing Group) protocols.
24
//!
35
//! These protocols provide access to the [TPM][tpm] (Trusted Platform Module).

Diff for: uefi-raw/src/protocol/tcg/enums.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
newtype_enum! {
24
/// Algorithm identifiers.
35
///

Diff for: uefi-raw/src/protocol/tcg/v1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! [TCG] (Trusted Computing Group) protocol for [TPM] (Trusted Platform
24
//! Module) 1.1 and 1.2.
35
//!

Diff for: uefi-raw/src/protocol/tcg/v2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! [TCG] (Trusted Computing Group) protocol for [TPM] (Trusted Platform
24
//! Module) 2.0.
35
//!

Diff for: uefi-raw/src/status.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use core::fmt::Debug;
24

35
newtype_enum! {

Diff for: uefi-raw/src/table/boot.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI services available during boot.
24
35
use crate::protocol::device_path::DevicePathProtocol;

Diff for: uefi-raw/src/table/configuration.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::Guid;
24
use core::ffi::c_void;
35

Diff for: uefi-raw/src/table/header.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use super::Revision;
24

35
/// The common header that all UEFI tables begin with.

Diff for: uefi-raw/src/table/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Standard UEFI tables.
24
35
mod header;

Diff for: uefi-raw/src/table/revision.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use core::fmt;
24

35
/// A revision of the UEFI specification.

Diff for: uefi-raw/src/table/runtime.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI services available at runtime, even after the OS boots.
24
35
use crate::capsule::CapsuleHeader;

Diff for: uefi-raw/src/table/system.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::console::{SimpleTextInputProtocol, SimpleTextOutputProtocol};
24
use crate::table::boot::BootServices;
35
use crate::table::configuration::ConfigurationTable;

Diff for: uefi-raw/src/time.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Date and time types.
24
35
use bitflags::bitflags;

Diff for: uefi-test-runner/examples/hello_world.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
// ANCHOR: all
24
// ANCHOR: features
35
#![no_main]

Diff for: uefi-test-runner/examples/loaded_image.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
// ANCHOR: all
24
#![no_main]
35
#![no_std]

Diff for: uefi-test-runner/examples/shell_params.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
// ANCHOR: all
24
// ANCHOR: features
35
#![no_main]

Diff for: uefi-test-runner/examples/sierpinski.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
// ANCHOR: all
24
#![no_main]
35
#![no_std]

Diff for: uefi-test-runner/examples/timestamp.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
// ANCHOR: all
24
// ANCHOR: features
35
#![no_main]

Diff for: uefi-test-runner/src/bin/shell_launcher.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! This application launches the UEFI shell app and runs the main
24
//! uefi-test-running app inside that shell. This allows testing of protocols
35
//! that require the shell.

Diff for: uefi-test-runner/src/boot/memory.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use alloc::vec::Vec;
24
use uefi::boot::{self, AllocateType};
35
use uefi::mem::memory_map::{MemoryMap, MemoryMapMut, MemoryType};

Diff for: uefi-test-runner/src/boot/misc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use core::ffi::c_void;
24
use core::ptr::{self, NonNull};
35

Diff for: uefi-test-runner/src/boot/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use alloc::string::ToString;
24
use uefi::boot::{LoadImageSource, SearchType};
35
use uefi::fs::FileSystem;

Diff for: uefi-test-runner/src/fs/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Tests functionality from the `uefi::fs` module. See function [`test`].
24

35
use alloc::string::{String, ToString};

Diff for: uefi-test-runner/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
#![no_std]
24
#![no_main]
35

Diff for: uefi-test-runner/src/proto/console/gop.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{send_request_to_host, HostRequest};
24
use uefi::boot::{self, OpenProtocolAttributes, OpenProtocolParams};
35
use uefi::proto::console::gop::{BltOp, BltPixel, FrameBuffer, GraphicsOutput, PixelFormat};

Diff for: uefi-test-runner/src/proto/console/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use uefi::prelude::*;
24

35
pub fn test() {

Diff for: uefi-test-runner/src/proto/console/pointer.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use uefi::boot;
24
use uefi::proto::console::pointer::Pointer;
35

Diff for: uefi-test-runner/src/proto/console/serial.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::reconnect_serial_to_console;
24
use uefi::proto::console::serial::{ControlBits, Serial};
35
use uefi::{boot, Result, ResultExt, Status};

Diff for: uefi-test-runner/src/proto/console/stdout.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use uefi::prelude::*;
24
use uefi::proto::console::text::{Color, Output};
35

Diff for: uefi-test-runner/src/proto/debug.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use alloc::vec::Vec;
24
use core::ffi::c_void;
35
use uefi::boot;

Diff for: uefi-test-runner/src/proto/device_path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use alloc::boxed::Box;
24
use alloc::vec::Vec;
35
use uefi::proto::device_path::build::{self, DevicePathBuilder};

Diff for: uefi-test-runner/src/proto/driver.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use uefi::boot::{self, ScopedProtocol, SearchType};
24
use uefi::prelude::*;
35
use uefi::proto::driver::{ComponentName, ComponentName2, LanguageError, LanguageIter};

Diff for: uefi-test-runner/src/proto/load.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use alloc::boxed::Box;
24
use alloc::string::{String, ToString};
35
use alloc::vec::Vec;

Diff for: uefi-test-runner/src/proto/loaded_image.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use uefi::prelude::*;
24
use uefi::proto::loaded_image::LoadedImage;
35

0 commit comments

Comments
 (0)