git: 7d72ff905770 - main - stand: Make BIOS loader size limits settable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Aug 2022 16:27:52 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=7d72ff905770a64a22125c890438189db71104ae
commit 7d72ff905770a64a22125c890438189db71104ae
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-11 16:24:58 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-08-11 16:27:17 +0000
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
---
stand/i386/loader/Makefile | 2 +-
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