Add build support for i386 loader.efi

Kernel changes are required for this to be useful but this will allow
others to experiment.

Differential Revision:	https://reviews.freebsd.org/D2276
This commit is contained in:
Ed Maste 2015-04-10 18:49:43 +00:00
parent dea6bf66ea
commit 5ec8fa0ee4
2 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -48,6 +48,12 @@ static int elf32_obj_exec(struct preloaded_file *amp);
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