Index: sys/boot/efi/loader/arch/i386/Makefile.inc =================================================================== --- /dev/null +++ sys/boot/efi/loader/arch/i386/Makefile.inc @@ -0,0 +1,11 @@ +# $FreeBSD$ + +SRCS+= start.S \ + efimd.c \ + elf32_freebsd.c \ + exec.c \ + reloc.c + +.PATH: ${.CURDIR}/../../i386/libi386 +SRCS+= nullconsole.c \ + comconsole.c Index: sys/boot/efi/loader/arch/i386/elf32_freebsd.c =================================================================== --- sys/boot/efi/loader/arch/i386/elf32_freebsd.c +++ sys/boot/efi/loader/arch/i386/elf32_freebsd.c @@ -48,6 +48,12 @@ struct file_format i386_elf = { elf32_loadfile, elf32_exec }; struct file_format i386_elf_obj = { elf32_obj_loadfile, elf32_obj_exec }; +struct file_format *file_formats[] = { + &i386_elf, + &i386_elf_obj, + NULL +}; + /* * There is an ELF kernel and one or more ELF modules loaded. * We wish to start executing the kernel image, so make such