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
+26
View File
@@ -0,0 +1,26 @@
[source]
tar = "https://github.com/vim/vim/archive/refs/tags/v9.1.0821.tar.gz"
blake3 = "d1f5802ceb047b09143f1764bf4016f084cf7e6c026c7047919264c9f262a5dd"
patches = ["vim.patch"]
[build]
dependencies = ["ncursesw"]
template = "custom"
script = """
DYNAMIC_INIT
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
export vim_cv_toupper_broken=no
export vim_cv_tgetent=zero
export vim_cv_terminfo=yes
export vim_cv_tty_group=world
export vim_cv_getcwd_broken=no
export vim_cv_stat_ignores_slash=yes
export vim_cv_memmove_handles_overlap=yes
COOKBOOK_CONFIGURE="./configure"
COOKBOOK_CONFIGURE_FLAGS+=(
--with-tlib=ncursesw
)
cookbook_configure
"""
+66
View File
@@ -0,0 +1,66 @@
diff -ruwN source/src/configure.ac source-new/src/configure.ac
--- source/src/configure.ac 2024-10-29 04:05:26.000000000 +0700
+++ source-new/src/configure.ac 2025-08-06 03:15:52.796303989 +0700
@@ -3759,7 +3759,7 @@
dnl Check for functions in one big call, to reduce the size of configure.
dnl Can only be used for functions that do not require any include.
AC_CHECK_FUNCS(fchdir fchown fchmod fsync getcwd getpseudotty \
- getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
+ getpwent getpwnam getpwuid gettimeofday localtime_r lstat \
memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
sigprocmask sigvec strcasecmp strcoll strerror strftime stricmp strncasecmp \
diff -ruwN source/src/feature.h source-new/src/feature.h
--- source/src/feature.h 2024-10-29 04:05:26.000000000 +0700
+++ source-new/src/feature.h 2025-08-06 03:16:27.596296730 +0700
@@ -272,6 +272,7 @@
*/
#if defined(FEAT_NORMAL) \
&& defined(FEAT_EVAL) \
+ && !defined (__redox__) /* disable setitimer */ \
&& ((defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H) \
&& (!defined(MACOS_X) || defined(HAVE_DISPATCH_DISPATCH_H))) \
|| defined(MSWIN))
diff -ruwN source/src/libvterm/include/vterm.h source-new/src/libvterm/include/vterm.h
--- source/src/libvterm/include/vterm.h 2024-10-29 04:05:26.000000000 +0700
+++ source-new/src/libvterm/include/vterm.h 2025-08-06 03:15:02.506316769 +0700
@@ -17,9 +17,11 @@
#define FALSE 0
// VIM: from stdint.h
+#if !defined (__redox__)
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
+#endif
// VIM: define max screen cols and rows
#define VTERM_MAX_COLS 1000
diff -ruwN source/src/memfile.c source-new/src/memfile.c
--- source/src/memfile.c 2024-10-29 04:05:26.000000000 +0700
+++ source-new/src/memfile.c 2025-08-06 03:15:36.896308173 +0700
@@ -599,6 +599,8 @@
// No sync() on Stratus VOS
# if defined(__OPENNT) || defined(__TANDEM) || defined(__VOS__)
fflush(NULL);
+# elif defined(__redox__)
+ fsync(mfp->mf_fd);
# else
sync();
# endif
diff -ruwN source/src/auto/configure source-new/src/auto/configure
--- source/src/auto/configure 2024-10-29 04:05:26.000000000 +0700
+++ source-new/src/auto/configure 2025-08-06 03:56:11.765660165 +0700
@@ -13358,12 +13358,6 @@
printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
fi
-ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
-if test "x$ac_cv_func_getrlimit" = xyes
-then :
- printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
-
-fi
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = xyes
then :