loader: Font module is EFI dependent

The font module is part of the gfx_fb support. Since we share this file
between EFI and kboot, we only want to pass the font data to the kernel
when we're booting from EFI, not kboot.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-02-01 18:37:12 -07:00
parent fd577b59b2
commit 784f925e50

View file

@ -386,10 +386,12 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
/* Pad to a page boundary. */
addr = roundup(addr, PAGE_SIZE);
#ifdef EFI
addr = build_font_module(addr);
/* Pad to a page boundary. */
addr = roundup(addr, PAGE_SIZE);
#endif
/* Copy our environment. */
envp = addr;