diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-01-28 15:31:28 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-01-28 16:26:28 +0000 |
commit | f05ab5774590aa613df17fc65bea01909365355b (patch) | |
tree | 4fca5cf8a201674691b030b94f2acb9f47712513 | |
parent | 1b02ddeaf83c94048fe23a126f5f642b96727951 (diff) | |
download | ipxe-f05ab5774590aa613df17fc65bea01909365355b.tar.gz |
[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 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"; |