2021-05-18 12:56:12 +00:00
|
|
|
# Install modules (installed, but not automatically loaded)
|
|
|
|
grub_install_modules=" \
|
|
|
|
hexdump \
|
|
|
|
newc \
|
|
|
|
odc \
|
2021-12-30 06:50:53 +00:00
|
|
|
usbserial_common \
|
|
|
|
usbserial_ftdi \
|
|
|
|
usbserial_pl2303 \
|
|
|
|
usbserial_usbdebug \
|
2021-05-18 12:56:12 +00:00
|
|
|
video_colors \
|
|
|
|
"
|
|
|
|
|
|
|
|
# Modules (and always loaded)
|
|
|
|
grub_modules=" \
|
|
|
|
acpi \
|
|
|
|
ahci \
|
|
|
|
at_keyboard \
|
2021-12-30 06:50:53 +00:00
|
|
|
all_video \
|
|
|
|
ata \
|
|
|
|
bitmap \
|
|
|
|
bitmap_scale \
|
2021-05-18 12:56:12 +00:00
|
|
|
boot \
|
|
|
|
bsd \
|
|
|
|
btrfs \
|
2023-09-04 02:49:03 +00:00
|
|
|
cat \
|
2021-05-18 12:56:12 +00:00
|
|
|
cbfs \
|
|
|
|
cbls \
|
|
|
|
cbmemc \
|
|
|
|
cbtime \
|
|
|
|
chain \
|
|
|
|
configfile \
|
2021-12-30 06:50:53 +00:00
|
|
|
cpio \
|
|
|
|
cpio_be \
|
|
|
|
crc64 \
|
2021-05-18 12:56:12 +00:00
|
|
|
crypto \
|
|
|
|
cryptodisk \
|
2023-11-06 11:50:14 +00:00
|
|
|
diskfilter \
|
2021-05-18 12:56:12 +00:00
|
|
|
echo \
|
|
|
|
ehci \
|
2023-09-04 02:49:03 +00:00
|
|
|
eval \
|
2023-11-13 22:59:33 +00:00
|
|
|
exfat \
|
2021-12-30 06:50:53 +00:00
|
|
|
elf \
|
2021-05-18 12:56:12 +00:00
|
|
|
ext2 \
|
2023-11-13 22:59:33 +00:00
|
|
|
fat \
|
2023-11-06 11:41:27 +00:00
|
|
|
f2fs \
|
2021-05-18 12:56:12 +00:00
|
|
|
gcry_arcfour \
|
|
|
|
gcry_blowfish \
|
|
|
|
gcry_camellia \
|
|
|
|
gcry_cast5 \
|
|
|
|
gcry_crc \
|
|
|
|
gcry_des \
|
|
|
|
gcry_dsa \
|
|
|
|
gcry_idea \
|
|
|
|
gcry_md4 \
|
|
|
|
gcry_md5 \
|
|
|
|
gcry_rfc2268 \
|
|
|
|
gcry_rijndael \
|
|
|
|
gcry_rmd160 \
|
|
|
|
gcry_rsa \
|
|
|
|
gcry_seed \
|
|
|
|
gcry_serpent \
|
|
|
|
gcry_sha1 \
|
|
|
|
gcry_sha256 \
|
|
|
|
gcry_sha512 \
|
|
|
|
gcry_tiger \
|
|
|
|
gcry_twofish \
|
|
|
|
gcry_whirlpool \
|
Remove superfluous GRUB modules (save CBFS space)
With this change, about 54KB of compressed space is saved
inside of CBFS, on setups that use the GRUB payload.
The uncompressed saving is about 720KB, but payloads are
compressed inside each coreboot image, so the compressed
saving is much smaller. That 54KB saving means a lot,
especially on small (1MB or smaller) flash sizes.
The following modules were removed:
adler32, afsplitter, aout, archelp, backtrace, blocklist,
bswap_test, cat, cmdline_cat_test, cmosdump, cmostest, cmp,
cmp_test, cpuid, cs5536, ctz_test, date, datehook, datetime,
disk, diskfilter, div, div_test, dm_nv, efiemu, eval,
exfctest, extcmd, file, fshelp, functional_test, gdb,
gettext, gptsync, hashsum, hdparm, hello, hfspluscomp, http,
json, json, ldm, loadenv, macbless, macho, mda_text, morse,
mpi, msdospart, mul_test, net, ntfscomp, offsetio,
part_acorn, part_amiga, part_apple, part_dvh, part_plan,
part_sun, part_sunpc, parttool, pbkdf2, pbkdf2_test, pci,
play, priority_queue, probe, progress, random, rdmsr, read,
relocator, setjmp, setjmp_test, shift_test, signature_test,
sleep, sleep_test, smbios, strtoull_test, terminal,
terminfo, test_blockarg, testload, testspeed, tftp, tga,
time, tr, trig, usbtest, video_bochs, video_cirrus,
videoinfo, videotest, videotest_checksum, wrmsr, xnu_uuid,
xnu_uuid_test
These were retained, but moved to modules instead of
install modules:
geli, udf, ufs1, ufs1_be, ufs2
Signed-off-by: Leah Rowe <leah@libreboot.org>
2023-08-27 21:09:06 +00:00
|
|
|
geli \
|
2021-05-18 12:56:12 +00:00
|
|
|
gfxmenu \
|
|
|
|
gfxterm_background \
|
|
|
|
gfxterm_menu \
|
2021-12-30 06:50:53 +00:00
|
|
|
gzio \
|
2023-11-06 11:50:14 +00:00
|
|
|
hashsum \
|
2021-05-18 12:56:12 +00:00
|
|
|
halt \
|
|
|
|
help \
|
|
|
|
iorw \
|
|
|
|
iso9660 \
|
2021-12-30 06:50:53 +00:00
|
|
|
jpeg \
|
2023-11-06 11:41:27 +00:00
|
|
|
json \
|
2021-05-18 12:56:12 +00:00
|
|
|
keylayouts \
|
|
|
|
keystatus \
|
|
|
|
linux \
|
2021-12-30 06:50:53 +00:00
|
|
|
linux16 \
|
2023-11-06 11:50:14 +00:00
|
|
|
loadenv \
|
2021-05-18 12:56:12 +00:00
|
|
|
loopback \
|
|
|
|
ls \
|
|
|
|
lsacpi \
|
|
|
|
lsmmap \
|
|
|
|
lspci \
|
|
|
|
luks \
|
|
|
|
luks2 \
|
2023-08-20 11:34:55 +00:00
|
|
|
argon2 \
|
2021-05-18 12:56:12 +00:00
|
|
|
lvm \
|
2021-12-30 06:50:53 +00:00
|
|
|
lzopio \
|
2021-05-18 12:56:12 +00:00
|
|
|
mdraid09 \
|
|
|
|
mdraid09_be \
|
|
|
|
mdraid1x \
|
|
|
|
memdisk \
|
|
|
|
memrw \
|
|
|
|
minicmd \
|
2021-12-30 06:50:53 +00:00
|
|
|
mmap \
|
|
|
|
multiboot \
|
|
|
|
multiboot2 \
|
|
|
|
nativedisk \
|
2021-05-18 12:56:12 +00:00
|
|
|
normal \
|
2023-11-13 22:59:33 +00:00
|
|
|
ntfs \
|
2021-05-18 12:56:12 +00:00
|
|
|
ohci \
|
|
|
|
part_bsd \
|
|
|
|
part_dfly \
|
|
|
|
part_gpt \
|
|
|
|
part_msdos \
|
|
|
|
password \
|
|
|
|
password_pbkdf2 \
|
|
|
|
pata \
|
2023-09-04 02:49:03 +00:00
|
|
|
pbkdf2 \
|
2021-05-18 12:56:12 +00:00
|
|
|
pcidump \
|
|
|
|
pgp \
|
2023-09-06 08:32:02 +00:00
|
|
|
play \
|
2021-12-30 06:50:53 +00:00
|
|
|
png \
|
|
|
|
procfs \
|
2021-05-18 12:56:12 +00:00
|
|
|
raid5rec \
|
|
|
|
raid6rec \
|
2023-11-06 11:41:27 +00:00
|
|
|
read \
|
2021-05-18 12:56:12 +00:00
|
|
|
reboot \
|
|
|
|
regexp \
|
|
|
|
romfs \
|
2023-11-06 11:41:27 +00:00
|
|
|
scsi \
|
2021-12-30 06:50:53 +00:00
|
|
|
search \
|
|
|
|
search_fs_file \
|
|
|
|
search_fs_uuid \
|
|
|
|
search_label \
|
2021-05-18 12:56:12 +00:00
|
|
|
serial \
|
|
|
|
syslinuxcfg \
|
2023-11-06 11:50:14 +00:00
|
|
|
setjmp \
|
2021-12-30 06:50:53 +00:00
|
|
|
setpci \
|
|
|
|
spkmodem \
|
|
|
|
squash4 \
|
2023-11-06 11:41:27 +00:00
|
|
|
sleep \
|
2021-12-30 06:50:53 +00:00
|
|
|
tar \
|
2021-05-18 12:56:12 +00:00
|
|
|
test \
|
2021-12-30 06:50:53 +00:00
|
|
|
true \
|
2021-05-18 12:56:12 +00:00
|
|
|
uhci \
|
Remove superfluous GRUB modules (save CBFS space)
With this change, about 54KB of compressed space is saved
inside of CBFS, on setups that use the GRUB payload.
The uncompressed saving is about 720KB, but payloads are
compressed inside each coreboot image, so the compressed
saving is much smaller. That 54KB saving means a lot,
especially on small (1MB or smaller) flash sizes.
The following modules were removed:
adler32, afsplitter, aout, archelp, backtrace, blocklist,
bswap_test, cat, cmdline_cat_test, cmosdump, cmostest, cmp,
cmp_test, cpuid, cs5536, ctz_test, date, datehook, datetime,
disk, diskfilter, div, div_test, dm_nv, efiemu, eval,
exfctest, extcmd, file, fshelp, functional_test, gdb,
gettext, gptsync, hashsum, hdparm, hello, hfspluscomp, http,
json, json, ldm, loadenv, macbless, macho, mda_text, morse,
mpi, msdospart, mul_test, net, ntfscomp, offsetio,
part_acorn, part_amiga, part_apple, part_dvh, part_plan,
part_sun, part_sunpc, parttool, pbkdf2, pbkdf2_test, pci,
play, priority_queue, probe, progress, random, rdmsr, read,
relocator, setjmp, setjmp_test, shift_test, signature_test,
sleep, sleep_test, smbios, strtoull_test, terminal,
terminfo, test_blockarg, testload, testspeed, tftp, tga,
time, tr, trig, usbtest, video_bochs, video_cirrus,
videoinfo, videotest, videotest_checksum, wrmsr, xnu_uuid,
xnu_uuid_test
These were retained, but moved to modules instead of
install modules:
geli, udf, ufs1, ufs1_be, ufs2
Signed-off-by: Leah Rowe <leah@libreboot.org>
2023-08-27 21:09:06 +00:00
|
|
|
udf \
|
|
|
|
ufs1 \
|
|
|
|
ufs1_be \
|
|
|
|
ufs2 \
|
2021-05-18 12:56:12 +00:00
|
|
|
usb \
|
|
|
|
usb_keyboard \
|
|
|
|
usbms \
|
|
|
|
xfs \
|
2021-12-30 06:50:53 +00:00
|
|
|
xzio \
|
2021-05-18 12:56:12 +00:00
|
|
|
zfs \
|
|
|
|
zfscrypt \
|
|
|
|
zfsinfo \
|
|
|
|
zstd \
|
|
|
|
"
|