Bootmgr (Haiku): Preliminary implementation

This commit is contained in:
François Revol
2026-05-30 13:06:38 +02:00
committed by Carter Li
parent f932db713c
commit ccf4f22f8b
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -1204,7 +1204,7 @@ elseif(Haiku)
src/detection/battery/battery_haiku.c
src/detection/bios/bios_windows.c
src/detection/board/board_windows.c
src/detection/bootmgr/bootmgr_nosupport.c
src/detection/bootmgr/bootmgr_haiku.cpp
src/detection/brightness/brightness_nosupport.c
src/detection/btrfs/btrfs_nosupport.c
src/detection/chassis/chassis_windows.c
+17
View File
@@ -0,0 +1,17 @@
extern "C" {
#include "bootmgr.h"
#include "common/io.h"
}
const char* ffDetectBootmgr(FFBootmgrResult* result) {
// TODO: glob haiku_loader.* + check EFI partition
if (ffPathExists("/system/haiku_loader.bios_ia32", FF_PATHTYPE_FILE)) {
ffStrbufSetStatic(&result->firmware, "/system/haiku_loader.bios_ia32");
}
ffStrbufSetStatic(&result->name, "haiku_loader");
// TODO: detectSecureBoot(&result->secureBoot);
return NULL;
}