summaryrefslogtreecommitdiffstats
path: root/src/util/efirom.c
diff options
context:
space:
mode:
authorMichael Brown2015-09-15 00:29:24 +0200
committerMichael Brown2015-09-15 00:29:24 +0200
commitfdad22a1ed0cefcc975f9f6d2a6153d3b47bc78a (patch)
tree52e11129589970a3ff24810f7608f26c2b40f402 /src/util/efirom.c
parent[build] Remove dependency on libiberty (diff)
downloadipxe-fdad22a1ed0cefcc975f9f6d2a6153d3b47bc78a.tar.gz
ipxe-fdad22a1ed0cefcc975f9f6d2a6153d3b47bc78a.tar.xz
ipxe-fdad22a1ed0cefcc975f9f6d2a6153d3b47bc78a.zip
[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/efirom.c')
-rw-r--r--src/util/efirom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/efirom.c b/src/util/efirom.c
index abee496d..a982c19a 100644
--- a/src/util/efirom.c
+++ b/src/util/efirom.c
@@ -17,6 +17,7 @@
* 02110-1301, USA.
*/
+#define FILE_LICENCE(...) extern void __file_licence ( void )
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
@@ -27,7 +28,7 @@
#include <errno.h>
#include <assert.h>
#include <getopt.h>
-#include <ipxe/efi/efi.h>
+#include <ipxe/efi/Uefi.h>
#include <ipxe/efi/IndustryStandard/PeImage.h>
#include <ipxe/efi/IndustryStandard/Pci22.h>