Merge most initfs contents into a single base-initfs recipe

This commit is contained in:
bjorn3 2025-02-18 21:52:50 +01:00
parent 69c6dd237a
commit af63354d2c
8 changed files with 30 additions and 38 deletions

View File

@ -0,0 +1,21 @@
[source]
same_as = "../base"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
for package in init logd ramfs randd zerod; do
"${COOKBOOK_CARGO}" build \
--manifest-path "${COOKBOOK_SOURCE}/${package}/Cargo.toml" \
${build_flags}
cp -v \
"target/${TARGET}/${build_type}/${package}" \
"${COOKBOOK_STAGE}/usr/bin/${package}"
done
# TODO: symlinks aren't supported by redox-initfs
#ln -sv zerod "${COOKBOOK_STAGE}/usr/bin/nulld"
cp "${COOKBOOK_STAGE}/usr/bin/zerod" "${COOKBOOK_STAGE}/usr/bin/nulld"
"""

View File

@ -0,0 +1,8 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/base.git"
[build]
template = "custom"
script = """
# FIXME(bjorn3) fill in
"""

View File

@ -1,5 +0,0 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/init.git"
[build]
template = "cargo"

View File

@ -4,14 +4,10 @@ git = "https://gitlab.redox-os.org/redox-os/redox-initfs.git"
[build]
template = "custom"
dependencies = [
"base-initfs",
"bootstrap",
"drivers-initfs",
"init",
"logd",
"ramfs",
"randd",
"redoxfs",
"zerod",
]
script = """
INITFS_RM_BINS='redoxfs-ar redoxfs-mkfs'

View File

@ -1,5 +0,0 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/logd.git"
[build]
template = "cargo"

View File

@ -1,5 +0,0 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/ramfs.git"
[build]
template = "cargo"

View File

@ -1,5 +0,0 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/randd.git"
[build]
template = "cargo"

View File

@ -1,13 +0,0 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/zerod.git"
[build]
template = "custom"
script = """
cookbook_cargo --bin zerod
# TODO: symlinks aren't supported by redox-initfs
#ln -sv zerod "${COOKBOOK_STAGE}/usr/bin/nulld"
cp "${COOKBOOK_STAGE}/usr/bin/zerod" "${COOKBOOK_STAGE}/usr/bin/nulld"
"""