summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/import.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/efi/import.pl')
-rwxr-xr-xsrc/include/ipxe/efi/import.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl
index 0a7669f43..9490e2f7b 100755
--- a/src/include/ipxe/efi/import.pl
+++ b/src/include/ipxe/efi/import.pl
@@ -71,17 +71,19 @@ sub try_import_file {
push @dependencies, $2;
}
# Check for BSD licence statement
- if ( /^\s*SPDX-License-Identifier: BSD-2-Clause-Patent$/ ) {
+ if ( /\s*SPDX-License-Identifier: BSD-2-Clause-Patent$/ ) {
die "Licence detected after header guard\n" if $guard;
$licence = "BSD2_PATENT";
}
# Write out line
print $outfh "$_\n";
- # Apply FILE_LICENCE() immediately after include guard
+ # Apply FILE_LICENCE()/FILE_SECBOOT() immediately after include guard
if ( defined $maybe_guard && ! defined $guard ) {
if ( /^\#define\s+${maybe_guard}$/ ) {
$guard = $maybe_guard;
- print $outfh "\nFILE_LICENCE ( $licence );\n" if $licence;
+ print $outfh "\n";
+ print $outfh "FILE_LICENCE ( $licence );\n" if $licence;
+ print $outfh "FILE_SECBOOT ( PERMITTED );\n";
}
undef $maybe_guard;
}
@@ -118,7 +120,9 @@ pod2usage ( 1 ) unless @ARGV == 1;
my $edktop = shift;
# Identify edk import directories
-my $edkdirs = [ "MdePkg/Include", "MdeModulePkg/Include" ];
+my $edkdirs = [ "MdePkg/Include", "MdeModulePkg/Include",
+ "NetworkPkg/Include", "EmbeddedPkg/Include",
+ "OvmfPkg/Include" ];
foreach my $edkdir ( @$edkdirs ) {
die "Directory \"$edktop\" does not appear to contain the EFI EDK2 "
."(missing \"$edkdir\")\n" unless -d catdir ( $edktop, $edkdir );