From 7d72ff905770a64a22125c890438189db71104ae Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 11 Aug 2022 10:24:58 -0600 Subject: [PATCH] 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