Limine compiled in OpenEmbedded
June 21, 2022 —
BarryK
I posted yesterday about the Limine bootloader:
https://bkhome.org/news/202206/limine-bootloader-for-easyos.html
Have now compiled version 3.7 in OE. The recipe
meta-quirky/recipes-quirky/limine/limine_3.7.bb:
# Recipe created by recipetool
# recipetool create -o limine_3.7.bb https://github.com/limine-bootloader/limine/releases/download/v3.7/limine-3.7.tar.gz
# PR_NUM is defined in local.conf... 20220622 recompile so bump PR...
PR = "r${@int(PR_NUM) + 1}"
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://reduced-gnu-efi/COPYING;md5=c27a4b4a954b36c8afddf7587fd749be \
file://libgcc-blobs-i386/COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
file://libgcc-blobs-i386/COPYING;md5=64305ff51f34d0aca60d187e21a09d59 \
file://libgcc-blobs-i386/COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
file://freestanding_headers/LICENSE.md;md5=9621911223dde43748ad798e3804a3ed"
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] = "5c3b69a1469d80fe24b12b1e006b1d7f"
SRC_URI[sha256sum] = "6813c61f526ae07d5d40f78eb98ac517faabea4969f01259a0de1b038da58c49"
inherit autotools
# need 'paste' in coreutils...
# dont think need gnu-efi as it is builtin to limine source... ditto zlib
DEPENDS = "gnu-efi mtools mtools-native nasm-native zlib-native zlib coreutils-native"
EXTRA_OECONF = ""
The patch, remove-ext4-encrypt-warning.patch:
diff -Naur limine-3.7ORIG/common/fs/ext2.s2.c limine-3.7/common/fs/ext2.s2.c
--- limine-3.7ORIG/common/fs/ext2.s2.c 2022-06-20 12:01:05.000000000 +0800
+++ limine-3.7/common/fs/ext2.s2.c 2022-06-21 09:12:25.533354558 +0800
@@ -329,10 +329,6 @@
return false;
}
- if (sb->s_rev_level != 0 && sb->s_feature_incompat & EXT2_IF_ENCRYPT) {
- print("ext2: WARNING: File system has encryption feature on, stuff may misbehave\n");
- }
-
if (sb->s_state == EXT2_FS_UNRECOVERABLE_ERRORS) {
print("ext2: unrecoverable errors found\n");
return false;
...the warning is unnecessary.
Tags: easy