Add runtime tools and Red Bear service wiring

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-14 10:50:42 +01:00
parent fd60edc823
commit 51f3c21121
62 changed files with 9613 additions and 881 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ esac
rm -rf "${COOKBOOK_BUILD}/initfs"
mkdir -p "${COOKBOOK_BUILD}/initfs/lib/init.d"
cp "${COOKBOOK_SOURCE}/init.d"/* "${COOKBOOK_BUILD}/initfs/lib/init.d/"
cp "${COOKBOOK_SOURCE}/init.initfs.d"/* "${COOKBOOK_BUILD}/initfs/lib/init.d/"
mkdir -pv "${COOKBOOK_BUILD}/initfs/lib/pcid.d"
cp -v "${COOKBOOK_SOURCE}/drivers/initfs.toml" "${COOKBOOK_BUILD}/initfs/lib/pcid.d/initfs.toml"
+5 -1
View File
@@ -1,11 +1,12 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/base.git"
patches = ["redox.patch"]
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
for package in audiod ipcd ptyd; do
for package in audiod ipcd ptyd dhcpd; do
"${COOKBOOK_CARGO}" build \
--manifest-path "${COOKBOOK_SOURCE}/${package}/Cargo.toml" \
${build_flags}
@@ -73,4 +74,7 @@ do
driver="$(basename "$(dirname "$conf")")"
cp -v "$conf" "${COOKBOOK_STAGE}/lib/pcid.d/$driver.toml"
done
mkdir -pv "${COOKBOOK_STAGE}/usr/lib/init.d"
cp -v "${COOKBOOK_SOURCE}/init.d"/* "${COOKBOOK_STAGE}/usr/lib/init.d/"
"""
+1
View File
@@ -1,5 +1,6 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/installer.git"
patches = ["redox.patch"]
[build]
template = "cargo"
+1
View File
@@ -1,5 +1,6 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/kernel.git"
patches = ["redox.patch"]
[build]
template = "custom"
+6
View File
@@ -18,6 +18,12 @@ COOKBOOK_CONFIGURE_FLAGS+=(
--enable-static-link # This ensures loadables are not built, which will fail
)
COOKBOOK_MAKE_JOBS=1 # workaround for parallel make bugs
# mkbuiltins.c uses K&R-style empty parameter declarations (e.g. `static char *xmalloc ();`).
# GCC 15+ defaults to C23 where () means (void), breaking calls with arguments.
# Force C17 to restore the old behavior for the host-built code generator.
export CFLAGS_FOR_BUILD="-g -O2 -std=gnu17"
cookbook_configure
ln -s "bash" "${COOKBOOK_STAGE}/usr/bin/sh"
cp -r "${COOKBOOK_RECIPE}/etc" "${COOKBOOK_STAGE}/etc"
+1
View File
@@ -0,0 +1 @@
../../local/recipes/system/iommu
+1
View File
@@ -0,0 +1 @@
../../local/recipes/system/rbos-info
+1
View File
@@ -0,0 +1 @@
../../local/recipes/system/redbear-hwutils
+1
View File
@@ -0,0 +1 @@
../../local/recipes/system/redbear-netctl