aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-09-29 15:23:19 -0700
committerTim Newsome <tim@sifive.com>2023-09-29 15:23:19 -0700
commit477f70289657ee367a9d57cd8571340ed0e1335d (patch)
tree584e72933948bcb497cf6b818efc7d025eb4e9a0 /tools
parent2f1714789bed838345adc14058e6086165c0ec2a (diff)
downloadriscv-openocd-477f70289657ee367a9d57cd8571340ed0e1335d.zip
riscv-openocd-477f70289657ee367a9d57cd8571340ed0e1335d.tar.gz
riscv-openocd-477f70289657ee367a9d57cd8571340ed0e1335d.tar.bz2
Copy tool files from upstream.
Copy .travis.yml and tools/scripts/checkpatch.pl from upstream ee31f1578a333a75737bc5b183cd4ae98cdaf798. Addresses #913. Change-Id: I69ad6b734ebf2cf7110010aa0481b6676124610e Signed-off-by: Tim Newsome <tim@sifive.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkpatch.pl21
1 files changed, 10 insertions, 11 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index 6ea0241..9dda61c 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -3562,17 +3562,16 @@ sub process {
}
# Check for FSF mailing addresses.
- # Don't care in this branch. This always messes up when we merge changes down.
- #if ($rawline =~ /\bwrite to the Free/i ||
- # $rawline =~ /\b675\s+Mass\s+Ave/i ||
- # $rawline =~ /\b59\s+Temple\s+Pl/i ||
- # $rawline =~ /\b51\s+Franklin\s+St/i) {
- # my $herevet = "$here\n" . cat_vet($rawline) . "\n";
- # my $msg_level = \&ERROR;
- # $msg_level = \&CHK if ($file);
- # &{$msg_level}("FSF_MAILING_ADDRESS",
- # "Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. OpenOCD already includes a copy of the GPL.\n" . $herevet)
- #}
+ if ($rawline =~ /\bwrite to the Free/i ||
+ $rawline =~ /\b675\s+Mass\s+Ave/i ||
+ $rawline =~ /\b59\s+Temple\s+Pl/i ||
+ $rawline =~ /\b51\s+Franklin\s+St/i) {
+ my $herevet = "$here\n" . cat_vet($rawline) . "\n";
+ my $msg_level = \&ERROR;
+ $msg_level = \&CHK if ($file);
+ &{$msg_level}("FSF_MAILING_ADDRESS",
+ "Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. OpenOCD already includes a copy of the GPL.\n" . $herevet)
+ }
# check for Kconfig help text having a real description
# Only applies when adding the entry originally, after that we do not have