mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Merge branch 'base_repo_bootstrap' into 'master'
Move bootstrap into the base repo See merge request redox-os/cookbook!492
This commit is contained in:
commit
5dab2056df
@ -18,4 +18,22 @@ done
|
||||
#ln -sv zerod "${COOKBOOK_STAGE}/usr/bin/nulld"
|
||||
|
||||
cp "${COOKBOOK_STAGE}/usr/bin/zerod" "${COOKBOOK_STAGE}/usr/bin/nulld"
|
||||
|
||||
ARCH="$(echo "${GNU_TARGET}" | cut -d - -f1)"
|
||||
cargo \
|
||||
-Zbuild-std=core,alloc,compiler_builtins \
|
||||
-Zbuild-std-features=compiler-builtins-mem rustc \
|
||||
--target "${TARGET}" \
|
||||
--manifest-path "${COOKBOOK_SOURCE}/bootstrap/Cargo.toml" \
|
||||
--release \
|
||||
--target-dir "${COOKBOOK_BUILD}" \
|
||||
-- \
|
||||
--emit link="${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a"
|
||||
mkdir -v "${COOKBOOK_STAGE}/boot"
|
||||
"${GNU_TARGET}-ld" \
|
||||
-o "${COOKBOOK_STAGE}/boot/bootstrap" \
|
||||
--gc-sections \
|
||||
-T "${COOKBOOK_SOURCE}/bootstrap/src/${ARCH}.ld" \
|
||||
-z max-page-size=4096 \
|
||||
"${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a"
|
||||
"""
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/bootstrap.git"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
ARCH="$(echo "${GNU_TARGET}" | cut -d - -f1)"
|
||||
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 link="${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a"
|
||||
mkdir -v "${COOKBOOK_STAGE}/boot"
|
||||
"${GNU_TARGET}-ld" \
|
||||
-o "${COOKBOOK_STAGE}/boot/bootstrap" \
|
||||
--gc-sections \
|
||||
-T "${COOKBOOK_SOURCE}/src/${ARCH}.ld" \
|
||||
-z max-page-size=4096 \
|
||||
"${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a"
|
||||
"""
|
||||
@ -5,7 +5,6 @@ git = "https://gitlab.redox-os.org/redox-os/redox-initfs.git"
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"base-initfs",
|
||||
"bootstrap",
|
||||
"drivers-initfs",
|
||||
"redoxfs",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user