Changeset View
Changeset View
Standalone View
Standalone View
stable/10/sys/boot/amd64/efi/Makefile
Show All 16 Lines | SRCS= autoload.c \ | ||||
bootinfo.c \ | bootinfo.c \ | ||||
conf.c \ | conf.c \ | ||||
copy.c \ | copy.c \ | ||||
devicename.c \ | devicename.c \ | ||||
elf64_freebsd.c \ | elf64_freebsd.c \ | ||||
framebuffer.c \ | framebuffer.c \ | ||||
main.c \ | main.c \ | ||||
reloc.c \ | reloc.c \ | ||||
smbios.c \ | |||||
vers.c | vers.c | ||||
SRCS+= amd64_tramp.S \ | SRCS+= amd64_tramp.S \ | ||||
start.S | start.S | ||||
CFLAGS+= -fPIC | CFLAGS+= -fPIC | ||||
CFLAGS+= -I. | CFLAGS+= -I. | ||||
CFLAGS+= -I${.CURDIR}/../../efi/include | CFLAGS+= -I${.CURDIR}/../../efi/include | ||||
CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_CPUARCH} | CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_CPUARCH} | ||||
CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica/include | CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica/include | ||||
CFLAGS+= -I${.CURDIR}/../../.. | CFLAGS+= -I${.CURDIR}/../../.. | ||||
CFLAGS+= -I${.CURDIR}/../../i386/libi386 | |||||
CFLAGS+= -DNO_PCI -DEFI | |||||
.if ${MK_FORTH} != "no" | .if ${MK_FORTH} != "no" | ||||
BOOT_FORTH= yes | BOOT_FORTH= yes | ||||
CFLAGS+= -DBOOT_FORTH | CFLAGS+= -DBOOT_FORTH | ||||
CFLAGS+= -I${.CURDIR}/../../ficl | CFLAGS+= -I${.CURDIR}/../../ficl | ||||
CFLAGS+= -I${.CURDIR}/../../ficl/${MACHINE_CPUARCH} | CFLAGS+= -I${.CURDIR}/../../ficl/${MACHINE_CPUARCH} | ||||
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a | LIBFICL= ${.OBJDIR}/../../ficl/libficl.a | ||||
.endif | .endif | ||||
# Include bcache code. | # Include bcache code. | ||||
HAVE_BCACHE= yes | HAVE_BCACHE= yes | ||||
.if defined(EFI_STAGING_SIZE) | .if defined(EFI_STAGING_SIZE) | ||||
CFLAGS+= -DEFI_STAGING_SIZE=${EFI_STAGING_SIZE} | CFLAGS+= -DEFI_STAGING_SIZE=${EFI_STAGING_SIZE} | ||||
.endif | .endif | ||||
# Always add MI sources | # Always add MI sources | ||||
.PATH: ${.CURDIR}/../../common | .PATH: ${.CURDIR}/../../common | ||||
# For smbios.c | |||||
.PATH: ${.CURDIR}/../../i386/libi386 | |||||
.include "${.CURDIR}/../../common/Makefile.inc" | .include "${.CURDIR}/../../common/Makefile.inc" | ||||
CFLAGS+= -I${.CURDIR}/../../common | CFLAGS+= -I${.CURDIR}/../../common | ||||
FILES= loader.efi | FILES= loader.efi | ||||
FILESMODE_loader.efi= ${BINMODE} | FILESMODE_loader.efi= ${BINMODE} | ||||
LDSCRIPT= ${.CURDIR}/ldscript.${MACHINE_CPUARCH} | LDSCRIPT= ${.CURDIR}/ldscript.${MACHINE_CPUARCH} | ||||
LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared -Wl,-znocombreloc | LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared -Wl,-znocombreloc | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |