mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
[efi] Detect SPDX licence identifiers in imported EDK2 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -71,9 +71,9 @@ sub try_import_file {
|
|||||||
push @dependencies, $1;
|
push @dependencies, $1;
|
||||||
}
|
}
|
||||||
# Check for BSD licence statement
|
# 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;
|
die "Licence detected after header guard\n" if $guard;
|
||||||
$licence = "BSD3";
|
$licence = "BSD2_PATENT";
|
||||||
}
|
}
|
||||||
# Write out line
|
# Write out line
|
||||||
print $outfh "$_\n";
|
print $outfh "$_\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user