From b46268e887e7e0abe4603c8f41e93c942987f213 Mon Sep 17 00:00:00 2001 From: CapCreeperGR Date: Tue, 9 Jul 2024 11:57:48 +0000 Subject: [PATCH] Added UEFI support --- pkg.info | 2 ++ source-files/grub.default | 2 +- source.sh | 12 +++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/pkg.info b/pkg.info index ae3ee74..ff95aa5 100644 --- a/pkg.info +++ b/pkg.info @@ -4,4 +4,6 @@ version: 2.12 url: https://www.gnu.org/software/grub/ license: GPL3-or-later architecture: any +keep: etc/default/grub +make_depends: efibootmgr,freetype2 type: source diff --git a/source-files/grub.default b/source-files/grub.default index c6ec71f..8376af6 100644 --- a/source-files/grub.default +++ b/source-files/grub.default @@ -1,6 +1,6 @@ GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=menu GRUB_TIMEOUT=5 -GRUB_DISTRIBUTOR="Tide Linux" +GRUB_DISTRIBUTOR="Tide" GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3" GRUB_CMDLINE_LINUX="" diff --git a/source.sh b/source.sh index e7052f2..0b37dc0 100644 --- a/source.sh +++ b/source.sh @@ -3,13 +3,19 @@ # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT DOWNLOAD="https://ftp.gnu.org/gnu/grub/grub-${BPM_PKG_VERSION}.tar.xz" +UNIFONT_VERSION=13.0.06 +DOWNLOAD_FONT="https://unifoundry.com/pub/unifont/unifont-13.0.06/font-builds/unifont-${UNIFONT_VERSION}.pcf.gz" FILENAME="${DOWNLOAD##*/}" +FILENAME_FONT="${DOWNLOAD##*/}" # The prepare function is executed in the root of the temp directory # This function is used for downloading files and putting them into the correct location prepare() { wget "$DOWNLOAD" + wget "$DOWNLOAD_FONT" -O unifont.pcf.gz tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + mkdir -p "$BPM_OUTPUT"/usr/share/fonts/unifont/ + gunzip -c unifont.pcf.gz > "$BPM_OUTPUT"/usr/share/fonts/unifont/unifont.pcf } # The build function is executed in the source directory @@ -20,7 +26,11 @@ build() { ./configure --prefix=/usr \ --sysconfdir=/etc \ --disable-efiemu \ - --disable-werror + --disable-werror \ + --disable-efiemu \ + --enable-grub-mkfont \ + --with-platform=efi \ + --target=x86_64 make }