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 <mail@aparcar.org>
[rebase, keep some Copyright lines, sharpen commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Paul Spooren 2020-09-21 16:48:37 -10:00 committed by Adrian Schmutzler
parent 381a458d58
commit a17b8eaa2e
38 changed files with 72 additions and 175 deletions

View File

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

View File

@ -1,8 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2006-2013 OpenWrt.org # Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
mainmenu "OpenWrt Configuration" mainmenu "OpenWrt Configuration"

View File

@ -1,10 +1,6 @@
# Makefile for OpenWrt # SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007 OpenWrt.org # Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
TOPDIR:=${CURDIR} TOPDIR:=${CURDIR}
LC_ALL:=C LC_ALL:=C

View File

@ -1,9 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2006-2013 OpenWrt.org # Copyright (C) 2006-2013 OpenWrt.org
# Copyright (C) 2016 LEDE Project # Copyright (C) 2016 LEDE Project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
config EXPERIMENTAL config EXPERIMENTAL
bool "Enable experimental features by default" bool "Enable experimental features by default"

View File

@ -1,8 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2006-2013 OpenWrt.org # Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
menuconfig DEVEL menuconfig DEVEL
bool "Advanced configuration options (for developers)" bool "Advanced configuration options (for developers)"

View File

@ -1,8 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2006-2013 OpenWrt.org # Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
menu "Target Images" menu "Target Images"

View File

@ -1,8 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
config KERNEL_BUILD_USER config KERNEL_BUILD_USER
string "Custom Kernel Build User Name" string "Custom Kernel Build User Name"

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007-2012 OpenWrt.org # Copyright (C) 2007-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
autoconf_bool = $(patsubst %,$(if $($(1)),--enable,--disable)-%,$(2)) autoconf_bool = $(patsubst %,$(if $($(1)),--enable,--disable)-%,$(2))

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007 OpenWrt.org # Copyright (C) 2007-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# debug flags: # debug flags:
# #

View File

@ -1,9 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007 OpenWrt.org # Copyright (C) 2007-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# define a dependency on a subtree # define a dependency on a subtree
# parameters: # parameters:
# 1: directories/files # 1: directories/files

View File

@ -1,10 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2012 OpenWrt.org # Copyright (C) 2006-2012 OpenWrt.org
# Copyright (C) 2016 LEDE project # Copyright (C) 2016 LEDE project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PROJECT_GIT = https://git.openwrt.org PROJECT_GIT = https://git.openwrt.org

View File

@ -1,10 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2014 OpenWrt.org # Copyright (C) 2014 OpenWrt.org
# Copyright (C) 2016 LEDE Project # Copyright (C) 2016 LEDE Project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-include $(TMP_DIR)/.packageauxvars -include $(TMP_DIR)/.packageauxvars

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2015 OpenWrt.org # Copyright (C) 2015-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PKG_CHECK_FORMAT_SECURITY ?= 1 PKG_CHECK_FORMAT_SECURITY ?= 1
PKG_ASLR_PIE ?= 1 PKG_ASLR_PIE ?= 1

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2010 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(INCLUDE_DIR)/download.mk include $(INCLUDE_DIR)/download.mk

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2010 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
override TARGET_BUILD= override TARGET_BUILD=
include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/prereq.mk

View File

@ -1,9 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2007 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/prereq.mk
include $(INCLUDE_DIR)/depends.mk include $(INCLUDE_DIR)/depends.mk

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifdef CONFIG_STRIP_KERNEL_EXPORTS ifdef CONFIG_STRIP_KERNEL_EXPORTS
KERNEL_MAKEOPTS += \ KERNEL_MAKEOPTS += \

View File

@ -1,5 +1,5 @@
# Use the default kernel version if the Makefile doesn't override it
# Use the default kernel version if the Makefile doesn't override it
LINUX_RELEASE?=1 LINUX_RELEASE?=1
ifdef CONFIG_TESTING_KERNEL ifdef CONFIG_TESTING_KERNEL

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(filter check,$(MAKECMDGOALS)),) ifneq ($(filter check,$(MAKECMDGOALS)),)
CHECK:=1 CHECK:=1

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(__inc_netfilter),1) ifneq ($(__inc_netfilter),1)
__inc_netfilter:=1 __inc_netfilter:=1

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2011-2012 OpenWrt.org # Copyright (C) 2011-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# iconv full # iconv full
ifeq ($(CONFIG_BUILD_NLS),y) ifeq ($(CONFIG_BUILD_NLS),y)

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007-2014 OpenWrt.org # Copyright (C) 2007-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifeq ($(DUMP),) ifeq ($(DUMP),)
define BuildTarget/bin define BuildTarget/bin

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PKG_DEFAULT_DEPENDS = +libc +USE_GLIBC:librt +USE_GLIBC:libpthread PKG_DEFAULT_DEPENDS = +libc +USE_GLIBC:librt +USE_GLIBC:libpthread

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(DUMP),) ifneq ($(DUMP),)

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifndef DUMP ifndef DUMP
include $(INCLUDE_DIR)/feeds.mk include $(INCLUDE_DIR)/feeds.mk

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2015 OpenWrt.org # Copyright (C) 2015-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PKG_CONFIG_DEPENDS+= CONFIG_KERNEL_SECCOMP PKG_CONFIG_DEPENDS+= CONFIG_KERNEL_SECCOMP

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2008 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
__package_mk:=1 __package_mk:=1

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2012 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/prereq.mk

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(__prereq_inc),1) ifneq ($(__prereq_inc),1)
__prereq_inc:=1 __prereq_inc:=1

View File

@ -1,8 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007-2009 OpenWrt.org # Copyright (C) 2007-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
ifeq ($(TARGET_BUILD),1) ifeq ($(TARGET_BUILD),1)
PKG_BUILD_DIR:=$(LINUX_DIR) PKG_BUILD_DIR:=$(LINUX_DIR)

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007 OpenWrt.org # Copyright (C) 2007-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifeq ($(MAKECMDGOALS),prereq) ifeq ($(MAKECMDGOALS),prereq)
SUBTARGETS:=prereq SUBTARGETS:=prereq

View File

@ -1,10 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2007-2008 OpenWrt.org # Copyright (C) 2007-2008 OpenWrt.org
# Copyright (C) 2016 LEDE Project # Copyright (C) 2016 LEDE Project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(__target_inc),1) ifneq ($(__target_inc),1)
__target_inc=1 __target_inc=1

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2009 OpenWrt.org # Copyright (C) 2009-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
override CONFIG_AUTOREBUILD= override CONFIG_AUTOREBUILD=
override CONFIG_AUTOREMOVE= override CONFIG_AUTOREMOVE=

View File

@ -1,10 +1,6 @@
# Makefile for OpenWrt # SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2007-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
# Copyright (C) 2007-2020 OpenWrt.org
PREP_MK= OPENWRT_BUILD= QUIET=0 PREP_MK= OPENWRT_BUILD= QUIET=0

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2007 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
HOST_TAR:=$(TAR) HOST_TAR:=$(TAR)
TAR_CMD=$(HOST_TAR) -C $(1)/.. $(TAR_OPTIONS) TAR_CMD=$(HOST_TAR) -C $(1)/.. $(TAR_OPTIONS)

View File

@ -1,9 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifndef OPENWRT_VERBOSE ifndef OPENWRT_VERBOSE
OPENWRT_VERBOSE:= OPENWRT_VERBOSE:=

View File

@ -1,10 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2012-2015 OpenWrt.org # Copyright (C) 2012-2015 OpenWrt.org
# Copyright (C) 2016 LEDE Project # Copyright (C) 2016 LEDE Project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Substituted by SDK, do not remove # Substituted by SDK, do not remove
# REVISION:=x # REVISION:=x

View File

@ -1,10 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2010 OpenWrt.org # Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2016 LEDE Project # Copyright (C) 2016 LEDE Project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(__rules_inc),1) ifneq ($(__rules_inc),1)
__rules_inc=1 __rules_inc=1