site  contact  subhomenews

rEFInd 0.13.3.1 compiled in OE

June 19, 2022 — BarryK

EasyOS has rEFInd version 0.12.0, that was released in 2020. It required a patch to properly support ext4, as I posted about:

https://bkhome.org/news/202007/refind-patch-for-ext4-fscrypt.html

Lots of commits to the project since then, including a fix for ext4, latest version is 0.13.3.1. Here is the project page:

https://sourceforge.net/projects/refind/

So, I have compiled the latest in OpenEmbedded. The new recipe is meta-quirky/recipes-quirky/refind/refind_0.13.3.1.bb:

# Recipe created by recipetool
# recipetool create -o refind_0.13.3.1.bb https://downloads.sourceforge.net/project/refind/0.13.3.1/refind-src-0.13.3.1.tar.gz

SUMMARY = "EFI boot manager software"
HOMEPAGE = "https://sourceforge.net/projects/refind/"

LICENSE = "GPLv3 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=d32239bcb673463ab874e80d47fae504 \
file://LICENSE.txt;md5=9396e07c1572dd19fb709d14874e00ec"

SRC_URI = "https://downloads.sourceforge.net/project/refind/${PV}/refind-src-${PV}.tar.gz"

SRC_URI[md5sum] = "0463c04675bc8f312d7fa83c41959a42"
SRC_URI[sha256sum] = "7a3e3f0f81bd4ae95f24e120f44e01319231f488fef7cc8bf03a1aea23c6cfd1"

DEPENDS = "gnu-efi"

do_configure () {
true
}

do_compile () {
#oe_runmake all_gnuefi
oe_runmake gnuefi
cd filesystems
oe_runmake ext2_gnuefi
oe_runmake ext4_gnuefi
oe_runmake iso9660_gnuefi
oe_runmake btrfs_gnuefi
oe_runmake ntfs_gnuefi
cd ..
}

do_install () {
install -d ${D}/usr/share/refind/drivers_x64
install -m644 filesystems/ext2_x64.efi ${D}/usr/share/refind/drivers_x64
install -m644 filesystems/ext4_x64.efi ${D}/usr/share/refind/drivers_x64
install -m644 filesystems/iso9660_x64.efi ${D}/usr/share/refind/drivers_x64
install -m644 filesystems/btrfs_x64.efi ${D}/usr/share/refind/drivers_x64
install -m644 filesystems/ntfs_x64.efi ${D}/usr/share/refind/drivers_x64
install -m644 refind/refind_x64.efi ${D}/usr/share/refind
install -m644 gptsync/gptsync_x64.efi ${D}/usr/share/refind
}

As I have come to expect, the 'recipetool' utility only creates a basic skeleton recipe, and those compile and install steps were created by me, based on past experience with compiling refind.

I am interested to read what new features are available for the 'refind.conf' file:

https://www.rodsbooks.com/refind/configfile.html    

Tags: easy