Skip to content

Commit

Permalink
misc: Replace license texts with SPDX
Browse files Browse the repository at this point in the history
Signed-off-by: Akira Moroo <retrage01@gmail.com>
  • Loading branch information
retrage committed Jun 24, 2023
1 parent 7a4271e commit f493883
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 216 deletions.
13 changes: 1 addition & 12 deletions src/block.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use core::cell::RefCell;

Expand Down
14 changes: 2 additions & 12 deletions src/bzimage.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use atomic_refcell::AtomicRefCell;

use crate::{
Expand Down
13 changes: 1 addition & 12 deletions src/common.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#[macro_export]
macro_rules! offset_of {
Expand Down
13 changes: 1 addition & 12 deletions src/efi/alloc.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use r_efi::efi::{self, AllocateType, MemoryType, PhysicalAddress, Status, VirtualAddress};

Expand Down
13 changes: 1 addition & 12 deletions src/efi/block.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use core::ffi::c_void;

Expand Down
13 changes: 1 addition & 12 deletions src/efi/console.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use r_efi::{
efi::{Boolean, Char16, Event, Handle, Status},
Expand Down
13 changes: 1 addition & 12 deletions src/efi/file.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use core::ffi::c_void;

Expand Down
13 changes: 1 addition & 12 deletions src/efi/mod.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use core::{
alloc as heap_alloc,
Expand Down
13 changes: 1 addition & 12 deletions src/fat.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::{
block::{Error as BlockError, SectorBuf, SectorRead},
Expand Down
13 changes: 1 addition & 12 deletions src/integration.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Integration tests live in this file. We can't use the Rust "integration test" mode
// as we don't have the expected source code structure.
Expand Down
13 changes: 1 addition & 12 deletions src/loader.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::{
block::SectorBuf,
Expand Down
13 changes: 1 addition & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![feature(asm_const)]
#![feature(alloc_error_handler)]
Expand Down
13 changes: 1 addition & 12 deletions src/mem.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![allow(dead_code)]

Expand Down
13 changes: 1 addition & 12 deletions src/part.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::block::{Error as BlockError, SectorBuf, SectorRead};

Expand Down
13 changes: 1 addition & 12 deletions src/pci.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use atomic_refcell::AtomicRefCell;

Expand Down
13 changes: 1 addition & 12 deletions src/pe.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::{block::SectorBuf, mem::MemoryRegion};

Expand Down
13 changes: 1 addition & 12 deletions src/serial.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Inspired by https://github.com/phil-opp/blog_os/blob/post-03/src/vga_buffer.rs
// from Philipp Oppermann
Expand Down
13 changes: 1 addition & 12 deletions src/virtio.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/// Virtio related errors
#[derive(Debug)]
Expand Down

0 comments on commit f493883

Please sign in to comment.