diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Kbuild.include | 7 | ||||
| -rwxr-xr-x | scripts/bootgraph.pl | 16 | ||||
| -rwxr-xr-x | scripts/checkstack.pl | 2 | ||||
| -rw-r--r-- | scripts/coccinelle/api/platform_no_drv_owner.cocci | 3 | ||||
| -rwxr-xr-x | scripts/dtc/dtx_diff | 4 | ||||
| -rwxr-xr-x | scripts/extract-vmlinux | 2 | ||||
| -rwxr-xr-x | scripts/extract_xc3028.pl | 2 | ||||
| -rw-r--r-- | scripts/kconfig/tests/err_recursive_inc/expected_stderr | 6 | ||||
| -rwxr-xr-x | scripts/markup_oops.pl | 5 | ||||
| -rw-r--r-- | scripts/package/Makefile | 2 | ||||
| -rw-r--r-- | scripts/recordmcount.c | 2 | ||||
| -rw-r--r-- | scripts/recordmcount.h | 3 | ||||
| -rwxr-xr-x | scripts/show_delta | 2 | ||||
| -rw-r--r-- | scripts/sortextable.c | 2 | ||||
| -rw-r--r-- | scripts/sortextable.h | 4 |
15 files changed, 23 insertions, 39 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 85d758233483..f641bb0aa63f 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -74,8 +74,13 @@ endef | |||
| 74 | # Usage: CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-) | 74 | # Usage: CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-) |
| 75 | # Return first <prefix> where a <prefix>gcc is found in PATH. | 75 | # Return first <prefix> where a <prefix>gcc is found in PATH. |
| 76 | # If no gcc found in PATH with listed prefixes return nothing | 76 | # If no gcc found in PATH with listed prefixes return nothing |
| 77 | # | ||
| 78 | # Note: '2>/dev/null' is here to force Make to invoke a shell. Otherwise, it | ||
| 79 | # would try to directly execute the shell builtin 'command'. This workaround | ||
| 80 | # should be kept for a long time since this issue was fixed only after the | ||
| 81 | # GNU Make 4.2.1 release. | ||
| 77 | cc-cross-prefix = $(firstword $(foreach c, $(filter-out -%, $(1)), \ | 82 | cc-cross-prefix = $(firstword $(foreach c, $(filter-out -%, $(1)), \ |
| 78 | $(if $(shell which $(c)gcc), $(c)))) | 83 | $(if $(shell command -v $(c)gcc 2>/dev/null), $(c)))) |
| 79 | 84 | ||
| 80 | # output directory for tests below | 85 | # output directory for tests below |
| 81 | TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/) | 86 | TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/) |
diff --git a/scripts/bootgraph.pl b/scripts/bootgraph.pl index 594c55541b16..79c903292ae8 100755 --- a/scripts/bootgraph.pl +++ b/scripts/bootgraph.pl | |||
| @@ -1,24 +1,10 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | 3 | ||
| 3 | # Copyright 2008, Intel Corporation | 4 | # Copyright 2008, Intel Corporation |
| 4 | # | 5 | # |
| 5 | # This file is part of the Linux kernel | 6 | # This file is part of the Linux kernel |
| 6 | # | 7 | # |
| 7 | # This program file is free software; you can redistribute it and/or modify it | ||
| 8 | # under the terms of the GNU General Public License as published by the | ||
| 9 | # Free Software Foundation; version 2 of the License. | ||
| 10 | # | ||
| 11 | # This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
| 14 | # for more details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License | ||
| 17 | # along with this program in a file named COPYING; if not, write to the | ||
| 18 | # Free Software Foundation, Inc., | ||
| 19 | # 51 Franklin Street, Fifth Floor, | ||
| 20 | # Boston, MA 02110-1301 USA | ||
| 21 | # | ||
| 22 | # Authors: | 8 | # Authors: |
| 23 | # Arjan van de Ven <arjan@linux.intel.com> | 9 | # Arjan van de Ven <arjan@linux.intel.com> |
| 24 | 10 | ||
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 122aef5e4e14..371bd17a4983 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl | |||
| @@ -46,7 +46,7 @@ my (@stack, $re, $dre, $x, $xs, $funcre); | |||
| 46 | $x = "[0-9a-f]"; # hex character | 46 | $x = "[0-9a-f]"; # hex character |
| 47 | $xs = "[0-9a-f ]"; # hex character or space | 47 | $xs = "[0-9a-f ]"; # hex character or space |
| 48 | $funcre = qr/^$x* <(.*)>:$/; | 48 | $funcre = qr/^$x* <(.*)>:$/; |
| 49 | if ($arch eq 'aarch64') { | 49 | if ($arch =~ '^(aarch|arm)64$') { |
| 50 | #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]! | 50 | #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]! |
| 51 | #a110: d11643ff sub sp, sp, #0x590 | 51 | #a110: d11643ff sub sp, sp, #0x590 |
| 52 | $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; | 52 | $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; |
diff --git a/scripts/coccinelle/api/platform_no_drv_owner.cocci b/scripts/coccinelle/api/platform_no_drv_owner.cocci index c5e3f73f2054..8fa050eeb7e5 100644 --- a/scripts/coccinelle/api/platform_no_drv_owner.cocci +++ b/scripts/coccinelle/api/platform_no_drv_owner.cocci | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /// Remove .owner field if calls are used which set it automatically | 2 | /// Remove .owner field if calls are used which set it automatically |
| 2 | /// | 3 | /// |
| 3 | // Confidence: High | 4 | // Confidence: High |
| 4 | // Copyright: (C) 2014 Wolfram Sang. GPL v2. | 5 | // Copyright: (C) 2014 Wolfram Sang. |
| 5 | 6 | ||
| 6 | virtual patch | 7 | virtual patch |
| 7 | virtual context | 8 | virtual context |
diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff index 0d8572008729..00fd4738a587 100755 --- a/scripts/dtc/dtx_diff +++ b/scripts/dtc/dtx_diff | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | #! /bin/bash | 1 | #! /bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | 3 | ||
| 3 | # Copyright (C) 2015 Frank Rowand | 4 | # Copyright (C) 2015 Frank Rowand |
| 4 | # | 5 | # |
| 5 | # This program is free software; you can redistribute it and/or modify | ||
| 6 | # it under the terms of the GNU General Public License as published by | ||
| 7 | # the Free Software Foundation; version 2 of the License. | ||
| 8 | 6 | ||
| 9 | 7 | ||
| 10 | usage() { | 8 | usage() { |
diff --git a/scripts/extract-vmlinux b/scripts/extract-vmlinux index 85e1f32fb4a0..8995cd304e6e 100755 --- a/scripts/extract-vmlinux +++ b/scripts/extract-vmlinux | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | # ---------------------------------------------------------------------- | 3 | # ---------------------------------------------------------------------- |
| 3 | # extract-vmlinux - Extract uncompressed vmlinux from a kernel image | 4 | # extract-vmlinux - Extract uncompressed vmlinux from a kernel image |
| 4 | # | 5 | # |
| @@ -7,7 +8,6 @@ | |||
| 7 | # | 8 | # |
| 8 | # (c) 2011 Corentin Chary <corentin.chary@gmail.com> | 9 | # (c) 2011 Corentin Chary <corentin.chary@gmail.com> |
| 9 | # | 10 | # |
| 10 | # Licensed under the GNU General Public License, version 2 (GPLv2). | ||
| 11 | # ---------------------------------------------------------------------- | 11 | # ---------------------------------------------------------------------- |
| 12 | 12 | ||
| 13 | check_vmlinux() | 13 | check_vmlinux() |
diff --git a/scripts/extract_xc3028.pl b/scripts/extract_xc3028.pl index a1c51b7e4baf..e1c9af25a595 100755 --- a/scripts/extract_xc3028.pl +++ b/scripts/extract_xc3028.pl | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | 3 | ||
| 3 | # Copyright (c) Mauro Carvalho Chehab <mchehab@kernel.org> | 4 | # Copyright (c) Mauro Carvalho Chehab <mchehab@kernel.org> |
| 4 | # Released under GPLv2 | ||
| 5 | # | 5 | # |
| 6 | # In order to use, you need to: | 6 | # In order to use, you need to: |
| 7 | # 1) Download the windows driver with something like: | 7 | # 1) Download the windows driver with something like: |
diff --git a/scripts/kconfig/tests/err_recursive_inc/expected_stderr b/scripts/kconfig/tests/err_recursive_inc/expected_stderr index 6b582eee2176..b070a31fdfeb 100644 --- a/scripts/kconfig/tests/err_recursive_inc/expected_stderr +++ b/scripts/kconfig/tests/err_recursive_inc/expected_stderr | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | Recursive inclusion detected. | 1 | Recursive inclusion detected. |
| 2 | Inclusion path: | 2 | Inclusion path: |
| 3 | current file : Kconfig.inc1 | 3 | current file : Kconfig.inc1 |
| 4 | included from: Kconfig.inc3:1 | 4 | included from: Kconfig.inc3:2 |
| 5 | included from: Kconfig.inc2:3 | 5 | included from: Kconfig.inc2:4 |
| 6 | included from: Kconfig.inc1:4 | 6 | included from: Kconfig.inc1:5 |
diff --git a/scripts/markup_oops.pl b/scripts/markup_oops.pl index 70dcfb6b3de1..e476caf52414 100755 --- a/scripts/markup_oops.pl +++ b/scripts/markup_oops.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | 3 | ||
| 3 | use File::Basename; | 4 | use File::Basename; |
| 4 | use Math::BigInt; | 5 | use Math::BigInt; |
| @@ -8,10 +9,6 @@ use Getopt::Long; | |||
| 8 | # | 9 | # |
| 9 | # This file is part of the Linux kernel | 10 | # This file is part of the Linux kernel |
| 10 | # | 11 | # |
| 11 | # This program file is free software; you can redistribute it and/or modify it | ||
| 12 | # under the terms of the GNU General Public License as published by the | ||
| 13 | # Free Software Foundation; version 2 of the License. | ||
| 14 | # | ||
| 15 | # Authors: | 12 | # Authors: |
| 16 | # Arjan van de Ven <arjan@linux.intel.com> | 13 | # Arjan van de Ven <arjan@linux.intel.com> |
| 17 | 14 | ||
diff --git a/scripts/package/Makefile b/scripts/package/Makefile index 27b42d5b6c4f..ca7f46b562a4 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile | |||
| @@ -104,7 +104,7 @@ clean-dirs += $(objtree)/snap/ | |||
| 104 | # --------------------------------------------------------------------------- | 104 | # --------------------------------------------------------------------------- |
| 105 | tar%pkg: FORCE | 105 | tar%pkg: FORCE |
| 106 | $(MAKE) -f $(srctree)/Makefile | 106 | $(MAKE) -f $(srctree)/Makefile |
| 107 | $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ | 107 | +$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ |
| 108 | 108 | ||
| 109 | clean-dirs += $(objtree)/tar-install/ | 109 | clean-dirs += $(objtree)/tar-install/ |
| 110 | 110 | ||
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index a50a2aa963ad..8387a9bc064a 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * recordmcount.c: construct a table of the locations of calls to 'mcount' | 3 | * recordmcount.c: construct a table of the locations of calls to 'mcount' |
| 3 | * so that ftrace can find them quickly. | 4 | * so that ftrace can find them quickly. |
| 4 | * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. | 5 | * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. |
| 5 | * Licensed under the GNU General Public License, version 2 (GPLv2). | ||
| 6 | * | 6 | * |
| 7 | * Restructured to fit Linux format, as well as other updates: | 7 | * Restructured to fit Linux format, as well as other updates: |
| 8 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. | 8 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. |
diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index 2e7793735e14..13c5e6c8829c 100644 --- a/scripts/recordmcount.h +++ b/scripts/recordmcount.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * recordmcount.h | 3 | * recordmcount.h |
| 3 | * | 4 | * |
| @@ -15,8 +16,6 @@ | |||
| 15 | * | 16 | * |
| 16 | * This conversion to macros was done by: | 17 | * This conversion to macros was done by: |
| 17 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. | 18 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. |
| 18 | * | ||
| 19 | * Licensed under the GNU General Public License, version 2 (GPLv2). | ||
| 20 | */ | 19 | */ |
| 21 | #undef append_func | 20 | #undef append_func |
| 22 | #undef is_fake_mcount | 21 | #undef is_fake_mcount |
diff --git a/scripts/show_delta b/scripts/show_delta index 5b365009e6a3..264399307c4f 100755 --- a/scripts/show_delta +++ b/scripts/show_delta | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/python | 1 | #!/usr/bin/python |
| 2 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 2 | # | 3 | # |
| 3 | # show_deltas: Read list of printk messages instrumented with | 4 | # show_deltas: Read list of printk messages instrumented with |
| 4 | # time data, and format with time deltas. | 5 | # time data, and format with time deltas. |
| @@ -7,7 +8,6 @@ | |||
| 7 | # | 8 | # |
| 8 | # Copyright 2003 Sony Corporation | 9 | # Copyright 2003 Sony Corporation |
| 9 | # | 10 | # |
| 10 | # GPL 2.0 applies. | ||
| 11 | 11 | ||
| 12 | import sys | 12 | import sys |
| 13 | import string | 13 | import string |
diff --git a/scripts/sortextable.c b/scripts/sortextable.c index 365a907f98b3..55768654e3c6 100644 --- a/scripts/sortextable.c +++ b/scripts/sortextable.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * sortextable.c: Sort the kernel's exception table | 3 | * sortextable.c: Sort the kernel's exception table |
| 3 | * | 4 | * |
| @@ -6,7 +7,6 @@ | |||
| 6 | * Based on code taken from recortmcount.c which is: | 7 | * Based on code taken from recortmcount.c which is: |
| 7 | * | 8 | * |
| 8 | * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. | 9 | * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. |
| 9 | * Licensed under the GNU General Public License, version 2 (GPLv2). | ||
| 10 | * | 10 | * |
| 11 | * Restructured to fit Linux format, as well as other updates: | 11 | * Restructured to fit Linux format, as well as other updates: |
| 12 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. | 12 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. |
diff --git a/scripts/sortextable.h b/scripts/sortextable.h index ba8700428e21..d4b3f6c40f02 100644 --- a/scripts/sortextable.h +++ b/scripts/sortextable.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| 1 | /* | 2 | /* |
| 2 | * sortextable.h | 3 | * sortextable.h |
| 3 | * | 4 | * |
| @@ -7,9 +8,6 @@ | |||
| 7 | * | 8 | * |
| 8 | * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. | 9 | * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. |
| 9 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. | 10 | * Copyright 2010 Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. |
| 10 | * | ||
| 11 | * | ||
| 12 | * Licensed under the GNU General Public License, version 2 (GPLv2). | ||
| 13 | */ | 11 | */ |
| 14 | 12 | ||
| 15 | #undef extable_ent_size | 13 | #undef extable_ent_size |
