Files
RedBear-OS/recipes/wip/wayland/wlroots/redox.patch
T
vasilito 50b731f1b7 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
2026-04-12 19:05:00 +01:00

30 lines
1.0 KiB
Diff

diff -ruwN source-old/protocol/meson.build source/protocol/meson.build
--- source-old/protocol/meson.build 2023-11-21 09:06:13.000000000 -0700
+++ source/protocol/meson.build 2025-10-30 17:22:43.903323248 -0600
@@ -5,9 +5,8 @@
)
wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
-wayland_scanner_dep = dependency('wayland-scanner', native: true)
wayland_scanner = find_program(
- wayland_scanner_dep.get_variable('wayland_scanner'),
+ 'wayland-scanner',
native: true,
)
diff -ruwN source-old/render/dmabuf.c source/render/dmabuf.c
--- source-old/render/dmabuf.c 2023-11-21 09:06:13.000000000 -0700
+++ source/render/dmabuf.c 2025-10-30 17:33:46.223683923 -0600
@@ -5,6 +5,11 @@
#include <wlr/util/log.h>
#include "render/dmabuf.h"
+#if defined(__redox__)
+//TODO: F_DUPFD_CLOEXEC needed for atomic close on exec
+#define F_DUPFD_CLOEXEC F_DUPFD
+#endif
+
void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs) {
for (int i = 0; i < attribs->n_planes; ++i) {
close(attribs->fd[i]);