Add Justfile #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "just-add-justfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I tried creating a fancier Justfile but things weren't working so... this works :)
0ab53eb09eto670524b46f@ -0,0 +6,4 @@# TODO: Find a better way to bring in the env vars. Just can work with dotenv files but that requires manually syncing with the esp export script.twatch:source "$HOME/export-esp.sh" && cargo run --release --features=twatch -Zbuild-std="core,alloc" --target=xtensa-esp32-none-elfthe quotes around "core,alloc" are inconsistent with the command for waveshare, which one is right?
Actually they were all copies lazily from the README... It shouldn't matter but maybe let's remove the quotes for consistency.
@ -0,0 +12,4 @@source "$HOME/export-esp.sh" && cargo build --release --no-default-features --features=waveshare-c6 -Zbuild-std=core,alloc --target=riscv32imac-unknown-none-elfwaveshare: build-wavesharesource "$HOME/export-esp.sh" && cargo run --release --features=waveshare-c6 -Zbuild-std=core,alloc --target=riscv32imac-unknown-none-elfI'm not sure if waveshare needs export-esp.sh, I think that's just for xtensa.
Seems like you're right. I updated that.
@ -0,0 +18,4 @@probe-rs run --chip esp32c6 --binary-format idf --preverify target/riscv32imac-unknown-none-elf/release/rust-dumbwatchsimulate:source "$HOME/export-esp.sh" && cargo run --release --features=simulator --no-default-featuressimulate doesn't need this either.
da8b3450d4to5aac62ccbc@ -0,0 +14,4 @@waveshare: build-wavesharecargo run --release --features=waveshare-c6 -Zbuild-std=core,alloc --target=riscv32imac-unknown-none-elfprobe-waveshare:maybe add a gdb-waveshare if you want?
probe-rs gdb --chip esp32c6 target/riscv32imac-unknown-none-elf/release/rust-dumbwatchmight also want a
build-waveshare-debugthen make that a dep and switch the path fromtarget/releasetotarget/debugactually the dep should be
probe-waveshare: build-waveshare, and the depwaveshare: build-wavesharecan be removed, because that's just running cargo build before cargo run (which is unneccessary)You're right, it's not C and it's not a makefile haha...
I also added a
build-twatchsince sometimes I want to just see if it builds without running.@ -0,0 +21,4 @@cargo build --features=waveshare-c6 -Zbuild-std=core,alloc --target=riscv32imac-unknown-none-elfgdb-waveshare: build-waveshare-debugprobe-rs gdb --chip esp32c6 target/riscv32imac-unknown-none-elf/release/rust-dumbwatchpath should be debug
@ -0,0 +15,4 @@cargo run --release --features=waveshare-c6 -Zbuild-std=core,alloc --target=riscv32imac-unknown-none-elfprobe-waveshare:probe-rs run --chip esp32c6 --binary-format idf --preverify target/riscv32imac-unknown-none-elf/release/rust-dumbwatchsame here ideally
and dep for build added
@ -21,3 +20,4 @@cargo run --release --features=twatch -Zbuild-std=core,alloc --target=xtensa-esp32-none-elf```### Wavesharemight wanna update these build instructions to reference the justfile or at least mention it's existence.
2cd76d06a0to2ca23a42e9@ -0,0 +14,4 @@waveshare:cargo run --release --features=waveshare-c6 -Zbuild-std=core,alloc --target=riscv32imac-unknown-none-elfprobe-waveshare:6b4e0eaac8to5f7ca5cdbc