[openwrt/openwrt] scripts: fix checkpatch.pl for changed license dir

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 14 13:22:25 EST 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6d5425976f562000ea319180e6c329886bba2c1f

commit 6d5425976f562000ea319180e6c329886bba2c1f
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Tue Sep 22 09:08:58 2020 -1000

    scripts: fix checkpatch.pl for changed license dir
    
    As multiple LICENSES are shipped and no longer just LICENSE, modify the
    OpenWrt tree detection in checkpatch.pl.
    
    Signed-off-by: Paul Spooren <mail at aparcar.org>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 8ffc093548..81b1ffcb56 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1113,7 +1113,7 @@ sub top_of_openwrt_tree {
 	my ($root) = @_;
 
 	my @tree_check = (
-		"BSDmakefile", "Config.in", "LICENSE", "Makefile", "README.md",
+		"BSDmakefile", "Config.in", "LICENSES", "Makefile", "README.md",
 		"feeds.conf.default", "include", "package", "rules.mk",
 		"scripts", "target", "toolchain", "tools"
 	);



More information about the lede-commits mailing list