mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
dea6bf66ea
commit
5ec8fa0ee4
2 changed files with 17 additions and 0 deletions
11
sys/boot/efi/loader/arch/i386/Makefile.inc
Normal file
11
sys/boot/efi/loader/arch/i386/Makefile.inc
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue