Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 22:12:07 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d89d0858db60 - stable/13 - stand: Make BIOS loader size limits settable
Message-ID:  <202301242212.30OMC7Wx086591@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d89d0858db605e32a0079126c756159abad09b69

commit d89d0858db605e32a0079126c756159abad09b69
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-11 16:24:58 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:31 +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
    
    (cherry picked from commit 7d72ff905770a64a22125c890438189db71104ae)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301242212.30OMC7Wx086591>