diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-09-29 14:41:03 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-09-29 14:41:03 +0000 |
commit | 2f07ce984fb548c4dc84e7d0ec01939a6f8528fd (patch) | |
tree | cb3b4e09cd7cf103f95f31458290d90eed3b9faa /gnu/usr.bin | |
parent | 08029b22656860a865efdfc4fa8f9813c94e1071 (diff) | |
download | FreeBSD-src-2f07ce984fb548c4dc84e7d0ec01939a6f8528fd.zip FreeBSD-src-2f07ce984fb548c4dc84e7d0ec01939a6f8528fd.tar.gz |
Add support for the BFD target efi-app-x86_64.
This uses only GPL2 source code and is a requirement for a 64 bit EFI
boot loader.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/Makefile.amd64 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.amd64 b/gnu/usr.bin/binutils/libbfd/Makefile.amd64 index 537adc4..b6de3b3 100644 --- a/gnu/usr.bin/binutils/libbfd/Makefile.amd64 +++ b/gnu/usr.bin/binutils/libbfd/Makefile.amd64 @@ -8,19 +8,28 @@ I386_VECS:= ${DEFAULT_VECTOR} # ${VECS} DEFAULT_VECTOR= bfd_elf64_x86_64_vec SRCS+= elf64-amd64-fbsd.c \ + efi-app-x86_64.c \ efi-app-ia32.c \ elf64.c \ elf64-gen.c \ - elf64-target.h + elf64-target.h \ + pepigen.c # peigen.c VECS= ${DEFAULT_VECTOR} \ + bfd_efi_app_x86_64_vec \ bfd_efi_app_ia32_vec \ ${I386_VECS} -CLEANFILES+= elf64-amd64-fbsd.c +CLEANFILES+= elf64-amd64-fbsd.c pepigen.c peigen.c elf64-amd64-fbsd.c: ${.CURDIR}/elf-fbsd-brand.c ${SRCDIR}/bfd/elf64-x86-64.c cat ${.ALLSRC:M*elf-fbsd-brand.c} > ${.TARGET} echo "#define elf_backend_post_process_headers elf_fbsd_post_process_headers" \ >> ${.TARGET} cat ${.ALLSRC:M*elf64-x86-64.c} >> ${.TARGET} + +pepigen.c: peXXigen.c + sed -e s/XX/pep/g ${.ALLSRC} > ${.TARGET} + +peigen.c: peXXigen.c + sed -e s/XX/pe/g ${.ALLSRC} > ${.TARGET} |