From bdad9a8e72c2f2dedd26cd144785e489fcee6742 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 26 May 2018 19:47:07 -0600 Subject: util/lint: Update lint-000-license-headers linter - Add some directories and files to the ignore list - Add the LGPL as a recognized header. It's used in some files that were pulled into coreboot from other sources. Change-Id: I53423205f1cbf142a294ee5d24e885741a44dfcd Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/26572 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- util/lint/lint-000-license-headers | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'util/lint') diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers index 43be380025..cc23f1ae2d 100755 --- a/util/lint/lint-000-license-headers +++ b/util/lint/lint-000-license-headers @@ -19,7 +19,10 @@ # regex list of files and directories to exclude from the search HEADER_EXCLUDED="\ +^src/lib/gnat/|\ ^src/vendorcode/|\ +^util/amdtools/example_input/|\ +^util/cbfstool/lzma/|\ ^util/kconfig/|\ ^util/romcc/tests|\ ^util/romcc/results|\ @@ -30,6 +33,15 @@ Kconfig|\ Changelog|\ TODO|\ EXAMPLE|\ +NEWS|\ +ChangeLog|\ +Dockerfile|\ +\.in$|\ +\.[18]$|\ +\.md$|\ +\.wiki$|\ +\.xxdump$|\ +\.spec$|\ \.txt$|\ \.jpg$|\ \.cksum$|\ @@ -93,6 +105,7 @@ check_for_license '"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES' check_for_license 'assumes any liability or responsibility for the use' check_for_license 'THE AUTHORS DISCLAIM.*ALL WARRANTIES WITH REGARD TO THIS SOFTWARE' check_for_license 'No license required' +check_for_license 'GNU Lesser General Public' for file in $headerlist; do # Verify the file exists, and has content that requires a header -- cgit v1.2.3