diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-08-11 16:24:58 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-08-11 16:27:17 +0000 |
commit | 7d72ff905770a64a22125c890438189db71104ae (patch) | |
tree | 3047a494f25a0b83ecf8084492071dc4283f6238 /stand/i386 | |
parent | 362322294045943703e03dee263bbc237002525c (diff) | |
download | src-7d72ff905770a64a22125c890438189db71104ae.tar.gz src-7d72ff905770a64a22125c890438189db71104ae.zip |
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
Diffstat (limited to 'stand/i386')
-rw-r--r-- | stand/i386/loader/Makefile | 2 | ||||
-rw-r--r-- | stand/i386/pxeldr/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile index cde1513aac06..8b027b2edd61 100644 --- a/stand/i386/loader/Makefile +++ b/stand/i386/loader/Makefile @@ -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 diff --git a/stand/i386/pxeldr/Makefile b/stand/i386/pxeldr/Makefile index f8bc1eae9a31..3d27285968ce 100644 --- a/stand/i386/pxeldr/Makefile +++ b/stand/i386/pxeldr/Makefile @@ -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 |