From 11ac7bc25e2b1686b61c6a27471e0aa1ddc31c9c Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 16 Mar 2024 20:12:59 +0100 Subject: [PATCH] build: update grub to 2.12 Signed-off-by: AuxXxilium --- .github/workflows/grub.yml | 4 ++-- scripts/grub.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/grub.yml b/.github/workflows/grub.yml index dd2bca5..b9a7de3 100644 --- a/.github/workflows/grub.yml +++ b/.github/workflows/grub.yml @@ -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 diff --git a/scripts/grub.sh b/scripts/grub.sh index af3bd82..0270251 100755 --- a/scripts/grub.sh +++ b/scripts/grub.sh @@ -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]}