diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Kbuild.include | 5 | ||||
| -rw-r--r-- | scripts/Kconfig.include | 1 | ||||
| -rw-r--r-- | scripts/Makefile.kcov | 1 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 2 | ||||
| -rw-r--r-- | scripts/asn1_compiler.c | 6 | ||||
| -rw-r--r-- | scripts/basic/Makefile | 1 | ||||
| -rwxr-xr-x | scripts/checkpatch.pl | 4 | ||||
| -rw-r--r-- | scripts/conmakehash.c | 5 | ||||
| -rw-r--r-- | scripts/dtc/Makefile.dtc | 1 | ||||
| -rw-r--r-- | scripts/dtc/libfdt/Makefile.libfdt | 1 | ||||
| -rw-r--r-- | scripts/gcc-plugins/Kconfig | 1 | ||||
| -rw-r--r-- | scripts/gdb/Makefile | 1 | ||||
| -rw-r--r-- | scripts/genksyms/keywords.c | 1 | ||||
| -rwxr-xr-x | scripts/get_dvb_firmware | 15 | ||||
| -rw-r--r-- | scripts/kconfig/tests/err_recursive_inc/Kconfig | 1 | ||||
| -rw-r--r-- | scripts/kconfig/tests/err_recursive_inc/Kconfig.inc1 | 1 | ||||
| -rw-r--r-- | scripts/kconfig/tests/err_recursive_inc/Kconfig.inc2 | 1 | ||||
| -rw-r--r-- | scripts/kconfig/tests/err_recursive_inc/Kconfig.inc3 | 1 | ||||
| -rwxr-xr-x | scripts/modules-check.sh | 6 | ||||
| -rw-r--r-- | scripts/package/Makefile | 1 | ||||
| -rw-r--r-- | scripts/selinux/Makefile | 1 | ||||
| -rwxr-xr-x | scripts/spdxcheck.py | 2 | ||||
| -rwxr-xr-x | scripts/tags.sh | 1 |
23 files changed, 25 insertions, 35 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index a675ce11a573..e2de6c4dce90 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -138,11 +138,6 @@ cc-disable-warning = $(call try-run,\ | |||
| 138 | # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) | 138 | # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) |
| 139 | cc-ifversion = $(shell [ $(CONFIG_GCC_VERSION)0 $(1) $(2)000 ] && echo $(3) || echo $(4)) | 139 | cc-ifversion = $(shell [ $(CONFIG_GCC_VERSION)0 $(1) $(2)000 ] && echo $(3) || echo $(4)) |
| 140 | 140 | ||
| 141 | # cc-ldoption | ||
| 142 | # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both) | ||
| 143 | cc-ldoption = $(call try-run,\ | ||
| 144 | $(CC) $(1) $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2)) | ||
| 145 | |||
| 146 | # ld-option | 141 | # ld-option |
| 147 | # Usage: KBUILD_LDFLAGS += $(call ld-option, -X, -Y) | 142 | # Usage: KBUILD_LDFLAGS += $(call ld-option, -X, -Y) |
| 148 | ld-option = $(call try-run, $(LD) $(KBUILD_LDFLAGS) $(1) -v,$(1),$(2),$(3)) | 143 | ld-option = $(call try-run, $(LD) $(KBUILD_LDFLAGS) $(1) -v,$(1),$(2),$(3)) |
diff --git a/scripts/Kconfig.include b/scripts/Kconfig.include index 0b267fb27f07..8a5c4d645eb1 100644 --- a/scripts/Kconfig.include +++ b/scripts/Kconfig.include | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # Kconfig helper macros | 2 | # Kconfig helper macros |
| 2 | 3 | ||
| 3 | # Convenient variables | 4 | # Convenient variables |
diff --git a/scripts/Makefile.kcov b/scripts/Makefile.kcov index 3d61c4bfcbee..52b113302443 100644 --- a/scripts/Makefile.kcov +++ b/scripts/Makefile.kcov | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | ifdef CONFIG_KCOV | 2 | ifdef CONFIG_KCOV |
| 2 | 3 | ||
| 3 | kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc | 4 | kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 1b412d4394ae..f1f38c8cdc74 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -298,7 +298,7 @@ DT_BINDING_DIR := Documentation/devicetree/bindings | |||
| 298 | DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml | 298 | DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml |
| 299 | 299 | ||
| 300 | quiet_cmd_dtb_check = CHECK $@ | 300 | quiet_cmd_dtb_check = CHECK $@ |
| 301 | cmd_dtb_check = $(DT_CHECKER) -p $(DT_TMP_SCHEMA) $@ ; | 301 | cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ; |
| 302 | 302 | ||
| 303 | define rule_dtc_dt_yaml | 303 | define rule_dtc_dt_yaml |
| 304 | $(call cmd_and_fixdep,dtc,yaml) | 304 | $(call cmd_and_fixdep,dtc,yaml) |
diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c index 1b28787028d3..adabd4145264 100644 --- a/scripts/asn1_compiler.c +++ b/scripts/asn1_compiler.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Simplified ASN.1 notation parser | 2 | /* Simplified ASN.1 notation parser |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <stdarg.h> | 8 | #include <stdarg.h> |
diff --git a/scripts/basic/Makefile b/scripts/basic/Makefile index af49b446f17d..548aeb592806 100644 --- a/scripts/basic/Makefile +++ b/scripts/basic/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | ### | 2 | ### |
| 2 | # This Makefile lists the most basic programs used during the build process. | 3 | # This Makefile lists the most basic programs used during the build process. |
| 3 | # The programs listed herein are what are needed to do the basic stuff, | 4 | # The programs listed herein are what are needed to do the basic stuff, |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index bb28b178d929..342c7c781ba5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -3027,7 +3027,7 @@ sub process { | |||
| 3027 | my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; | 3027 | my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; |
| 3028 | 3028 | ||
| 3029 | my $dt_path = $root . "/Documentation/devicetree/bindings/"; | 3029 | my $dt_path = $root . "/Documentation/devicetree/bindings/"; |
| 3030 | my $vp_file = $dt_path . "vendor-prefixes.txt"; | 3030 | my $vp_file = $dt_path . "vendor-prefixes.yaml"; |
| 3031 | 3031 | ||
| 3032 | foreach my $compat (@compats) { | 3032 | foreach my $compat (@compats) { |
| 3033 | my $compat2 = $compat; | 3033 | my $compat2 = $compat; |
| @@ -3042,7 +3042,7 @@ sub process { | |||
| 3042 | 3042 | ||
| 3043 | next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; | 3043 | next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; |
| 3044 | my $vendor = $1; | 3044 | my $vendor = $1; |
| 3045 | `grep -Eq "^$vendor\\b" $vp_file`; | 3045 | `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`; |
| 3046 | if ( $? >> 8 ) { | 3046 | if ( $? >> 8 ) { |
| 3047 | WARN("UNDOCUMENTED_DT_STRING", | 3047 | WARN("UNDOCUMENTED_DT_STRING", |
| 3048 | "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr); | 3048 | "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr); |
diff --git a/scripts/conmakehash.c b/scripts/conmakehash.c index 61bbda54cf13..cddd789fe46e 100644 --- a/scripts/conmakehash.c +++ b/scripts/conmakehash.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * conmakehash.c | 3 | * conmakehash.c |
| 3 | * | 4 | * |
| @@ -8,10 +9,6 @@ | |||
| 8 | * just for this seems like massive overkill. | 9 | * just for this seems like massive overkill. |
| 9 | * | 10 | * |
| 10 | * Copyright (C) 1995-1997 H. Peter Anvin | 11 | * Copyright (C) 1995-1997 H. Peter Anvin |
| 11 | * | ||
| 12 | * This program is a part of the Linux kernel, and may be freely | ||
| 13 | * copied under the terms of the GNU General Public License (GPL), | ||
| 14 | * version 2, or at your option any later version. | ||
| 15 | */ | 12 | */ |
| 16 | 13 | ||
| 17 | #include <stdio.h> | 14 | #include <stdio.h> |
diff --git a/scripts/dtc/Makefile.dtc b/scripts/dtc/Makefile.dtc index d4375630a7f7..6ce8b4a35a23 100644 --- a/scripts/dtc/Makefile.dtc +++ b/scripts/dtc/Makefile.dtc | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # Makefile.dtc | 2 | # Makefile.dtc |
| 2 | # | 3 | # |
| 3 | # This is not a complete Makefile of itself. Instead, it is designed to | 4 | # This is not a complete Makefile of itself. Instead, it is designed to |
diff --git a/scripts/dtc/libfdt/Makefile.libfdt b/scripts/dtc/libfdt/Makefile.libfdt index 3af3656df801..1649c2c48046 100644 --- a/scripts/dtc/libfdt/Makefile.libfdt +++ b/scripts/dtc/libfdt/Makefile.libfdt | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # Makefile.libfdt | 2 | # Makefile.libfdt |
| 2 | # | 3 | # |
| 3 | # This is not a complete Makefile of itself. Instead, it is designed to | 4 | # This is not a complete Makefile of itself. Instead, it is designed to |
diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig index 80220ed26a35..e9c677a53c74 100644 --- a/scripts/gcc-plugins/Kconfig +++ b/scripts/gcc-plugins/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC)) | 2 | preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC)) |
| 2 | 3 | ||
| 3 | config PLUGIN_HOSTCC | 4 | config PLUGIN_HOSTCC |
diff --git a/scripts/gdb/Makefile b/scripts/gdb/Makefile index 62f5f65becfd..3fca1937d956 100644 --- a/scripts/gdb/Makefile +++ b/scripts/gdb/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | subdir-y := linux | 2 | subdir-y := linux |
diff --git a/scripts/genksyms/keywords.c b/scripts/genksyms/keywords.c index 9f40bcd17d07..e93336baaaed 100644 --- a/scripts/genksyms/keywords.c +++ b/scripts/genksyms/keywords.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | static struct resword { | 2 | static struct resword { |
| 2 | const char *name; | 3 | const char *name; |
| 3 | int token; | 4 | int token; |
diff --git a/scripts/get_dvb_firmware b/scripts/get_dvb_firmware index f3f230225aba..1a90802410bc 100755 --- a/scripts/get_dvb_firmware +++ b/scripts/get_dvb_firmware | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
| 2 | # DVB firmware extractor | 3 | # DVB firmware extractor |
| 3 | # | 4 | # |
| 4 | # (c) 2004 Andrew de Quincey | 5 | # (c) 2004 Andrew de Quincey |
| 5 | # | 6 | # |
| 6 | # This program is free software; you can redistribute it and/or modify | ||
| 7 | # it under the terms of the GNU General Public License as published by | ||
| 8 | # the Free Software Foundation; either version 2 of the License, or | ||
| 9 | # (at your option) any later version. | ||
| 10 | # | ||
| 11 | # This program is distributed in the hope that it will be useful, | ||
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | # | ||
| 15 | # GNU General Public License for more details. | ||
| 16 | # | ||
| 17 | # You should have received a copy of the GNU General Public License | ||
| 18 | # along with this program; if not, write to the Free Software | ||
| 19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 20 | 7 | ||
| 21 | use File::Temp qw/ tempdir /; | 8 | use File::Temp qw/ tempdir /; |
| 22 | use IO::Handle; | 9 | use IO::Handle; |
diff --git a/scripts/kconfig/tests/err_recursive_inc/Kconfig b/scripts/kconfig/tests/err_recursive_inc/Kconfig index 0e4c8750ab65..c6f4adec76d1 100644 --- a/scripts/kconfig/tests/err_recursive_inc/Kconfig +++ b/scripts/kconfig/tests/err_recursive_inc/Kconfig | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | source "Kconfig.inc1" | 2 | source "Kconfig.inc1" |
diff --git a/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc1 b/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc1 index 00e408d653fc..01cbf0d69cce 100644 --- a/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc1 +++ b/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc1 | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | 2 | ||
| 2 | 3 | ||
| 3 | 4 | ||
diff --git a/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc2 b/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc2 index 349ea2db15dc..82351075ab1b 100644 --- a/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc2 +++ b/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc2 | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | 2 | ||
| 2 | 3 | ||
| 3 | source "Kconfig.inc3" | 4 | source "Kconfig.inc3" |
diff --git a/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc3 b/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc3 index 0e4c8750ab65..c6f4adec76d1 100644 --- a/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc3 +++ b/scripts/kconfig/tests/err_recursive_inc/Kconfig.inc3 | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | source "Kconfig.inc1" | 2 | source "Kconfig.inc1" |
diff --git a/scripts/modules-check.sh b/scripts/modules-check.sh index 2f659530e1ec..39e8cb36ba19 100755 --- a/scripts/modules-check.sh +++ b/scripts/modules-check.sh | |||
| @@ -6,10 +6,10 @@ set -e | |||
| 6 | # Check uniqueness of module names | 6 | # Check uniqueness of module names |
| 7 | check_same_name_modules() | 7 | check_same_name_modules() |
| 8 | { | 8 | { |
| 9 | for m in $(sed 's:.*/::' modules.order modules.builtin | sort | uniq -d) | 9 | for m in $(sed 's:.*/::' modules.order | sort | uniq -d) |
| 10 | do | 10 | do |
| 11 | echo "warning: same basename if the following are built as modules:" >&2 | 11 | echo "warning: same module names found:" >&2 |
| 12 | sed "/\/$m/!d;s:^kernel/: :" modules.order modules.builtin >&2 | 12 | sed -n "/\/$m/s:^kernel/: :p" modules.order >&2 |
| 13 | done | 13 | done |
| 14 | } | 14 | } |
| 15 | 15 | ||
diff --git a/scripts/package/Makefile b/scripts/package/Makefile index 2c6de21e5152..27b42d5b6c4f 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # Makefile for the different targets used to generate full packages of a kernel | 2 | # Makefile for the different targets used to generate full packages of a kernel |
| 2 | # It uses the generic clean infrastructure of kbuild | 3 | # It uses the generic clean infrastructure of kbuild |
| 3 | 4 | ||
diff --git a/scripts/selinux/Makefile b/scripts/selinux/Makefile index b3048b894a39..59494e14989b 100644 --- a/scripts/selinux/Makefile +++ b/scripts/selinux/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | subdir-y := mdp genheaders | 2 | subdir-y := mdp genheaders |
diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py index 4fe392e507fb..33df646618e2 100755 --- a/scripts/spdxcheck.py +++ b/scripts/spdxcheck.py | |||
| @@ -32,7 +32,7 @@ class SPDXdata(object): | |||
| 32 | def read_spdxdata(repo): | 32 | def read_spdxdata(repo): |
| 33 | 33 | ||
| 34 | # The subdirectories of LICENSES in the kernel source | 34 | # The subdirectories of LICENSES in the kernel source |
| 35 | license_dirs = [ "preferred", "other", "exceptions" ] | 35 | license_dirs = [ "preferred", "deprecated", "exceptions", "dual" ] |
| 36 | lictree = repo.head.commit.tree['LICENSES'] | 36 | lictree = repo.head.commit.tree['LICENSES'] |
| 37 | 37 | ||
| 38 | spdx = SPDXdata() | 38 | spdx = SPDXdata() |
diff --git a/scripts/tags.sh b/scripts/tags.sh index 70e14c67bde7..d46be47633af 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | # Generate tags or cscope files | 3 | # Generate tags or cscope files |
| 3 | # Usage tags.sh <mode> | 4 | # Usage tags.sh <mode> |
| 4 | # | 5 | # |
