1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-27 20:03:32 +04:00
osblog/risc_v/BUILD.md

27 lines
820 B
Markdown
Raw Normal View History

2020-04-22 04:13:51 +04:00
# PREREQS
You will need to install the riscv64gc target using rustup as well as cargo-binutils using cargo.
2020-04-22 04:14:20 +04:00
* rustup target add riscv64gc-unknown-none-elf
* cargo install cargo-binutils
2020-04-22 04:13:51 +04:00
# BUILDING
Edit .cargo/config to match your host's configuration. The runner will execute when you type `cargo run`.
Type `cargo build` to start the build process.
Type `cargo run` to run using the runner provided in .cargo/config
2020-04-22 04:31:27 +04:00
# RELEASE BUILDS
Release builds turn on the optimizer and make it run much quicker. To run release builds, add `--release` as a parameter to cargo:
* cargo build --release
* cargo run --release
2020-04-26 22:05:50 +04:00
# HARD DRIVE FILE
To run this as I have it configured, you'll need a hard drive file called hdd.dsk in this directory. You can create an empty
one by typing the following.
* fallocate -l 32M hdd.dsk