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:
Martin Roth
2024-02-16 10:19:07 -07:00
committed by Felix Held
parent 3fc7a8f507
commit 1eccf77a78
3 changed files with 25 additions and 21 deletions

View File

@@ -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