Checkpatch: Remove the option to update checkpatch from network
checkpatch.pl and related files are now hosted directly in the
CI repo, so remove the step from the Groovy script to require
the update of the files from network (those are now handled
offline when required). Also remove the capability itself from
the run-checkpatch.sh script, which is already deprecated.
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I9f7db56ffc0ff590517bc9e559b00593a49f428a
diff --git a/run-checkpatch.sh b/run-checkpatch.sh
index 3b8dbbe..42ab4ac 100755
--- a/run-checkpatch.sh
+++ b/run-checkpatch.sh
@@ -66,12 +66,11 @@
#This is needed for Doxygen for now.
#!void usage(void){};
usage() {
- echo "Usage: $(basename -- "$0") [-v] [-h] [-d <TF-M dir>] [-f <output_filename>] [-u] [-p <number>]"
+ echo "Usage: $(basename -- "$0") [-v] [-h] [-d <TF-M dir>] [-f <output_filename>] [-p <number>]"
echo " -v, Verbose output"
echo " -h, Script help"
echo " -d, <TF-M dir>, TF-M directory"
echo " -f, <output_filename>, Output filename"
- echo " -u, Update checkpatch files using curl"
echo " -l <number>, Check only the last <number> commits (HEAD~<number>)."
echo " -p <path>, Provide location of directory containing checkpatch."
echo " -r, Print raw output. Implies verbose."
@@ -169,7 +168,6 @@
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Internal variables not to be modified.
VERBOSE=0
-UPDATE_CHECKPATCH_FILES=0
##@var CHECK_LAST_COMMITS
##@brief Number of commits to check.
@@ -186,14 +184,13 @@
# Getting options and setting variables required to execute the script. This
# script starts executing from here.
-while getopts "uvhd:f:l:p:r" opt
+while getopts "vhd:f:l:p:r" opt
do
case $opt in
v) VERBOSE=1 ;;
h) usage ; exit 0 ;;
d) TFM_DIRECTORY_NAME="$OPTARG" ;;
f) OUTPUT_FILE_PATH="$OPTARG" ;;
- u) UPDATE_CHECKPATCH_FILES=1 ;;
l) CHECK_LAST_COMMITS="$OPTARG" ;;
p) CHECKPATCH_PATH="$OPTARG" ;;
r) RAW_OUTPUT=1
@@ -202,12 +199,6 @@
esac
done
-# Update checkpatch files
-if [ $UPDATE_CHECKPATCH_FILES -eq 1 ]; then
- echo "DEPRECATED: Discarding request to update checkpatch files."
- exit 0
-fi
-
#Convert checkpath override path to full path
CHECKPATCH_PATH=$(readlink -f "$CHECKPATCH_PATH")