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
@@ -4,21 +4,7 @@
path = "source"
[build]
template = "custom"
script = """
# Build the firmware-loader daemon
COOKBOOK_CARGO_PATH=. cookbook_cargo
# Stage firmware blobs (copied by integrate-redbear.sh from local/firmware/amdgpu/)
if [ -d "${COOKBOOK_SOURCE}/firmware/amdgpu" ]; then
AMD_FW_COUNT=$(ls "${COOKBOOK_SOURCE}/firmware/amdgpu/"*.bin 2>/dev/null | wc -l)
if [ "${AMD_FW_COUNT}" -gt 0 ]; then
mkdir -p "${COOKBOOK_STAGE}/usr/lib/firmware/amdgpu"
cp "${COOKBOOK_SOURCE}/firmware/amdgpu/"*.bin "${COOKBOOK_STAGE}/usr/lib/firmware/amdgpu/"
echo "Staged ${AMD_FW_COUNT} AMD firmware blobs"
fi
fi
"""
template = "cargo"
[package.files]
"/usr/lib/drivers/firmware-loader" = "firmware-loader"
"/usr/bin/firmware-loader" = "firmware-loader"