riscv: Update SPDX license identifiers

The whole gnu-efi project is licensed under BSD license, see [1].
However some of the RISC-V codes have conflict license identifiers:

- Some mention GPL-2.0+ in the SPDX license part, but the long license
  header indicates it's actually BSD and GPL-2.0+ dual-licensed
- Some mention GPL-2.0+ in the SPDX license part only
- Some do not have any license indication

To have a matching license with the whole project, this commit updates
all RISC-V codes to have the correct SPDX license identifiers
(GPL-2.0+ or BSD dual-license).

Link: https://sourceforge.net/p/gnu-efi/ [1]
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
bmeng@tinylab.org 2023-03-08 10:32:49 -05:00 committed by Nigel Croxon
parent 1a10c66182
commit 0f9c15fe4f
8 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0+ */ /* SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause */
/* /*
* Copright (C) 2014 Linaro Ltd. <ard.biesheuvel@linaro.org> * Copright (C) 2014 Linaro Ltd. <ard.biesheuvel@linaro.org>
* Copright (C) 2018 Alexander Graf <agraf@suse.de> * Copright (C) 2018 Alexander Graf <agraf@suse.de>

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0+ */ /* SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause */
OUTPUT_FORMAT("elf64-littleriscv", "elf64-littleriscv", "elf64-littleriscv") OUTPUT_FORMAT("elf64-littleriscv", "elf64-littleriscv", "elf64-littleriscv")
OUTPUT_ARCH(riscv) OUTPUT_ARCH(riscv)

View File

@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
/* reloc_riscv.c - position independent ELF shared object relocator /* reloc_riscv.c - position independent ELF shared object relocator
Copyright (C) 2018 Alexander Graf <agraf@suse.de> Copyright (C) 2018 Alexander Graf <agraf@suse.de>
Copyright (C) 2014 Linaro Ltd. <ard.biesheuvel@linaro.org> Copyright (C) 2014 Linaro Ltd. <ard.biesheuvel@linaro.org>

View File

@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause */
/* /*
* Copright (C) 2014 - 2015 Linaro Ltd. * Copright (C) 2014 - 2015 Linaro Ltd.
* Author: Ard Biesheuvel <ard.biesheuvel@linaro.org> * Author: Ard Biesheuvel <ard.biesheuvel@linaro.org>

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0+ */ /* SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause */
VOID VOID
InitializeLibPlatform ( InitializeLibPlatform (

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause */
#ifndef GNU_EFI_RISCV64_SETJMP_H #ifndef GNU_EFI_RISCV64_SETJMP_H
#define GNU_EFI_RISCV64_SETJMP_H #define GNU_EFI_RISCV64_SETJMP_H

View File

@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause
#include "lib.h" #include "lib.h"

View File

@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause
/* /*
* Copyright Heinrich Schuchardt <xypron.glpk@gmx.de> * Copyright Heinrich Schuchardt <xypron.glpk@gmx.de>
*/ */