mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-26 22:09:03 +02:00
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>
53 lines
1.4 KiB
Bash
Executable File
53 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# helper script: builds GRUB2 source code
|
|
#
|
|
# Copyright (C) 2014, 2015, 2020, 2023 Leah Rowe <info@minifree.org>
|
|
# Copyright (C) 2015, 2016 Klemens Nanni <contact@autoboot.org>
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
[ "x${DEBUG+set}" = 'xset' ] && set -v
|
|
set -u -e
|
|
|
|
. "include/err.sh"
|
|
|
|
main()
|
|
{
|
|
printf "Building GRUB\n"
|
|
[ -d "grub/" ] || ./fetch grub || err "cannot fetch grub"
|
|
build_grub
|
|
}
|
|
|
|
build_grub()
|
|
{
|
|
(
|
|
cd grub/ || \
|
|
err "build_grub: cd"
|
|
[ ! -d Makefile ] || make distclean || \
|
|
err "build_grub: make-distclean"
|
|
./bootstrap --gnulib-srcdir=gnulib/ --no-git || \
|
|
err "build_grub: gnulib bootstrap"
|
|
./autogen.sh || \
|
|
err "build_grub: autogen.sh"
|
|
./configure --with-platform=coreboot || \
|
|
err "build_grub: autoconf"
|
|
make -j$(nproc) FS_PAYLOAD_MODULES="" || \
|
|
err "build_grub: make"
|
|
)
|
|
}
|
|
|
|
main $@
|