mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
scripts/checkpatch.pl: Resync with v5.16
This resyncs us with the version found in v5.16 of the Linux kernel with the following exceptions: - Keep our u-boot specific tests / code area. - Change the location of checkpatch.rst - Drop the "use strscpy" test as we don't have that, but do have strlcpy and want that used now. - Keep debug/printf in the list for $logFunctions This also syncs the spdxcheck.py tool and all the associated documentation. S Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
68f08966b0
commit
587254ebcf
3 changed files with 642 additions and 97 deletions
|
@ -44,7 +44,7 @@ def read_spdxdata(repo):
|
|||
continue
|
||||
|
||||
exception = None
|
||||
for l in open(el.path).readlines():
|
||||
for l in open(el.path, encoding="utf-8").readlines():
|
||||
if l.startswith('Valid-License-Identifier:'):
|
||||
lid = l.split(':')[1].strip().upper()
|
||||
if lid in spdx.licenses:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue