freebsd-dev/sys/boot/efi/Makefile.inc
Marcel Moolenaar e7babf043f Build a 32-bit EFI loader on amd64. This to match the rest of the
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.
2012-04-20 15:01:23 +00:00

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"