diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-01-27 19:00:38 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2022-09-18 08:20:08 +0000 |
commit | bb1411e5987be66a8168e801a28f840d3b3b939b (patch) | |
tree | 00a089febe5855443f76e8b1eba6a4edce150eb9 /tools | |
parent | 8b4d9503d866bd7f70f743c3422076ba9ac9d58f (diff) | |
download | riscv-openocd-bb1411e5987be66a8168e801a28f840d3b3b939b.zip riscv-openocd-bb1411e5987be66a8168e801a28f840d3b3b939b.tar.gz riscv-openocd-bb1411e5987be66a8168e801a28f840d3b3b939b.tar.bz2 |
checkpatch: adapt shell script to the tool's new version
With the new checkpatch it's not possible to send in one shot a
set of patches through stdin because the Signed-off-by tag present
in each patch will trigger the error of duplicated Signed-off-by.
Use the new command-line flag '--git' to let checkpatch to extract
the patches from git and analyse them one-by-one.
While there, add the SPDX tag to the script.
Change-Id: I74791b627b8cd68f2d49146d15ae35bbc610e64e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6166
Tested-by: jenkins
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkpatch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 0a630a2..7375fc2 100755 --- a/tools/checkpatch.sh +++ b/tools/checkpatch.sh @@ -1,5 +1,5 @@ #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later since=${1:-HEAD^} -git format-patch -M --stdout $since | tools/scripts/checkpatch.pl - +tools/scripts/checkpatch.pl --git ${since}.. |