summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/import.pl
diff options
context:
space:
mode:
authorMichael Brown2023-01-28 20:09:46 +0100
committerMichael Brown2023-01-28 20:14:00 +0100
commitb9be454010ad261cebc336ce6a1a2e8ba418a686 (patch)
tree84b12d2368bda46c78d0ce9940789ff4cce986ac /src/include/ipxe/efi/import.pl
parent[efi] Update to current EDK2 headers (diff)
downloadipxe-b9be454010ad261cebc336ce6a1a2e8ba418a686.tar.gz
ipxe-b9be454010ad261cebc336ce6a1a2e8ba418a686.tar.xz
ipxe-b9be454010ad261cebc336ce6a1a2e8ba418a686.zip
[la64] Import LoongArch64 ProcessorBind.h from 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.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl
index cbc320514..34aed9a28 100755
--- a/src/include/ipxe/efi/import.pl
+++ b/src/include/ipxe/efi/import.pl
@@ -79,13 +79,13 @@ sub try_import_file {
print $outfh "$_\n";
# Apply FILE_LICENCE() immediately after include guard
if ( defined $maybe_guard && ! defined $guard ) {
- if ( /^\#define\s+_?_${maybe_guard}_?_$/ ) {
+ if ( /^\#define\s+${maybe_guard}$/ ) {
$guard = $maybe_guard;
print $outfh "\nFILE_LICENCE ( $licence );\n" if $licence;
}
undef $maybe_guard;
}
- if ( /^#ifndef\s+_?_(\S+)_?_/ ) {
+ if ( /^#ifndef\s+(_?_?\S+_?_)/ ) {
$maybe_guard = $1;
}
}