]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Detect SPDX licence identifiers in imported EDK2 headers
authorMichael Brown <mcb30@ipxe.org>
Sat, 28 Jan 2023 15:31:28 +0000 (15:31 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 28 Jan 2023 17:22:25 +0000 (17:22 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/efi/import.pl

index f5a3f546f8a91ed0f3d7bc030e2c5a3309d556b8..7177768a7fe9bbc56da84173241cc9cf9865d5db 100755 (executable)
@@ -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";