tce-load -wil compiletc lvm2-dev freetype-dev fuse-dev liblzma-dev dejavu-fonts-ttf wget https://ftp.gnu.org/gnu/grub/grub-2.12.tar.xz wget https://unifoundry.com/pub/unifont/unifont-15.1.04/font-builds/unifont-15.1.04.pcf.gz cd grub-2.12 sudo mkdir -pv /usr/local/share/fonts/unifont sudo gunzip -c ../unifont-15.1.04.pcf.gz > /usr/local/share/fonts/unifont/unifont.pcf sudo ln -s /usr/local/share/fonts /usr/share Add a file missing from the release tarball: echo depends bli part_gpt > grub-core/extra_deps.lst CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --with-platform=efi --target=x86_64 --disable-werror --enable-grub-mkfont CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --target=x86_64 --disable-werror find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [6m 36.58s, 6m 27.89s] mkdir /tmp/dest make DESTDIR=/tmp/dest install ******************************************************* GRUB2 will be compiled with following components: Platform: x86_64-efi With devmapper support: Yes With memory debugging: No With disk cache statistics: No With boot time statistics: No efiemu runtime: No (not available on efi) grub-mkfont: Yes grub-mount: Yes starfield theme: Yes With DejaVuSans font from /usr/share/fonts/dejavu/DejaVuSans.ttf With libzfs support: No (need zfs library) Build-time grub-mkfont: Yes With unifont from /usr/share/fonts/unifont/unifont.pcf With liblzma from -llzma (support for XZ-compressed mips images) With stack smashing protector: No ******************************************************* ******************************************************* GRUB2 will be compiled with following components: Platform: i386-pc With devmapper support: Yes With memory debugging: No With disk cache statistics: No With boot time statistics: No efiemu runtime: Yes grub-mkfont: Yes grub-mount: Yes starfield theme: Yes With DejaVuSans font from /usr/share/fonts/dejavu/DejaVuSans.ttf With libzfs support: No (need zfs library) Build-time grub-mkfont: Yes With unifont from /usr/share/fonts/unifont/unifont.pcf With liblzma from -llzma (support for XZ-compressed mips images) With stack smashing protector: No *******************************************************