diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-09-14 23:29:24 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-09-14 23:29:24 +0100 |
commit | fdad22a1ed0cefcc975f9f6d2a6153d3b47bc78a (patch) | |
tree | 52e11129589970a3ff24810f7608f26c2b40f402 /src/util/elf2efi.c | |
parent | 40a9a0f097d87252f2b4f3cd884c9261b1d3d1e8 (diff) | |
download | ipxe-fdad22a1ed0cefcc975f9f6d2a6153d3b47bc78a.tar.gz |
[efi] Minimise use of iPXE header files when building host utilities
Avoid dragging in unnecessary iPXE header files such as <ipxe/uuid.h>
and <ipxe/tables.h> when building host utilities, and ensure that
FILE_LICENCE() (present in the imported EDK2 headers) expands to a
no-op.
Reported-by: Michael Tautschnig <mt@debian.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/elf2efi.c')
-rw-r--r-- | src/util/elf2efi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/elf2efi.c b/src/util/elf2efi.c index 4d2de3e75..bf6dae05f 100644 --- a/src/util/elf2efi.c +++ b/src/util/elf2efi.c @@ -20,6 +20,7 @@ #define _GNU_SOURCE #define PACKAGE "elf2efi" #define PACKAGE_VERSION "1" +#define FILE_LICENCE(...) extern void __file_licence ( void ) #include <stdint.h> #include <stddef.h> #include <stdlib.h> @@ -30,7 +31,7 @@ #include <assert.h> #include <getopt.h> #include <bfd.h> -#include <ipxe/efi/efi.h> +#include <ipxe/efi/Uefi.h> #include <ipxe/efi/IndustryStandard/PeImage.h> #include <libgen.h> |