Added UEFI support

This commit is contained in:
CapCreeperGR
2024-07-09 11:57:48 +00:00
parent 1a8d7a1e39
commit b46268e887
3 changed files with 14 additions and 2 deletions
+2
View File
@@ -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
+1 -1
View File
@@ -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=""
+11 -1
View File
@@ -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
}