Skip to content

Commit

Permalink
unify riscv-rt usage, remove -g3 and add -fno-plt -fno-pic to picolib…
Browse files Browse the repository at this point in the history
…c and soc common.mak
  • Loading branch information
vk2seb committed Mar 17, 2024
1 parent 0411b8c commit 22b67fb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 72 deletions.
2 changes: 1 addition & 1 deletion deps/litex
6 changes: 3 additions & 3 deletions firmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ cargo build --target=riscv32imac-unknown-none-elf --release
# Copy it into a binary that litex_term can upload.
${OBJCOPY} target/riscv32imac-unknown-none-elf/release/polyvec_main -O binary $BUILD_DIR/rust-fw.bin

cd $FW_ROOT/polyboot
cargo build --target=riscv32imac-unknown-none-elf -vv --release
${OBJCOPY} target/riscv32imac-unknown-none-elf/release/polyboot -O binary $BUILD_DIR/bootloader.bin
#cd $FW_ROOT/polyboot
#cargo build --target=riscv32imac-unknown-none-elf -vv --release
#${OBJCOPY} target/riscv32imac-unknown-none-elf/release/polyboot -O binary $BUILD_DIR/bootloader.bin
4 changes: 2 additions & 2 deletions firmware/deps/generated-litex-pac/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ edition = "2021"

[dependencies]
critical-section = { version = "1.0", optional = true }
riscv = "0.10.1"
riscv-rt = { version = "0.11.0", optional = true }
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }
riscv-rt = { path = "../riscv-rt", features = ["single-hart"], optional = true }
vcell = "0.1.0"

[features]
Expand Down
37 changes: 4 additions & 33 deletions firmware/polyboot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 4 additions & 33 deletions firmware/polyvec/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22b67fb

Please sign in to comment.