mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 09:32:27 +02:00
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>
This commit is contained in:
+5
-104
@@ -1,82 +1,26 @@
|
|||||||
# Install modules (installed, but not automatically loaded)
|
# Install modules (installed, but not automatically loaded)
|
||||||
grub_install_modules=" \
|
grub_install_modules=" \
|
||||||
adler32 \
|
|
||||||
backtrace \
|
|
||||||
bfs \
|
bfs \
|
||||||
bswap_test \
|
|
||||||
cmdline_cat_test \
|
|
||||||
cmp_test \
|
|
||||||
cpuid \
|
|
||||||
ctz_test \
|
|
||||||
div \
|
|
||||||
div_test \
|
|
||||||
dm_nv \
|
|
||||||
exfctest \
|
|
||||||
functional_test \
|
|
||||||
gdb \
|
|
||||||
geli \
|
|
||||||
gettext \
|
|
||||||
hello \
|
|
||||||
hexdump \
|
hexdump \
|
||||||
hfs \
|
hfs \
|
||||||
hfsplus \
|
hfsplus \
|
||||||
hfspluscomp \
|
|
||||||
http \
|
|
||||||
jfs \
|
jfs \
|
||||||
macbless \
|
|
||||||
macho \
|
|
||||||
mda_text \
|
|
||||||
minix \
|
minix \
|
||||||
minix2 \
|
minix2 \
|
||||||
minix2_be \
|
minix2_be \
|
||||||
minix3 \
|
minix3 \
|
||||||
minix3_be \
|
minix3_be \
|
||||||
minix_be \
|
minix_be \
|
||||||
morse \
|
|
||||||
mpi \
|
|
||||||
mul_test \
|
|
||||||
net \
|
|
||||||
newc \
|
newc \
|
||||||
nilfs2 \
|
nilfs2 \
|
||||||
odc \
|
odc \
|
||||||
offsetio \
|
|
||||||
part_acorn \
|
|
||||||
part_amiga \
|
|
||||||
part_apple \
|
|
||||||
part_dvh \
|
|
||||||
part_plan \
|
|
||||||
part_sun \
|
|
||||||
part_sunpc \
|
|
||||||
pbkdf2_test \
|
|
||||||
rdmsr \
|
|
||||||
reiserfs \
|
reiserfs \
|
||||||
setjmp_test \
|
|
||||||
shift_test \
|
|
||||||
signature_test \
|
|
||||||
sleep_test \
|
|
||||||
strtoull_test \
|
|
||||||
test_blockarg \
|
|
||||||
testload \
|
|
||||||
testspeed \
|
|
||||||
tftp \
|
|
||||||
ufs1 \
|
|
||||||
ufs1_be \
|
|
||||||
ufs2 \
|
|
||||||
usbserial_common \
|
usbserial_common \
|
||||||
usbserial_ftdi \
|
usbserial_ftdi \
|
||||||
usbserial_pl2303 \
|
usbserial_pl2303 \
|
||||||
usbserial_usbdebug \
|
usbserial_usbdebug \
|
||||||
usbtest \
|
|
||||||
video_bochs \
|
|
||||||
video_cirrus \
|
|
||||||
video_colors \
|
video_colors \
|
||||||
videoinfo \
|
|
||||||
videotest \
|
|
||||||
videotest_checksum \
|
|
||||||
wrmsr \
|
|
||||||
xnu \
|
xnu \
|
||||||
xnu_uuid \
|
|
||||||
xnu_uuid_test \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
# Modules (and always loaded)
|
# Modules (and always loaded)
|
||||||
@@ -84,52 +28,33 @@ grub_modules=" \
|
|||||||
acpi \
|
acpi \
|
||||||
affs \
|
affs \
|
||||||
afs \
|
afs \
|
||||||
afsplitter \
|
|
||||||
ahci \
|
ahci \
|
||||||
aout \
|
|
||||||
at_keyboard \
|
at_keyboard \
|
||||||
all_video \
|
all_video \
|
||||||
archelp \
|
|
||||||
ata \
|
ata \
|
||||||
bitmap \
|
bitmap \
|
||||||
bitmap_scale \
|
bitmap_scale \
|
||||||
blocklist \
|
|
||||||
boot \
|
boot \
|
||||||
bsd \
|
bsd \
|
||||||
btrfs \
|
btrfs \
|
||||||
cat \
|
|
||||||
cbfs \
|
cbfs \
|
||||||
cbls \
|
cbls \
|
||||||
cbmemc \
|
cbmemc \
|
||||||
cbtime \
|
cbtime \
|
||||||
chain \
|
chain \
|
||||||
cmosdump \
|
|
||||||
cmostest \
|
|
||||||
cmp \
|
|
||||||
configfile \
|
configfile \
|
||||||
cpio \
|
cpio \
|
||||||
cpio_be \
|
cpio_be \
|
||||||
crc64 \
|
crc64 \
|
||||||
crypto \
|
crypto \
|
||||||
cryptodisk \
|
cryptodisk \
|
||||||
cs5536 \
|
|
||||||
date \
|
|
||||||
datehook \
|
|
||||||
datetime \
|
|
||||||
disk \
|
|
||||||
diskfilter \
|
|
||||||
echo \
|
echo \
|
||||||
efiemu \
|
|
||||||
ehci \
|
ehci \
|
||||||
eval \
|
|
||||||
elf \
|
elf \
|
||||||
extcmd \
|
|
||||||
exfat \
|
exfat \
|
||||||
ext2 \
|
ext2 \
|
||||||
f2fs \
|
f2fs \
|
||||||
fat \
|
fat \
|
||||||
file \
|
|
||||||
fshelp \
|
|
||||||
gcry_arcfour \
|
gcry_arcfour \
|
||||||
gcry_blowfish \
|
gcry_blowfish \
|
||||||
gcry_camellia \
|
gcry_camellia \
|
||||||
@@ -152,26 +77,20 @@ gcry_sha512 \
|
|||||||
gcry_tiger \
|
gcry_tiger \
|
||||||
gcry_twofish \
|
gcry_twofish \
|
||||||
gcry_whirlpool \
|
gcry_whirlpool \
|
||||||
|
geli \
|
||||||
gfxmenu \
|
gfxmenu \
|
||||||
gfxterm_background \
|
gfxterm_background \
|
||||||
gfxterm_menu \
|
gfxterm_menu \
|
||||||
gptsync \
|
|
||||||
gzio \
|
gzio \
|
||||||
halt \
|
halt \
|
||||||
hashsum \
|
|
||||||
hdparm \
|
|
||||||
help \
|
help \
|
||||||
iorw \
|
iorw \
|
||||||
iso9660 \
|
iso9660 \
|
||||||
json \
|
|
||||||
jpeg \
|
jpeg \
|
||||||
json \
|
|
||||||
keylayouts \
|
keylayouts \
|
||||||
keystatus \
|
keystatus \
|
||||||
ldm \
|
|
||||||
linux \
|
linux \
|
||||||
linux16 \
|
linux16 \
|
||||||
loadenv \
|
|
||||||
loopback \
|
loopback \
|
||||||
ls \
|
ls \
|
||||||
lsacpi \
|
lsacpi \
|
||||||
@@ -189,39 +108,27 @@ memdisk \
|
|||||||
memrw \
|
memrw \
|
||||||
minicmd \
|
minicmd \
|
||||||
mmap \
|
mmap \
|
||||||
msdospart \
|
|
||||||
multiboot \
|
multiboot \
|
||||||
multiboot2 \
|
multiboot2 \
|
||||||
nativedisk \
|
nativedisk \
|
||||||
normal \
|
normal \
|
||||||
ntfs \
|
ntfs \
|
||||||
ntfscomp \
|
|
||||||
ohci \
|
ohci \
|
||||||
part_bsd \
|
part_bsd \
|
||||||
part_dfly \
|
part_dfly \
|
||||||
part_gpt \
|
part_gpt \
|
||||||
part_msdos \
|
part_msdos \
|
||||||
parttool \
|
|
||||||
password \
|
password \
|
||||||
password_pbkdf2 \
|
password_pbkdf2 \
|
||||||
pata \
|
pata \
|
||||||
pbkdf2 \
|
|
||||||
pci \
|
|
||||||
pcidump \
|
pcidump \
|
||||||
pgp \
|
pgp \
|
||||||
play \
|
|
||||||
png \
|
png \
|
||||||
priority_queue \
|
|
||||||
probe \
|
|
||||||
procfs \
|
procfs \
|
||||||
progress \
|
|
||||||
raid5rec \
|
raid5rec \
|
||||||
raid6rec \
|
raid6rec \
|
||||||
random \
|
|
||||||
read \
|
|
||||||
reboot \
|
reboot \
|
||||||
regexp \
|
regexp \
|
||||||
relocator \
|
|
||||||
romfs \
|
romfs \
|
||||||
scsi \
|
scsi \
|
||||||
search \
|
search \
|
||||||
@@ -230,24 +137,18 @@ search_fs_uuid \
|
|||||||
search_label \
|
search_label \
|
||||||
serial \
|
serial \
|
||||||
syslinuxcfg \
|
syslinuxcfg \
|
||||||
setjmp \
|
|
||||||
setpci \
|
setpci \
|
||||||
sleep \
|
|
||||||
smbios \
|
|
||||||
spkmodem \
|
spkmodem \
|
||||||
squash4 \
|
squash4 \
|
||||||
sfs \
|
sfs \
|
||||||
tar \
|
tar \
|
||||||
terminal \
|
|
||||||
terminfo \
|
|
||||||
test \
|
test \
|
||||||
time \
|
|
||||||
tga \
|
|
||||||
true \
|
true \
|
||||||
tr \
|
|
||||||
trig \
|
|
||||||
udf \
|
|
||||||
uhci \
|
uhci \
|
||||||
|
udf \
|
||||||
|
ufs1 \
|
||||||
|
ufs1_be \
|
||||||
|
ufs2 \
|
||||||
usb \
|
usb \
|
||||||
usb_keyboard \
|
usb_keyboard \
|
||||||
usbms \
|
usbms \
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ build_grub()
|
|||||||
err "build_grub: autogen.sh"
|
err "build_grub: autogen.sh"
|
||||||
./configure --with-platform=coreboot || \
|
./configure --with-platform=coreboot || \
|
||||||
err "build_grub: autoconf"
|
err "build_grub: autoconf"
|
||||||
make -j$(nproc) || \
|
make -j$(nproc) FS_PAYLOAD_MODULES="" || \
|
||||||
err "build_grub: make"
|
err "build_grub: make"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user