Files
RedBear-OS/recipes/games/openttd/recipe.toml
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

46 lines
998 B
TOML

[source]
git = "https://github.com/OpenTTD/OpenTTD.git"
#TODO: fix issues with this: branch = "release/1.8"
rev = "231402fb4bea0a0d6a16cef90764d9e7aa699c53"
shallow_clone = true
patches = ["redox.patch"]
[build]
template = "custom"
dependencies = [
"freetype2",
"liborbital",
"libpng",
"sdl1",
"xz",
"zlib",
]
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
# Unsure if the bundle dir is necessary
# Or why the installation differs
# Could be unnecessary
./configure \\
--build="$(gcc -dumpmachine)" \\
--host="${TARGET}" \\
--prefix="" \\
--enable-static \\
--without-liblzo2 \\
--disable-network \\
--without-threads
make VERBOSE=1 -j"$(nproc)"
dest="${COOKBOOK_STAGE}"
bundledir="$dest/bundle"
make VERBOSE=1 ROOT_DIR="./" BUNDLE_DIR="$bundledir" INSTALL_DIR="$dest/usr" install
rm -rf "$bundledir"
if [ -d "${COOKBOOK_STAGE}/usr/bin" ]
then
find "${COOKBOOK_STAGE}/usr/bin" -type f -exec "${TARGET}-strip" -v {} ';'
fi
"""