Skip to content

Instantly share code, notes, and snippets.

@goldstar611
Created February 4, 2024 05:08
Show Gist options
  • Save goldstar611/e591800e97d35b0a6c59bf060860f5e8 to your computer and use it in GitHub Desktop.
Save goldstar611/e591800e97d35b0a6c59bf060860f5e8 to your computer and use it in GitHub Desktop.
Compiling grub2 for Intel Bay Trail devices (bootia32.efi)
# https://github.com/hirotakaster/baytail-bootia32.efi/issues/2
sudo apt install git bison libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev flex libfont-freetype-perl automake autotools-dev libfreetype6-dev texinfo
sudo apt install make autopoint pkg-config libtool
sudo apt install gawk
sudo apt purge mawk
git clone git://git.savannah.gnu.org/grub.git --depth=1
./configure --with-platform=efi --target=i386 --program-prefix=""
make
cd grub-core
mkdir -p /usr/local/share/locale
grub-mkstandalone --directory . -O i386-efi -o bootia32.efi
ls -alh bootia32.efi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment