diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-01-28 15:36:23 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-01-28 16:26:28 +0000 |
commit | 00a0a20ae752d2ceb0e76cfff110f8e1ec807b62 (patch) | |
tree | 337edc02869400d72a3202d794c3c3d3fa32144d | |
parent | f05ab5774590aa613df17fc65bea01909365355b (diff) | |
download | ipxe-00a0a20ae752d2ceb0e76cfff110f8e1ec807b62.tar.gz |
[efi] Allow for whitespace before #include in imported EDK2 header files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-x | src/include/ipxe/efi/import.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl index 7177768a7..ec986025d 100755 --- a/src/include/ipxe/efi/import.pl +++ b/src/include/ipxe/efi/import.pl @@ -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 |