diff options
| author | Michael Brown | 2008-10-08 03:30:48 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-10-10 05:04:07 +0200 |
| commit | ac663cf5093eb50c565874d6c5974b9495087faf (patch) | |
| tree | 142247c0845d99272c6e6218c390861a21c593b2 /src/include/gpxe/efi/efi.h | |
| parent | [i386] Simplify linker script and standardise linker-defined symbol names (diff) | |
| download | ipxe-ac663cf5093eb50c565874d6c5974b9495087faf.tar.gz ipxe-ac663cf5093eb50c565874d6c5974b9495087faf.tar.xz ipxe-ac663cf5093eb50c565874d6c5974b9495087faf.zip | |
[efi] Add EFI headers from the EFI Development Kit (edk2)
The intention is to include near-verbatim copies of the EFI headers
required by gPXE. This is achieved using the import.pl script in
src/include/gpxe/efi.
Note that import.pl will modify any #include lines in each imported
header to reflect its new location within the gPXE tree. It will also
tidy up the file by removing carriage return characters and trailing
whitespace.
Diffstat (limited to 'src/include/gpxe/efi/efi.h')
| -rw-r--r-- | src/include/gpxe/efi/efi.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/gpxe/efi/efi.h b/src/include/gpxe/efi/efi.h new file mode 100644 index 000000000..36aab5eb4 --- /dev/null +++ b/src/include/gpxe/efi/efi.h @@ -0,0 +1,37 @@ +#ifndef _EFI_H +#define _EFI_H + +/** @file + * + * EFI API + * + * The intention is to include near-verbatim copies of the EFI headers + * required by gPXE. This is achieved using the import.pl script in + * this directory. Run the import script to update the local copies + * of the headers: + * + * ./import.pl /path/to/edk2/edk2 + * + * where /path/to/edk2/edk2 is the path to your local checkout of the + * EFI Development Kit. + * + * Note that import.pl will modify any #include lines in each imported + * header to reflect its new location within the gPXE tree. It will + * also tidy up the file by removing carriage return characters and + * trailing whitespace. + * + * + * At the time of writing, there are a few other modifications to + * these headers that are present in my personal edk2 tree, that are + * not yet committed back to the main edk2 repository. These + * modifications are fixes for compilation on case-dependent + * filesystems, compilation under -mrtd and -mregparm=3, etc. + */ + +/* Include the top-level EFI header file */ +#include <gpxe/efi/Uefi.h> + +/* Reset any trailing #pragma pack directives */ +#pragma pack() + +#endif /* _EFI_H */ |
