Changeset View
Changeset View
Standalone View
Standalone View
stand/efi/loader/Makefile
Show All 16 Lines | |||||
SRCS= autoload.c \ | SRCS= autoload.c \ | ||||
bootinfo.c \ | bootinfo.c \ | ||||
conf.c \ | conf.c \ | ||||
copy.c \ | copy.c \ | ||||
efi_main.c \ | efi_main.c \ | ||||
framebuffer.c \ | framebuffer.c \ | ||||
main.c \ | main.c \ | ||||
self_reloc.c \ | self_reloc.c \ | ||||
vers.c | vers.c \ | ||||
gfx_fb.c \ | |||||
8x16.c | |||||
CFLAGS+= -I${.CURDIR}/../loader | CFLAGS+= -I${.CURDIR}/../loader | ||||
.if ${MK_LOADER_ZFS} != "no" | .if ${MK_LOADER_ZFS} != "no" | ||||
CFLAGS+= -I${ZFSSRC} | CFLAGS+= -I${ZFSSRC} | ||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include | CFLAGS+= -I${SYSDIR}/contrib/openzfs/include | ||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs | CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs | ||||
CFLAGS+= -DEFI_ZFS_BOOT | CFLAGS+= -DEFI_ZFS_BOOT | ||||
HAVE_ZFS= yes | HAVE_ZFS= yes | ||||
.endif | .endif | ||||
CFLAGS.gfx_fb.c += -I$(SRCTOP)/sys/teken | |||||
CFLAGS.gfx_fb.c += -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4 | |||||
CFLAGS.gfx_fb.c += -I${SRCTOP}/contrib/pnglite | |||||
CFLAGS.gfx_fb.c += -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib | |||||
# We implement a slightly non-standard %S in that it always takes a | # We implement a slightly non-standard %S in that it always takes a | ||||
# CHAR16 that's common in UEFI-land instead of a wchar_t. This only | # CHAR16 that's common in UEFI-land instead of a wchar_t. This only | ||||
# seems to matter on arm64 where wchar_t defaults to an int instead | # seems to matter on arm64 where wchar_t defaults to an int instead | ||||
# of a short. There's no good cast to use here so just ignore the | # of a short. There's no good cast to use here so just ignore the | ||||
# warnings for now. | # warnings for now. | ||||
CWARNFLAGS.main.c+= -Wno-format | CWARNFLAGS.main.c+= -Wno-format | ||||
.PATH: ${.CURDIR}/../loader | .PATH: ${.CURDIR}/../loader | ||||
Show All 24 Lines | |||||
CFLAGS+= -DEFI_SECUREBOOT | CFLAGS+= -DEFI_SECUREBOOT | ||||
.endif | .endif | ||||
NEWVERSWHAT= "EFI loader" ${MACHINE} | NEWVERSWHAT= "EFI loader" ${MACHINE} | ||||
VERSION_FILE= ${.CURDIR}/../loader/version | VERSION_FILE= ${.CURDIR}/../loader/version | ||||
# Always add MI sources | # Always add MI sources | ||||
.include "${BOOTSRC}/loader.mk" | .include "${BOOTSRC}/loader.mk" | ||||
CLEANFILES+= 8x16.c | |||||
8x16.c: ${SRCTOP}/contrib/terminus/ter-u16v.bdf | |||||
vtfontcvt -f compressed-source -o ${.TARGET} ${.ALLSRC} | |||||
FILES+= ${LOADER}.efi | FILES+= ${LOADER}.efi | ||||
FILESMODE_${LOADER}.efi= ${BINMODE} | FILESMODE_${LOADER}.efi= ${BINMODE} | ||||
.if ${LOADER_INTERP} == ${LOADER_DEFAULT_INTERP} | .if ${LOADER_INTERP} == ${LOADER_DEFAULT_INTERP} | ||||
LINKS+= ${BINDIR}/${LOADER}.efi ${BINDIR}/loader.efi | LINKS+= ${BINDIR}/${LOADER}.efi ${BINDIR}/loader.efi | ||||
.endif | .endif | ||||
Show All 23 Lines |