diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-01-28 15:31:28 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-01-28 17:22:25 +0000 |
commit | dac41fc4ecace4d6ccad7f56aab8685f5f96959f (patch) | |
tree | 602933c1f6421c221f6fe5dcb92cd0b158329747 | |
parent | 5220bdc5242877d8d6d457b5f4f6f5f3da78a833 (diff) | |
download | ipxe-dac41fc4ecace4d6ccad7f56aab8685f5f96959f.zip ipxe-dac41fc4ecace4d6ccad7f56aab8685f5f96959f.tar.gz ipxe-dac41fc4ecace4d6ccad7f56aab8685f5f96959f.tar.bz2 |
[efi] Detect SPDX licence identifiers in imported EDK2 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-x | src/include/ipxe/efi/import.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl index f5a3f54..7177768 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"; |