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:
@@ -0,0 +1,88 @@
|
||||
#TODO runtime crash
|
||||
[source]
|
||||
git = "https://github.com/jackpot51/Boxedwine"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"curl",
|
||||
"liborbital",
|
||||
"mesa",
|
||||
"mesa-glu",
|
||||
"nghttp2",
|
||||
"openssl3",
|
||||
"sdl2",
|
||||
"zlib",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
cd "${COOKBOOK_SOURCE}/project/linux"
|
||||
#TODO: USE MAKEFILE
|
||||
#TODO: USE X64 CPU CORE
|
||||
${TARGET}-gcc -std=c++17 -O2 \
|
||||
-Wall \
|
||||
-Wno-delete-incomplete \
|
||||
-Wno-unused-result \
|
||||
-Wno-unknown-pragmas \
|
||||
-Wno-unused-local-typedefs \
|
||||
-Wno-unused-variable \
|
||||
-Wno-unused-function \
|
||||
-Wno-unused-but-set-variable \
|
||||
-I "${COOKBOOK_SYSROOT}/include/SDL2" \
|
||||
-I../../include \
|
||||
-I../../lib/glew/include \
|
||||
-I../../lib/imgui \
|
||||
../../lib/imgui/imgui.cpp \
|
||||
../../lib/pugixml/src/*.cpp \
|
||||
../../lib/imgui/imgui_draw.cpp \
|
||||
../../lib/imgui/imgui_widgets.cpp \
|
||||
../../lib/imgui/examples/imgui_impl_opengl2.cpp \
|
||||
../../lib/imgui/examples/imgui_impl_sdl.cpp \
|
||||
../../lib/imgui/addon/imguitinyfiledialogs.cpp \
|
||||
../../source/sdl/*.cpp \
|
||||
../../source/sdl/singleThreaded/*.cpp \
|
||||
../../lib/glew/src/glew.cpp \
|
||||
../../source/ui/*.cpp \
|
||||
../../source/ui/controls/*.cpp \
|
||||
../../source/ui/data/*.cpp \
|
||||
../../source/ui/opengl/*.cpp \
|
||||
../../source/ui/utils/*.cpp \
|
||||
../../platform/sdl/*.cpp \
|
||||
../../platform/linux/*.cpp \
|
||||
../../source/emulation/cpu/*.cpp \
|
||||
../../source/emulation/cpu/common/*.cpp \
|
||||
../../source/emulation/cpu/normal/*.cpp \
|
||||
../../source/emulation/softmmu/*.cpp \
|
||||
../../source/io/*.cpp \
|
||||
../../source/kernel/*.cpp \
|
||||
../../source/kernel/devs/*.cpp \
|
||||
../../source/kernel/proc/*.cpp \
|
||||
../../source/kernel/sys/*.cpp \
|
||||
../../source/kernel/loader/*.cpp \
|
||||
../../source/util/*.cpp \
|
||||
../../source/opengl/sdl/*.cpp \
|
||||
../../source/opengl/*.cpp \
|
||||
../../lib/tiny-process/process.cpp \
|
||||
../../lib/tiny-process/process_unix.cpp \
|
||||
../../lib/zlib/contrib/minizip/ioapi.c \
|
||||
../../lib/zlib/contrib/minizip/mztools.c \
|
||||
../../lib/zlib/contrib/minizip/unzip.c \
|
||||
../../lib/zlib/contrib/minizip/zip.c \
|
||||
`${PKG_CONFIG} libcurl --cflags --libs` \
|
||||
`${PKG_CONFIG} sdl2 --cflags --libs` \
|
||||
-lz \
|
||||
-lstdc++ \
|
||||
"-DGLH=<SDL_opengl.h>" \
|
||||
-DBOXEDWINE_64 \
|
||||
-DBOXEDWINE_HAS_SETJMP \
|
||||
-DBOXEDWINE_OPENGL_IMGUI_V2 \
|
||||
-DBOXEDWINE_OPENGL_SDL \
|
||||
-DBOXEDWINE_POSIX \
|
||||
-DBOXEDWINE_ZLIB \
|
||||
-DGLEW_OSMESA \
|
||||
-DSDL2=1 \
|
||||
-DSIMDE_SSE2_NO_NATIVE \
|
||||
-o "${COOKBOOK_BUILD}/boxedwine"
|
||||
mkdir -p "${COOKBOOK_STAGE}/usr/bin"
|
||||
cp -v "${COOKBOOK_BUILD}/boxedwine" "${COOKBOOK_STAGE}/usr/bin/boxedwine"
|
||||
"""
|
||||
Reference in New Issue
Block a user