[coreboot-gerrit] New patch to review for coreboot: d6367fa checkpatch: fixes for running out of coreboot's tree

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Feb 11 02:21:20 CET 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8418

-gerrit

commit d6367fa299f1cf735834229fb894bb15fbfe76d5
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Wed Feb 11 01:51:32 2015 +0100

    checkpatch: fixes for running out of coreboot's tree
    
    Fix up tree detection to work in a coreboot tree.
    
    Change-Id: Ie8d6d1407853b77a4b3e9763f23481bd9402bc61
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 util/lint/checkpatch.pl | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
index f0bb6d6..d6d437d 100755
--- a/util/lint/checkpatch.pl
+++ b/util/lint/checkpatch.pl
@@ -226,7 +226,7 @@ if ($tree) {
 	} else {
 		if (top_of_kernel_tree('.')) {
 			$root = '.';
-		} elsif ($0 =~ m@(.*)/scripts/[^/]*$@ &&
+		} elsif ($0 =~ m@(.*)/util/lint/[^/]*$@ &&
 						top_of_kernel_tree($1)) {
 			$root = $1;
 		}
@@ -699,9 +699,8 @@ sub top_of_kernel_tree {
 	my ($root) = @_;
 
 	my @tree_check = (
-		"COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile",
-		"README", "Documentation", "arch", "include", "drivers",
-		"fs", "init", "ipc", "kernel", "lib", "scripts",
+		"COPYING", "README", "Makefile", "Makefile.inc",
+		"src", "documentation", "util", "payloads",
 	);
 
 	foreach my $check (@tree_check) {



More information about the coreboot-gerrit mailing list