e7babf043f
code that is used to construct a loader (e.g. libstand, ficl, etc). There is such a thing as a 64-bit EFI application, but it's not as standard as 32-bit is. Let's make the 32-bit functional (as in we can load and actualy boot a kernel) before solving the 64-bit loader problem.
17 lines
331 B
Makefile
17 lines
331 B
Makefile
# $FreeBSD$
|
|
|
|
BINDIR?= /boot
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
CFLAGS+= -m32 -march=i386
|
|
ACFLAGS+= -m32
|
|
LDFLAGS+= -m elf_i386_fbsd
|
|
AFLAGS+= --32
|
|
.endif
|
|
|
|
# Options used when building app-specific efi components
|
|
CFLAGS+= -ffreestanding -fshort-wchar -Wformat
|
|
LDFLAGS+= -nostdlib
|
|
|
|
.include "../Makefile.inc"
|