summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2013-03-14 01:20:04 +0100
committerMichael Brown2013-03-14 01:20:04 +0100
commite63f6c9241394eca5bfbc962704c19dff1448e37 (patch)
tree903382e341407cefb8d69de759d3f4e678b3e1af /src/util
parent[efi] Add our own EFI_LOAD_FILE_PROTOCOL implementation (diff)
downloadipxe-e63f6c9241394eca5bfbc962704c19dff1448e37.tar.gz
ipxe-e63f6c9241394eca5bfbc962704c19dff1448e37.tar.xz
ipxe-e63f6c9241394eca5bfbc962704c19dff1448e37.zip
[efi] Fix building with newer binutils
Newer versions of bfd.h require definitions for the PACKAGE and PACKAGE_VERSION macros used by autotools. Work around this by manually defining these macros before including bfd.h. Originally-fixed-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net> Tested-by: Brandon Penglase <bpenglase-ipxe@spaceservices.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/elf2efi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/elf2efi.c b/src/util/elf2efi.c
index b28c7ef3..45d53957 100644
--- a/src/util/elf2efi.c
+++ b/src/util/elf2efi.c
@@ -18,6 +18,8 @@
*/
#define _GNU_SOURCE
+#define PACKAGE "elf2efi"
+#define PACKAGE_VERSION "1"
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>