loader: Add WITH/WITHOUT_LOADER_PXEBOOT build option

Make it possible to disable pxeboot. This loader will fail to build when
it's too large. When /boot/loader needs to be larger like that, this
options will disable a component whose build will fail. It is an explicit
option rather than implicit when things are too large to force the user to
make the explicit tradeoffs rather than wonder why they have a stale pxeboot
or other odd failure mode.

MFC After:		3 days
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D46212
This commit is contained in:
Warner Losh
2024-08-05 15:19:21 -06:00
parent 7ee781e2bf
commit 20d35d5817
4 changed files with 37 additions and 1 deletions
+1
View File
@@ -130,6 +130,7 @@ __DEFAULT_YES_OPTIONS = \
LOADER_KBOOT \
LOADER_LUA \
LOADER_OFW \
LOADER_PXEBOOT \
LOADER_UBOOT \
LOCALES \
LOCATE \