From: Adrian Schmutzler Date: Wed, 10 Feb 2021 14:14:52 +0000 (+0100) Subject: target: use SPDX license identifiers on scripts X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7157c77c6d872375c3f6f42a49d1627c4c692472;p=openwrt%2Fstaging%2Fblocktrron.git target: use SPDX license identifiers on scripts Use SPDX license tags to allow machines to check licenses. Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/arc770/image/gen_axs10x_sdcard_img.sh b/target/linux/arc770/image/gen_axs10x_sdcard_img.sh index 87c2bba92c..12ead10dbe 100755 --- a/target/linux/arc770/image/gen_axs10x_sdcard_img.sh +++ b/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 ] || { diff --git a/target/linux/archs38/image/gen_axs10x_sdcard_img.sh b/target/linux/archs38/image/gen_axs10x_sdcard_img.sh index 87c2bba92c..12ead10dbe 100755 --- a/target/linux/archs38/image/gen_axs10x_sdcard_img.sh +++ b/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 ] || { diff --git a/target/linux/at91/image/gen_at91_sdcard_img.sh b/target/linux/at91/image/gen_at91_sdcard_img.sh index 5171b6723e..4d2808bc3b 100755 --- a/target/linux/at91/image/gen_at91_sdcard_img.sh +++ b/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 ] || { diff --git a/target/linux/layerscape/image/gen_sdcard_head_img.sh b/target/linux/layerscape/image/gen_sdcard_head_img.sh index d3a8fd2d12..53997a39c1 100755 --- a/target/linux/layerscape/image/gen_sdcard_head_img.sh +++ b/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 ] || { diff --git a/target/linux/layerscape/image/mkits-multiple-config.sh b/target/linux/layerscape/image/mkits-multiple-config.sh index 5daee5458b..68870686c5 100755 --- a/target/linux/layerscape/image/mkits-multiple-config.sh +++ b/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 # with modifications for multi-DTB-same-image by: diff --git a/target/linux/mediatek/image/gen_mtk_mmc_img.sh b/target/linux/mediatek/image/gen_mtk_mmc_img.sh index 2dacb9019d..7e19e1a39e 100755 --- a/target/linux/mediatek/image/gen_mtk_mmc_img.sh +++ b/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 # Copyright © 2020 David Woodhouse -# -# 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 diff --git a/target/linux/mediatek/image/gen_scatterfile.sh b/target/linux/mediatek/image/gen_scatterfile.sh index f23cf819b8..15fc0bc84c 100755 --- a/target/linux/mediatek/image/gen_scatterfile.sh +++ b/target/linux/mediatek/image/gen_scatterfile.sh @@ -1,10 +1,8 @@ #!/bin/sh +# SPDX-License-Identifier: GPL-2.0-only # # Copyright © 2020 David Woodhouse # -# 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 diff --git a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh index 842e591026..d6f895d09d 100755 --- a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh +++ b/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 [ ]?" diff --git a/target/linux/mxs/image/gen_sdcard_ext4_ext4.sh b/target/linux/mxs/image/gen_sdcard_ext4_ext4.sh index 20f3331bed..fcddc00b38 100755 --- a/target/linux/mxs/image/gen_sdcard_ext4_ext4.sh +++ b/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 ] || { diff --git a/target/linux/mxs/image/gen_sdcard_vfat_ext4.sh b/target/linux/mxs/image/gen_sdcard_vfat_ext4.sh index 9d2b7c46a8..5a56a516a9 100755 --- a/target/linux/mxs/image/gen_sdcard_vfat_ext4.sh +++ b/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 ] || { diff --git a/target/linux/omap/image/gen_omap_sdcard_img.sh b/target/linux/omap/image/gen_omap_sdcard_img.sh index dbb50cbff4..b2d096acc0 100755 --- a/target/linux/omap/image/gen_omap_sdcard_img.sh +++ b/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 ] || { diff --git a/target/linux/pistachio/base-files/etc/board.d/02_network b/target/linux/pistachio/base-files/etc/board.d/02_network index e7e0a9a930..8de2c8c38d 100755 --- a/target/linux/pistachio/base-files/etc/board.d/02_network +++ b/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' diff --git a/target/linux/pistachio/base-files/lib/upgrade/platform.sh b/target/linux/pistachio/base-files/lib/upgrade/platform.sh index 16ab341fb5..f64fe7d30d 100644 --- a/target/linux/pistachio/base-files/lib/upgrade/platform.sh +++ b/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" diff --git a/target/linux/sunxi/image/gen_sunxi_sdcard_img.sh b/target/linux/sunxi/image/gen_sunxi_sdcard_img.sh index 7dc22761dd..2c627a7193 100755 --- a/target/linux/sunxi/image/gen_sunxi_sdcard_img.sh +++ b/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 ] || {