build: update grub to 2.12

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-03-16 20:12:59 +01:00
parent fb5544fa89
commit 11ac7bc25e
2 changed files with 4 additions and 4 deletions

View File

@ -28,11 +28,11 @@ jobs:
sudo timedatectl set-timezone "Europe/Berlin"
sudo apt update
sudo apt install -y build-essential bison flex dosfstools
sudo apt install -y build-essential bison flex dosfstools gawk gettext pkg-config autoconf automake autopoint
- name: Make Grub
run: |
. scripts/grub.sh "grub-2.06" "i386-pc i386-efi x86_64-efi"
. scripts/grub.sh "grub-2.12" "i386-pc i386-efi x86_64-efi"
- name: Upload artifact
uses: actions/upload-artifact@v3

View File

@ -6,7 +6,7 @@
# See /LICENSE for more information.
#
GRUB=${1:-"grub-2.06"}
GRUB=${1:-"grub-2.12"}
BIOS=${2:-"i386-pc i386-efi x86_64-efi"}
NAME=${3:-"ARC"}
@ -14,11 +14,11 @@ curl -#kLO https://ftp.gnu.org/gnu/grub/${GRUB}.tar.gz
tar -zxvf ${GRUB}.tar.gz
pushd ${GRUB}
echo depends bli part_gpt > grub-core/extra_deps.lst
for B in ${BIOS}; do
b=${B}
b=(${b//-/ })
echo "Make ${b[@]} ..."
mkdir -p ${B}
pushd ${B}
../configure --prefix=$PWD/usr -sbindir=$PWD/sbin --sysconfdir=$PWD/etc --disable-werror --target=${b[0]} --with-platform=${b[1]}