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:
@@ -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"
|
||||
|
||||
@@ -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,5 +1,6 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/installer.git"
|
||||
patches = ["redox.patch"]
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/kernel.git"
|
||||
patches = ["redox.patch"]
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../local/recipes/system/iommu
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../local/recipes/system/rbos-info
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../local/recipes/system/redbear-hwutils
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../local/recipes/system/redbear-netctl
|
||||
Reference in New Issue
Block a user