Skip to content

Commit a17b8ea

Browse files
aparcaradschm
authored andcommitted
build: use SPDX license tags
The license folder is a core part of OpenWrt and all GPL-2.0 licensed. Use SPDX license tags to allow machines to check licenses. Signed-off-by: Paul Spooren <[email protected]> [rebase, keep some Copyright lines, sharpen commit message] Signed-off-by: Adrian Schmutzler <[email protected]>
1 parent 381a458 commit a17b8ea

38 files changed

+72
-175
lines changed

BSDmakefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# Copyright (C) 2006 OpenWrt.org
2-
#
3-
# This is free software, licensed under the GNU General Public License v2.
4-
# See /LICENSE for more information.
1+
# SPDX-License-Identifier: GPL-2.0-only
52
#
3+
# Copyright (C) 2006 OpenWrt.org
4+
65
world ${.TARGETS}:
76
@gmake $@

Config.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Copyright (C) 2006-2013 OpenWrt.org
2-
#
3-
# This is free software, licensed under the GNU General Public License v2.
4-
# See /LICENSE for more information.
1+
# SPDX-License-Identifier: GPL-2.0-only
52
#
3+
# Copyright (C) 2006-2013 OpenWrt.org
64

75
mainmenu "OpenWrt Configuration"
86

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# Makefile for OpenWrt
1+
# SPDX-License-Identifier: GPL-2.0-only
22
#
33
# Copyright (C) 2007 OpenWrt.org
4-
#
5-
# This is free software, licensed under the GNU General Public License v2.
6-
# See /LICENSE for more information.
7-
#
84

95
TOPDIR:=${CURDIR}
106
LC_ALL:=C

config/Config-build.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
13
# Copyright (C) 2006-2013 OpenWrt.org
24
# Copyright (C) 2016 LEDE Project
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
75

86
config EXPERIMENTAL
97
bool "Enable experimental features by default"

config/Config-devel.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Copyright (C) 2006-2013 OpenWrt.org
2-
#
3-
# This is free software, licensed under the GNU General Public License v2.
4-
# See /LICENSE for more information.
1+
# SPDX-License-Identifier: GPL-2.0-only
52
#
3+
# Copyright (C) 2006-2013 OpenWrt.org
64

75
menuconfig DEVEL
86
bool "Advanced configuration options (for developers)"

config/Config-images.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Copyright (C) 2006-2013 OpenWrt.org
2-
#
3-
# This is free software, licensed under the GNU General Public License v2.
4-
# See /LICENSE for more information.
1+
# SPDX-License-Identifier: GPL-2.0-only
52
#
3+
# Copyright (C) 2006-2013 OpenWrt.org
64

75
menu "Target Images"
86

config/Config-kernel.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Copyright (C) 2006-2014 OpenWrt.org
2-
#
3-
# This is free software, licensed under the GNU General Public License v2.
4-
# See /LICENSE for more information.
1+
# SPDX-License-Identifier: GPL-2.0-only
52
#
3+
# Copyright (C) 2006-2014 OpenWrt.org
64

75
config KERNEL_BUILD_USER
86
string "Custom Kernel Build User Name"

include/autotools.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2007-2012 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2007-2020 OpenWrt.org
74

85
autoconf_bool = $(patsubst %,$(if $($(1)),--enable,--disable)-%,$(2))
96

include/debug.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2007 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2007-2020 OpenWrt.org
74

85
# debug flags:
96
#

include/depends.mk

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2007 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2007-2020 OpenWrt.org
4+
75
# define a dependency on a subtree
86
# parameters:
97
# 1: directories/files

include/download.mk

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
23
# Copyright (C) 2006-2012 OpenWrt.org
34
# Copyright (C) 2016 LEDE project
4-
#
5-
# This is free software, licensed under the GNU General Public License v2.
6-
# See /LICENSE for more information.
7-
#
85

96
PROJECT_GIT = https://git.openwrt.org
107

include/feeds.mk

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
23
# Copyright (C) 2014 OpenWrt.org
34
# Copyright (C) 2016 LEDE Project
4-
#
5-
# This is free software, licensed under the GNU General Public License v2.
6-
# See /LICENSE for more information.
7-
#
85

96
-include $(TMP_DIR)/.packageauxvars
107

include/hardening.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2015 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2015-2020 OpenWrt.org
74

85
PKG_CHECK_FORMAT_SECURITY ?= 1
96
PKG_ASLR_PIE ?= 1

include/host-build.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2010 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
include $(INCLUDE_DIR)/download.mk
96

include/image.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2010 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
override TARGET_BUILD=
96
include $(INCLUDE_DIR)/prereq.mk

include/kernel-build.mk

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2007 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
4+
75
include $(INCLUDE_DIR)/prereq.mk
86
include $(INCLUDE_DIR)/depends.mk
97

include/kernel-defaults.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2015 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
ifdef CONFIG_STRIP_KERNEL_EXPORTS
96
KERNEL_MAKEOPTS += \

include/kernel-version.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use the default kernel version if the Makefile doesn't override it
21

2+
# Use the default kernel version if the Makefile doesn't override it
33
LINUX_RELEASE?=1
44

55
ifdef CONFIG_TESTING_KERNEL

include/kernel.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2015 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
ifneq ($(filter check,$(MAKECMDGOALS)),)
96
CHECK:=1

include/netfilter.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2014 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
ifneq ($(__inc_netfilter),1)
96
__inc_netfilter:=1

include/nls.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2011-2012 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2011-2020 OpenWrt.org
74

85
# iconv full
96
ifeq ($(CONFIG_BUILD_NLS),y)

include/package-bin.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2007-2014 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2007-2020 OpenWrt.org
74

85
ifeq ($(DUMP),)
96
define BuildTarget/bin

include/package-defaults.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
PKG_DEFAULT_DEPENDS = +libc +USE_GLIBC:librt +USE_GLIBC:libpthread
96

include/package-dumpinfo.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
ifneq ($(DUMP),)
96

include/package-ipkg.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2014 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
ifndef DUMP
96
include $(INCLUDE_DIR)/feeds.mk

include/package-seccomp.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2015 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2015-2020 OpenWrt.org
74

85
PKG_CONFIG_DEPENDS+= CONFIG_KERNEL_SECCOMP
96

include/package.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2008 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
__package_mk:=1
96

include/prereq-build.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2012 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
include $(TOPDIR)/rules.mk
96
include $(INCLUDE_DIR)/prereq.mk

include/prereq.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2006-2015 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2006-2020 OpenWrt.org
74

85
ifneq ($(__prereq_inc),1)
96
__prereq_inc:=1

include/quilt.mk

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2007-2009 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
3+
# Copyright (C) 2007-2020 OpenWrt.org
64

75
ifeq ($(TARGET_BUILD),1)
86
PKG_BUILD_DIR:=$(LINUX_DIR)

include/subdir.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2007 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2007-2020 OpenWrt.org
74

85
ifeq ($(MAKECMDGOALS),prereq)
96
SUBTARGETS:=prereq

include/target.mk

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
23
# Copyright (C) 2007-2008 OpenWrt.org
34
# Copyright (C) 2016 LEDE Project
4-
#
5-
# This is free software, licensed under the GNU General Public License v2.
6-
# See /LICENSE for more information.
7-
#
85

96
ifneq ($(__target_inc),1)
107
__target_inc=1

include/toolchain-build.mk

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
12
#
2-
# Copyright (C) 2009 OpenWrt.org
3-
#
4-
# This is free software, licensed under the GNU General Public License v2.
5-
# See /LICENSE for more information.
6-
#
3+
# Copyright (C) 2009-2020 OpenWrt.org
74

85
override CONFIG_AUTOREBUILD=
96
override CONFIG_AUTOREMOVE=

include/toplevel.mk

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# Makefile for OpenWrt
2-
#
3-
# Copyright (C) 2007-2012 OpenWrt.org
4-
#
5-
# This is free software, licensed under the GNU General Public License v2.
6-
# See /LICENSE for more information.
1+
# SPDX-License-Identifier: GPL-2.0-only
72
#
3+
# Copyright (C) 2007-2020 OpenWrt.org
84

95
PREP_MK= OPENWRT_BUILD= QUIET=0
106

0 commit comments

Comments
 (0)