aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/loader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stand/efi/loader/Makefile')
-rw-r--r--stand/efi/loader/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/stand/efi/loader/Makefile b/stand/efi/loader/Makefile
index a0e7f95b8200..3cf2df933cc3 100644
--- a/stand/efi/loader/Makefile
+++ b/stand/efi/loader/Makefile
@@ -22,7 +22,9 @@ SRCS= autoload.c \
framebuffer.c \
main.c \
self_reloc.c \
- vers.c
+ vers.c \
+ gfx_fb.c \
+ 8x16.c
CFLAGS+= -I${.CURDIR}/../loader
.if ${MK_LOADER_ZFS} != "no"
@@ -33,6 +35,11 @@ CFLAGS+= -DEFI_ZFS_BOOT
HAVE_ZFS= yes
.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
# 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
@@ -74,6 +81,11 @@ VERSION_FILE= ${.CURDIR}/../loader/version
# Always add MI sources
.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
FILESMODE_${LOADER}.efi= ${BINMODE}