Red Bear OS — microkernel OS in Rust, based on Redox

Derivative of Redox OS (https://www.redox-os.org) adding:
- AMD GPU driver (amdgpu) via LinuxKPI compat layer
- ext4 filesystem support (ext4d scheme daemon)
- ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG)
- Custom branding (hostname, os-release, boot identity)

Build system is full upstream Redox with RBOS overlay in local/.
Patches for kernel, base, and relibc are symlinked from local/patches/
and protected from make clean/distclean. Custom recipes live in
local/recipes/ with symlinks into the recipes/ search path.

Build:  make all CONFIG_NAME=redbear-full
Sync:   ./local/scripts/sync-upstream.sh
This commit is contained in:
2026-04-12 19:05:00 +01:00
commit 50b731f1b7
3392 changed files with 98327 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
[source]
tar = "https://github.com/mgba-emu/mgba/archive/0.10.5.tar.gz"
blake3 = "a1b9e797a5058f5264d276805aef5643b7ea460916e491a0098ba32d87f1519e"
patches = ["redox.patch"]
[build]
dependencies = ["libiconv", "liborbital", "libpng", "pixman", "sdl1", "zlib"]
template = "cmake"
cmakeflags = [
"-DBUILD_QT=OFF",
"-DBUILD_SHARED=ON",
"-DBUILD_STATIC=OFF",
"-DUSE_SQLITE3=OFF",
"-DUSE_DEBUGGERS=OFF",
"-DBUILD_SDL=ON",
"-DSDL_VERSION=1.2",
"-DSDL_LIBRARY=-lSDL -lorbital",
]
+12
View File
@@ -0,0 +1,12 @@
diff -ruwN mgba-0.10.5/src/third-party/zlib/contrib/minizip/ioapi.h source/src/third-party/zlib/contrib/minizip/ioapi.h
--- mgba-0.10.5/src/third-party/zlib/contrib/minizip/ioapi.h 2025-03-08 20:09:26.000000000 -0700
+++ source/src/third-party/zlib/contrib/minizip/ioapi.h 2025-06-13 13:07:13.489517096 -0600
@@ -50,7 +50,7 @@
#define ftello64 ftell
#define fseeko64 fseek
#else
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__redox__)
#define fopen64 fopen
#define ftello64 ftello
#define fseeko64 fseeko