[efi] Allow for whitespace before #include in imported EDK2 header files

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/871/head
Michael Brown 2023-01-28 15:36:23 +00:00
parent dac41fc4ec
commit 91944c6341
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ sub try_import_file {
s/\s*$//g;
chomp;
# Update include lines, and record included files
if ( s/^\#include\s+[<\"](\S+)[>\"]/\#include <ipxe\/efi\/$1>/ ) {
if ( s/^(\s*\#include\s+)[<\"](\S+)[>\"]/$1<ipxe\/efi\/$2>/ ) {
push @dependencies, $1;
}
# Check for BSD licence statement