Change io crate & add a small shell
This commit is contained in:
@@ -14,12 +14,13 @@ REAL_CP_FILES := "\
|
||||
sys/random/mod.rs \
|
||||
sys/thread_local/mod.rs"
|
||||
STD_FILES := "\
|
||||
../tests ../benches \
|
||||
alloc.rs ascii.rs backtrace.rs bstr.rs env.rs error.rs fs.rs \
|
||||
keyword_docs.rs lib.rs macros.rs panic.rs panicking.rs pat.rs \
|
||||
path.rs process.rs random.rs rt.rs tests_helpers.rs time.rs \
|
||||
backtrace collections ffi fs hash io net num os/raw/mod.rs \
|
||||
os/raw/tests.rs os/mod.rs prelude process sync sys/alloc/mod.rs \
|
||||
sys/args/unsupported.rs sys/env/mod.rs sys/env/common.rs \
|
||||
sys/args/unsupported.rs sys/args/common.rs sys/env/mod.rs sys/env/common.rs \
|
||||
sys/env/unsupported.rs sys/fd/mod.rs sys/fs/mod.rs \
|
||||
sys/fs/common.rs sys/fs/unsupported.rs sys/helpers/mod.rs \
|
||||
sys/helpers/small_c_string.rs sys/helpers/tests.rs sys/helpers/wstr.rs \
|
||||
@@ -44,7 +45,7 @@ STD_FILES := "\
|
||||
sys/thread_local/no_threads.rs sys/thread_local/os.rs sys/time/mod.rs \
|
||||
sys/time/unsupported.rs sys/backtrace.rs sys/cmath.rs \
|
||||
sys/configure_builtins.rs sys/env_consts.rs sys/exit.rs sys/mod.rs thread"
|
||||
KEEP_FILES := "survos.rs"
|
||||
KEEP_FILES := "survos.rs ffi.rs"
|
||||
|
||||
setup-std:
|
||||
@echo "🔗 Linking root directories..."
|
||||
@@ -74,7 +75,8 @@ patch-std:
|
||||
done
|
||||
|
||||
build-sysroot:
|
||||
cargo clean
|
||||
rm -rf target/riscv64/debug/deps/
|
||||
rm -rf ../target/riscv64/
|
||||
RUSTFLAGS="-Zforce-unstable-if-unmarked -C relocation-model=pic -C link-arg=-pie" \
|
||||
cargo build --package std --target ../riscv64.json --features compiler-builtins-mem
|
||||
mkdir -p ../sysroot/lib/rustlib/riscv64/lib
|
||||
|
||||
Reference in New Issue
Block a user