From: Michael Brown Date: Sat, 28 Jan 2023 15:31:28 +0000 (+0000) Subject: [efi] Detect SPDX licence identifiers in imported EDK2 headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dac41fc4ecace4d6ccad7f56aab8685f5f96959f;p=thirdparty%2Fipxe.git [efi] Detect SPDX licence identifiers in imported EDK2 headers Signed-off-by: Michael Brown --- diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl index f5a3f546f..7177768a7 100755 --- a/src/include/ipxe/efi/import.pl +++ b/src/include/ipxe/efi/import.pl @@ -71,9 +71,9 @@ sub try_import_file { push @dependencies, $1; } # Check for BSD licence statement - if ( /^\s*THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE/ ) { + if ( /^\s*SPDX-License-Identifier: BSD-2-Clause-Patent$/ ) { die "Licence detected after header guard\n" if $guard; - $licence = "BSD3"; + $licence = "BSD2_PATENT"; } # Write out line print $outfh "$_\n";