diff options
| author | Michael Brown | 2023-01-28 16:31:28 +0100 |
|---|---|---|
| committer | Michael Brown | 2023-01-28 18:22:25 +0100 |
| commit | dac41fc4ecace4d6ccad7f56aab8685f5f96959f (patch) | |
| tree | 602933c1f6421c221f6fe5dcb92cd0b158329747 /src/include/ipxe/efi/import.pl | |
| parent | [legal] Add missing FILE_LICENCE declaration to efi_path.c (diff) | |
| download | ipxe-dac41fc4ecace4d6ccad7f56aab8685f5f96959f.tar.gz ipxe-dac41fc4ecace4d6ccad7f56aab8685f5f96959f.tar.xz ipxe-dac41fc4ecace4d6ccad7f56aab8685f5f96959f.zip | |
[efi] Detect SPDX licence identifiers in imported EDK2 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/import.pl')
| -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 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"; |
