mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 18:40:24 +03:00
[efi] Allow for whitespace before #include in imported EDK2 header files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -67,7 +67,7 @@ sub try_import_file {
|
|||||||
s/\s*$//g;
|
s/\s*$//g;
|
||||||
chomp;
|
chomp;
|
||||||
# Update include lines, and record included files
|
# 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;
|
push @dependencies, $1;
|
||||||
}
|
}
|
||||||
# Check for BSD licence statement
|
# Check for BSD licence statement
|
||||||
|
|||||||
Reference in New Issue
Block a user