From b9be454010ad261cebc336ce6a1a2e8ba418a686 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 28 Jan 2023 19:09:46 +0000 Subject: [la64] Import LoongArch64 ProcessorBind.h from EDK2 headers Signed-off-by: Michael Brown --- src/include/ipxe/efi/import.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/ipxe/efi/import.pl') 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; } } -- cgit v1.2.3-55-g7522