Skip to content

Commit

Permalink
loader: Change this BIOS tradeoff: Add back zip and use text only
Browse files Browse the repository at this point in the history
After talking with a number of people about the removal of some things
to make the loader fit, readjust things a little.

Add back GZIP and BZIP2 compression support. Many of the downstream MFC
packaging systems depend on this. This adds back 20k to the size of the
loader.

Make the boot loader text-only by default. This saves 40k in size. Net,
we're 20k smaller. The graphics loader for BIOS is less useful than the
zip functionality: You can still boot w/a text only one it and you can
build a custom one if you really want it. It's also the default we use
for dual console.

This should be merged back into stable/14 and stable/13 so it's in the
next release for each of these. That way we have only one release (13.4)
with the other defaults.

MFC After:		3 days
Sponsored by:		Netflix
Reviewed by:		olce, rgrimes, emaste
Differential Revision:	https://reviews.freebsd.org/D47203
  • Loading branch information
bsdimp committed Oct 25, 2024
1 parent faa9356 commit 23dee25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion share/mk/src.opts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ __DEFAULT_YES_OPTIONS = \
LLVM_ASSERTIONS \
LLVM_COV \
LLVM_CXXFILT \
LOADER_BIOS_TEXTONLY \
LOADER_GELI \
LOADER_KBOOT \
LOADER_LUA \
Expand Down Expand Up @@ -206,7 +207,6 @@ __DEFAULT_NO_OPTIONS = \
DTRACE_TESTS \
EXPERIMENTAL \
HESIOD \
LOADER_BIOS_TEXTONLY \
LOADER_VERBOSE \
LOADER_VERIEXEC_PASS_MANIFEST \
LLVM_BINUTILS \
Expand Down
4 changes: 2 additions & 2 deletions stand/i386/loader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ LOADER_CD9660_SUPPORT?= yes
LOADER_EXT2FS_SUPPORT?= no
LOADER_MSDOS_SUPPORT?= no
LOADER_UFS_SUPPORT?= yes
LOADER_GZIP_SUPPORT?= no
LOADER_BZIP2_SUPPORT?= no
LOADER_GZIP_SUPPORT?= yes
LOADER_BZIP2_SUPPORT?= yes

.include <bsd.init.mk>

Expand Down

0 comments on commit 23dee25

Please sign in to comment.