site  contact  subhomenews

Limine 3.9.2 compiled in OpenEmbedded

July 02, 2022 — BarryK

EasyOS 4.2.2 has Limine 3.7.3, as I was unable to compile 3.8+ in OE:

https://github.com/limine-bootloader/limine/issues/187

However, the latest, 3.9.2, has important fixes, so had another go at compiling. One of the main Limine developers, mintsuki, informed me that 3.9.2 has fixed the bug in the snapshot here:

https://forum.puppylinux.com/viewtopic.php?p=60977#p60977

Yes, mintsuki is reading the Puppy Forum!

Here is the working recipe for OE:

# Recipe created by recipetool
# recipetool create -o limine_3.9.2.bb https://github.com/limine-bootloader/limine/releases/download/v3.9.2/limine-3.9.2.tar.gz

SUMMARY = "x86/x86_64 BIOS/UEFI bootloader"
HOMEPAGE = "https://limine-bootloader.org/"

LICENSE = "UCB & GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=566da3e4be60cd868e42cb88c9c0ddd3 \
file://stivale/LICENSE.md;md5=21e2e2557201f26b907e5694c9e179b9 \
file://libgcc-binaries/COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
file://libgcc-binaries/COPYING;md5=64305ff51f34d0aca60d187e21a09d59 \
file://libgcc-binaries/COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
file://freestanding-headers/LICENSE.md;md5=9621911223dde43748ad798e3804a3ed \
file://limine-efi/COPYING;md5=c27a4b4a954b36c8afddf7587fd749be"

SRC_URI = "https://github.com/limine-bootloader/limine/releases/download/v${PV}/limine-${PV}.tar.gz \
file://remove-ext4-encrypt-warning.patch"

SRC_URI[md5sum] = "b1f6f2e46d5d1ec4476ae3ff9df33079"
SRC_URI[sha256sum] = "546cff6c94e40c7996581b60e350b286321463bc282dabf111e0ed6d796fa6e9"

inherit autotools

DEPENDS = "mtools-native nasm-native coreutils-native"

EXTRA_OECONF = "--enable-all"

#give up rebuilding with autotools, just run existing configure script...
do_configure() {
oe_runconf
}

Great!   

Tags: easy