aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi/import.pl
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2014-10-15 14:45:17 +0100
committerMichael Brown <mcb30@ipxe.org>2014-10-16 14:12:42 +0100
commit318b5fca1a0602389b090785aada7783794076ab (patch)
tree97a2f7fad586e499339c95db8a681266b06ab008 /src/include/ipxe/efi/import.pl
parentb9a5ff2b03b7354c9fafdca7e0e6c9b3da151f1c (diff)
downloadipxe-318b5fca1a0602389b090785aada7783794076ab.zip
ipxe-318b5fca1a0602389b090785aada7783794076ab.tar.gz
ipxe-318b5fca1a0602389b090785aada7783794076ab.tar.bz2
[efi] Update to current EDK2 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/import.pl')
-rwxr-xr-xsrc/include/ipxe/efi/import.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl
index 62ee750..f5a3f54 100755
--- a/src/include/ipxe/efi/import.pl
+++ b/src/include/ipxe/efi/import.pl
@@ -78,9 +78,8 @@ sub try_import_file {
# Write out line
print $outfh "$_\n";
# Apply FILE_LICENCE() immediately after include guard
- if ( defined $maybe_guard ) {
+ if ( defined $maybe_guard && ! defined $guard ) {
if ( /^\#define\s+_?_${maybe_guard}_?_$/ ) {
- die "Duplicate header guard detected in $infile\n" if $guard;
$guard = $maybe_guard;
print $outfh "\nFILE_LICENCE ( $licence );\n" if $licence;
}