Skip to content

Commit df0f31a

Browse files
Add SPDX headers to xtask
1 parent 370c2c7 commit df0f31a

18 files changed

+36
-0
lines changed

xtask/src/arch.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 std::fmt;
24

35
#[derive(Clone, Copy, Debug, Eq, PartialEq, clap::ValueEnum)]

xtask/src/cargo.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::arch::UefiArch;
24
use anyhow::{bail, Result};
35
use std::env;

xtask/src/check_raw.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
//! Validate various properties of the code in the `uefi-raw` package.
24
//!
35
//! For example, this checks that no Rust enums are used, that structs have an

xtask/src/device_path/field.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::device_path::util::is_doc_attr;
24
use proc_macro2::{Span, TokenStream};
35
use quote::{quote, ToTokens, TokenStreamExt};

xtask/src/device_path/group.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::node::{is_node_attr, Node};
24
use heck::ToUpperCamelCase;
35
use proc_macro2::{Span, TokenStream};

xtask/src/device_path/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
mod field;
24
mod group;
35
mod node;

xtask/src/device_path/node.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::field::NodeField;
24
use super::group::DeviceType;
35
use crate::device_path::util::is_doc_attr;

xtask/src/device_path/spec.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
// See the README in this directory for details of what this file is.
24
//
35
// The nodes here are in the same order as in the UEFI Specification.

xtask/src/device_path/util.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 anyhow::{bail, Context, Result};
24
use std::io::Write;
35
use std::process::{Command, Stdio};

xtask/src/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 anyhow::Result;
24
use fatfs::{Date, DateTime, FileSystem, FormatVolumeOptions, FsOptions, Time};
35
use mbrman::{MBRPartitionEntry, BOOT_INACTIVE, CHS, MBR};

xtask/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
mod arch;
24
mod cargo;
35
mod check_raw;

xtask/src/net.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 std::net::UdpSocket;
24
use std::sync::{Arc, Mutex};
35
use std::thread::{self, JoinHandle};

xtask/src/opt.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::arch::UefiArch;
24
use clap::{Parser, Subcommand, ValueEnum};
35
use std::ops::Deref;

xtask/src/pipe.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::platform;
24
use crate::qemu::Io;
35
use anyhow::Result;

xtask/src/platform.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
//! Functions to determine the host platform.
24
//!
35
//! Use the functions where possible instead of `#[cfg(...)]` so that

xtask/src/qemu.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::arch::UefiArch;
24
use crate::disk::{check_mbr_test_disk, create_mbr_test_disk};
35
use crate::opt::QemuOpt;

xtask/src/tpm.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::opt::TpmVersion;
24
use crate::util::command_to_string;
35
use anyhow::Result;

xtask/src/util.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 anyhow::{bail, Result};
24
use std::process::Command;
35

0 commit comments

Comments
 (0)