stand: Make BIOS loader size limits settable

It's sometimes desirable to override the size limit: It's a soft limit
and there are times we exceed the limit by just a little bit and don't
want the build to fail (or we are hitting runtime failures below the
510,000 byte limit).

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-08-11 10:24:58 -06:00
parent 3623222940
commit 7d72ff9057
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ PROG= ${LOADER}.sym
INTERNALPROG=
NEWVERSWHAT?= "bootstrap loader" x86
VERSION_FILE= ${.CURDIR}/../loader/version
LOADERSIZE= 510000 # Largest known safe size
LOADERSIZE?= 510000 # Largest known safe size
.PATH: ${BOOTSRC}/i386/loader

View File

@ -13,7 +13,7 @@ BOOT= pxeboot
LDR= pxeldr
ORG= 0x7c00
LOADER= loader
PXELDRSIZE= 510000 # Largest known safe size
PXELDRSIZE?= 510000 # Largest known safe size
.if defined(BOOT_PXELDR_PROBE_KEYBOARD)
CFLAGS+=-DPROBE_KEYBOARD