tce-load -i 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 echo depends bli part_gpt > grub-core/extra_deps.lst 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 CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --with-platform=efi --target=i386 --disable-werror --enable-grub-mkfont CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --target=i386 --disable-werror find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [6m 46.56s] sudo make install ******************************************************* GRUB2 will be compiled with following components: Platform: i386-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: No (cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib) 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 ******************************************************