浏览代码

target: use SPDX license identifiers on scripts

Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Adrian Schmutzler <[email protected]>
Adrian Schmutzler 4 年之前
父节点
当前提交
7157c77c6d

+ 1 - 5
target/linux/arc770/image/gen_axs10x_sdcard_img.sh

@@ -1,11 +1,7 @@
 #!/bin/sh
-
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2016 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 5 ] || {

+ 1 - 5
target/linux/archs38/image/gen_axs10x_sdcard_img.sh

@@ -1,11 +1,7 @@
 #!/bin/sh
-
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2016 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 5 ] || {

+ 1 - 5
target/linux/at91/image/gen_at91_sdcard_img.sh

@@ -1,11 +1,7 @@
 #!/bin/sh
-
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2017 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 5 ] || {

+ 1 - 4
target/linux/layerscape/image/gen_sdcard_head_img.sh

@@ -1,10 +1,7 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright 2018 NXP
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 5 ] || {

+ 1 - 2
target/linux/layerscape/image/mkits-multiple-config.sh

@@ -1,6 +1,5 @@
 #!/usr/bin/env bash
-#
-# Licensed under the terms of the GNU GPL License version 2 or later.
+# SPDX-License-Identifier: GPL-2.0-or-later
 #
 # Author: Jason Wu <[email protected]>
 # with modifications for multi-DTB-same-image by:

+ 1 - 4
target/linux/mediatek/image/gen_mtk_mmc_img.sh

@@ -1,11 +1,8 @@
 #!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright © 2019 Alexey Loukianov <[email protected]>
 # Copyright © 2020 David Woodhouse <[email protected]>
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 # Generates a bootable SD card image for Banana Pi R2 (and probably
 # other similar boards) as documented at

+ 1 - 3
target/linux/mediatek/image/gen_scatterfile.sh

@@ -1,10 +1,8 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright © 2020 David Woodhouse <[email protected]>
 #
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 # Generate as "scatter file" for use with the MediaTek SP Flash tool for
 # writing images to MediaTek boards. This can be used to write images
 # even on a bricked board which has no preloader installed, or broken

+ 1 - 15
target/linux/mvebu/image/gen_mvebu_sdcard_img.sh

@@ -1,21 +1,7 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
 #
 # Copyright (C) 2016 Josua Mayer
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-#
 
 usage() {
 	echo "$0 <outfile> [<bootloader> <type_partitionN> <size_partitionN> <img_partitionN>]?"

+ 1 - 4
target/linux/mxs/image/gen_sdcard_ext4_ext4.sh

@@ -1,10 +1,7 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2015 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 4 ] || {

+ 1 - 4
target/linux/mxs/image/gen_sdcard_vfat_ext4.sh

@@ -1,10 +1,7 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2015 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 6 ] || {

+ 1 - 5
target/linux/omap/image/gen_omap_sdcard_img.sh

@@ -1,11 +1,7 @@
 #!/bin/sh
-
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2013 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -x
 [ $# -eq 5 ] || {

+ 1 - 5
target/linux/pistachio/base-files/etc/board.d/02_network

@@ -1,14 +1,10 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2017 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 . /lib/functions/uci-defaults.sh
 
-
 board_config_update
 
 ucidef_set_interface_lan 'eth0' 'dhcp'

+ 1 - 4
target/linux/pistachio/base-files/lib/upgrade/platform.sh

@@ -1,9 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2017 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 RAMFS_COPY_BIN='fw_printenv fw_setenv dmesg'
 RAMFS_COPY_DATA="/etc/fw_env.config"

+ 1 - 4
target/linux/sunxi/image/gen_sunxi_sdcard_img.sh

@@ -1,10 +1,7 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2013 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
 
 set -ex
 [ $# -eq 6 ] || {