From 1eccf77a78c49e1026ccbaca03cdb1f04f424368 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Fri, 16 Feb 2024 10:19:07 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80585 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier Reviewed-by: Varshit Pandya --- util/chromeos/update_ec_headers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/chromeos') diff --git a/util/chromeos/update_ec_headers.sh b/util/chromeos/update_ec_headers.sh index c3ee13e5f7..23b6418983 100755 --- a/util/chromeos/update_ec_headers.sh +++ b/util/chromeos/update_ec_headers.sh @@ -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 -- cgit v1.2.3