mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-24 02:16:19 +04:00
20 lines
618 B
Markdown
20 lines
618 B
Markdown
# PREREQS
|
|
You will need to install the riscv64gc target using rustup as well as cargo-binutils using cargo.
|
|
|
|
* rustup target add riscv64gc-unknown-none-elf
|
|
* cargo install cargo-binutils
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|