mirror of https://github.com/ipxe/ipxe.git
[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>pull/41/head
parent
40a9a0f097
commit
fdad22a1ed
|
@ -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>
|
||||
|
||||
#define eprintf(...) fprintf ( stderr, __VA_ARGS__ )
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue