From 1b5a8ff3fdf607656097761174abe4b7473b89db Mon Sep 17 00:00:00 2001 From: Javier Tia Date: Fri, 5 Sep 2025 14:53:46 -0600 Subject: Lindent: Remove wrapper around indent tool The Linux kernel has not maintained the same script since 2017-11-01, and with clang-format included in U-Boot, it is not required anymore. Signed-off-by: Javier Tia --- scripts/Lindent | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 scripts/Lindent (limited to 'scripts') diff --git a/scripts/Lindent b/scripts/Lindent deleted file mode 100755 index 9c4b3e2b709..00000000000 --- a/scripts/Lindent +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" -RES=`indent --version` -V1=`echo $RES | cut -d' ' -f3 | cut -d'.' -f1` -V2=`echo $RES | cut -d' ' -f3 | cut -d'.' -f2` -V3=`echo $RES | cut -d' ' -f3 | cut -d'.' -f3` -if [ $V1 -gt 2 ]; then - PARAM="$PARAM -il0" -elif [ $V1 -eq 2 ]; then - if [ $V2 -gt 2 ]; then - PARAM="$PARAM -il0"; - elif [ $V2 -eq 2 ]; then - if [ $V3 -ge 10 ]; then - PARAM="$PARAM -il0" - fi - fi -fi -indent $PARAM "$@" -- cgit v1.2.3 From 40888b1e4cc81404493a2df263af1ca20ccd08d6 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Tue, 16 Sep 2025 10:14:45 -0600 Subject: scripts: checkpatch.pl: Extend some checks to "env" files In order for the U-Boot specific tests we've added (along with the long line test) to be run on ".env" files as well, we need to update the line in the process function that starts to limit the file extensions that we test on. Signed-off-by: Tom Rini --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 414019c5b89..763287e02b1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3791,7 +3791,7 @@ sub process { } # check we are in a valid source file if not then ignore this hunk - next if ($realfile !~ /\.(h|c|s|S|sh|dtsi|dts)$/); + next if ($realfile !~ /\.(h|c|s|S|sh|dtsi|dts|env)$/); # check for using SPDX-License-Identifier on the wrong line number if ($realline != $checklicenseline && -- cgit v1.2.3