Skip to content

Commit

Permalink
cleanup: clean up directory structure a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Dec 7, 2023
1 parent 68fbb5d commit bc863e1
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build/
*__pycache__*
firmware/litex-pac/src/*
firmware/deps/generated-litex-pac/src/*
.aider*
*.fbi
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@
[submodule "firmware/deps/riscv-rt"]
path = firmware/deps/riscv-rt
url = http://github.com/rust-embedded/riscv-rt
[submodule "firmware/deps/ssd1322"]
path = firmware/deps/ssd1322
url = [email protected]:schnommus/ssd1322.git
4 changes: 2 additions & 2 deletions firmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ FW_ROOT=`pwd`
OBJCOPY=${OBJCOPY:=riscv-none-elf-objcopy}

# Generate the Rust CSR bindings spat out by the LiteX SOC generated.
cd $FW_ROOT/litex-pac/src
cd $FW_ROOT/deps/generated-litex-pac/src
svd2rust -i $BUILD_DIR/csr.svd --target riscv

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

Expand Down
File renamed without changes.
File renamed without changes.
Empty file removed firmware/litex-pac/src/GENERATED
Empty file.
File renamed without changes.
File renamed without changes.
54 changes: 27 additions & 27 deletions firmware/litex-fw/Cargo.lock → firmware/polyvec/Cargo.lock

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

6 changes: 3 additions & 3 deletions firmware/litex-fw/Cargo.toml → firmware/polyvec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "litex-fw"
name = "polyvec"
version = "0.1.0"
edition = "2021"

Expand All @@ -17,8 +17,8 @@ path = "src/main.rs"
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }
riscv-rt = { path = "../deps/riscv-rt", features = ["single-hart"] }
litex-hal = { path = "../deps/rust-litex-hal", features = ["gpio"] }
litex-pac = { path = "../litex-pac", features = ["rt"] }
ssd1322 = { path = "../ssd1322", features = [] }
litex-pac = { path = "../deps/generated-litex-pac", features = ["rt"] }
ssd1322 = { path = "../deps/ssd1322", features = [] }
embedded-midi = { path = "../deps/embedded-midi" }
micromath = "2.0.0"
midi-types = "0.1.7"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bc863e1

Please sign in to comment.