Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157006827
D46214.id141876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1020 B
Referenced Files
None
Subscribers
None
D46214.id141876.diff
View Options
diff --git a/stand/i386/pxeldr/Makefile b/stand/i386/pxeldr/Makefile
--- a/stand/i386/pxeldr/Makefile
+++ b/stand/i386/pxeldr/Makefile
@@ -28,6 +28,12 @@
L=${LOADER_DEFAULT_INTERP}
.endif
LOADERBIN= ${BOOTOBJ}/i386/loader_${L}/loader_${L}.bin
+# pxeboot runs in an environment where there's 500k or less of space available
+# due to space for packet buffers, network drivers, etc. While some environments
+# may have a bit more, the limit of 500,000 (488k) provides enough margin to
+# work in a huge array of environments. Larger values may work for specific
+# environments.
+PXEBOOTSIZE?=500000
CLEANFILES+= ${BOOT}.tmp
@@ -43,6 +49,8 @@
# Note: pxeldr.S assumes a.out and will require changes for ELF if the output
# format is changed to ELF.
${LOADER}: ${LOADERBIN} ${BTXLDR} ${BTXKERN}
+ @set -- `ls -l ${LOADERBIN}` ; x=$$((${PXEBOOTSIZE}-$$5)); \
+ echo "$$x bytes available"; test $$x -ge 0
btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \
-b ${BTXKERN} ${LOADERBIN}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 10:24 PM (6 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33272257
Default Alt Text
D46214.id141876.diff (1020 B)
Attached To
Mode
D46214: pxeboot: Enforce a 500k limit here
Attached
Detach File
Event Timeline
Log In to Comment