mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
f4762e9135
Sometimes you need / want a different boot loader than loader_lua for pkeldr. Provide an option to get either the 4th one or the simp one. MFC After: 3 days Sponsored by: Netflix Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D46213
31 lines
769 B
Makefile
31 lines
769 B
Makefile
NO_OBJ=t
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
# Almost everything else here relies on btxldr, so we must make sure it's built
|
|
# before everything else proceeds so we don't end up building against a stale
|
|
# btxldr and ending up with a build-during-install scenario.
|
|
SUBDIR.yes+= btx libi386
|
|
SUBDIR.yes+= .WAIT
|
|
|
|
SUBDIR.yes+= mbr pmbr boot0 boot0sio boot2 cdboot gptboot \
|
|
isoboot
|
|
|
|
SUBDIR.${MK_FORTH}+= loader_4th
|
|
SUBDIR.${MK_LOADER_LUA}+= loader_lua
|
|
SUBDIR.yes+= loader_simp
|
|
|
|
# special boot programs, 'self-extracting boot2+loader'
|
|
SUBDIR.${MK_LOADER_PXEBOOT}+= pxeldr
|
|
|
|
SUBDIR.${MK_LOADER_ZFS}+= zfsboot gptzfsboot
|
|
|
|
.if defined(PXEBOOT_DEFAULT_INTERP)
|
|
L=${PXEBOOT_DEFAULT_INTERP}
|
|
.else
|
|
L=${LOADER_DEFAULT_INTERP}
|
|
.endif
|
|
SUBDIR_DEPEND_pxeldr+= loader_${L}
|
|
|
|
.include <bsd.subdir.mk>
|