diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-20 22:43:35 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-11-20 22:46:12 (EST) |
commit | 2909df32ac0b1cb6d6afe155232e2404ffad3f65 (patch) | |
tree | 0e8b2fff372ee519805e54873896eda89e773a0b /build | |
parent | 707cba17267a529c86f75285fdd63b0cf45ad672 (diff) | |
download | libreboot-2909df32ac0b1cb6d6afe155232e2404ffad3f65.zip libreboot-2909df32ac0b1cb6d6afe155232e2404ffad3f65.tar.gz libreboot-2909df32ac0b1cb6d6afe155232e2404ffad3f65.tar.bz2 |
Move CBFS files to GRUB memdisk, except grub.cfg and grubtest.cfg
Set the GRUB configs to use (memdisk) instead of (cbfsdisk) for
these files.
This reduces the space used in CBFS because coreboot compresses
it's payloads with LZMA by default.
Most users will only want to use cbfstool to modify the grub.cfg
or grubtest.cfg.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 48 |
1 files changed, 5 insertions, 43 deletions
@@ -19,58 +19,22 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # +set -u -e -v + # Build the ROM's # MAKE SURE THAT YOU RAN "buildall" OR "builddeps" *AT LEAST ONCE* # BEFORE RUNNING THIS! -set -u -e -v - -echo "running 'make clean' in coreboot" - -# prepare coreboot -cd coreboot - -# run "make clean" in coreboot (will re-build later) -make clean -rm -rf grub.elf - -# come back to main directory -cd ../ - -echo "finished running 'make clean' in coreboot" - -# Build the GRUB payload (ELF executable): -# ---------------------------------------------------------------------------------------------------------------------- - -echo "generating grub.elf payload" - -cd resources/utilities/grub-assemble - -# Generate grub.elf inside the directory -./gen.sh - -# Replace the old one -rm -rf ../../../coreboot/grub.elf -mv grub.elf ../../../coreboot/ - -# come back to main directory -cd ../../../ - -echo "finished generating grub.elf payload (it's now in coreboot/ directory)" - -# Build the ROM's (for flashing) -# ---------------------------------------------------------------------------------------------------------------------- - # ROM images for supported Thinkpads # (x60 also means x60s) -for board in x60 t60 x60t +for i945lenovoboard in x60 t60 x60t do # Build the ROM (with GRUB payload) - ./buildrom-withgrub $board + ./buildrom-withgrub $i945lenovoboard # These are needed for the 'bucts' workarounds on X60/T60 - cd bin/$board + cd bin/$i945lenovoboard for rom in $(find -type f) do dd if=$rom of=top64k.bin bs=1 skip=$[$(stat -c %s $rom) - 0x10000] count=64k @@ -84,7 +48,5 @@ done # build macbook21 rom ./buildrom-withgrub macbook21 -echo "BUILD COMPLETE. ROM IMAGES ARE IN ./bin/" - # ------------------- DONE ---------------------- |