mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Merge branch 'userspace_fexec' into 'master'
Userspace fexec See merge request redox-os/cookbook!255
This commit is contained in:
commit
6c272586cb
13
recipes/bootstrap/recipe.toml
Normal file
13
recipes/bootstrap/recipe.toml
Normal file
@ -0,0 +1,13 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/bootstrap.git"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
ARCH="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
nasm -o "${COOKBOOK_BUILD}/asm.o" -f elf64 "${COOKBOOK_SOURCE}/src/${ARCH}.asm"
|
||||
cargo -Zbuild-std=core,alloc,compiler_builtins -Zbuild-std-features=compiler-builtins-mem rustc --target "${TARGET}" --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" --release --target-dir "${COOKBOOK_BUILD}" -- --emit obj="${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a"
|
||||
compiler_builtins=`find "${COOKBOOK_BUILD}/x86_64-unknown-redox/release/deps/" -name "*libcompiler_builtins*.rlib"`
|
||||
ld -o "${COOKBOOK_STAGE}/bootstrap" --gc-sections -T "${COOKBOOK_SOURCE}/src/${ARCH}.ld" "${COOKBOOK_BUILD}/asm.o" "${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a" "${COOKBOOK_SYSROOT}/lib/libc.a" "$compiler_builtins"
|
||||
"""
|
||||
dependencies = ["relibc"]
|
||||
5
recipes/escalated/recipe.toml
Normal file
5
recipes/escalated/recipe.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/escalated.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
10
recipes/relibc/recipe.toml
Normal file
10
recipes/relibc/recipe.toml
Normal file
@ -0,0 +1,10 @@
|
||||
[recipe]
|
||||
# TODO: Set git link once userspace_fexec is merged.
|
||||
#GIT=https://gitlab.redox-os.org/redox-os/relibc.git
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
cd "${COOKBOOK_SOURCE}"
|
||||
"$REDOX_MAKE" CARGO="env -u CARGO cargo" -j"$($NPROC)" DESTDIR="${COOKBOOK_STAGE}" install
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user