util: Break up spdx identifier text in scripts & makefiles
The SPDX parsers can find the SPDX identifiers in the scripts and makefiles if they aren't broken up. This unnecessarily confuses things when we're doing license parsing. Change-Id: I215ed047397f342c912f1a969315fa184a124f6a Signed-off-by: Martin Roth <gaumless@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80585 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ set -u
|
||||
scratch_file=''
|
||||
coreboot_top=''
|
||||
pname=''
|
||||
SPDX_ID_STRING="SPDX-License-Identifier"
|
||||
|
||||
cleanup()
|
||||
{
|
||||
@@ -41,7 +42,7 @@ usage()
|
||||
|
||||
update_copyright()
|
||||
{
|
||||
local spdx='/* SPDX-License-Identifier: BSD-3-Clause */'
|
||||
local spdx="/* ${SPDX_ID_STRING}: BSD-3-Clause */"
|
||||
local f=$1
|
||||
|
||||
# replace existing copyright with empty lines
|
||||
|
Reference in New Issue
Block a user