Skip to content

Commit

Permalink
release opt-level=1 is stable for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Sep 23, 2023
1 parent 6164257 commit 2d717d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ svd2rust -i $BUILD_DIR/csr.svd --target riscv

# Build the firmware .elf file
cd $FW_ROOT/litex-fw
cargo build --target=riscv32imac-unknown-none-elf
cargo build --target=riscv32imac-unknown-none-elf --release

# Copy it into a binary that litex_term can upload.
${OBJCOPY} target/riscv32imac-unknown-none-elf/debug/litex-fw -O binary $BUILD_DIR/rust-fw.bin
${OBJCOPY} target/riscv32imac-unknown-none-elf/release/litex-fw -O binary $BUILD_DIR/rust-fw.bin
3 changes: 3 additions & 0 deletions firmware/litex-fw/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ rustflags = [

[build]
target = "riscv32imac-unknown-none-elf"

[profile.release]
opt-level = 1

0 comments on commit 2d717d7

Please sign in to comment.