mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Merge most initfs contents into a single base-initfs recipe
This commit is contained in:
parent
69c6dd237a
commit
af63354d2c
21
recipes/core/base-initfs/recipe.toml
Normal file
21
recipes/core/base-initfs/recipe.toml
Normal 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"
|
||||
"""
|
||||
8
recipes/core/base/recipe.toml
Normal file
8
recipes/core/base/recipe.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/base.git"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
# FIXME(bjorn3) fill in
|
||||
"""
|
||||
@ -1,5 +0,0 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/init.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
@ -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'
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/logd.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
@ -1,5 +0,0 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/ramfs.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
@ -1,5 +0,0 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/randd.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
@ -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"
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user