Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Dec 12, 2024
1 parent 36ab678 commit b2b1bfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firmware/Cargo.lock

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

10 changes: 8 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/env bash
set -e
pushd firmware
cargo clean
cargo build --release
cargo objcopy --release -- -O ihex app.hex
nrfutil pkg generate --debug-mode --application app.hex app.zip
cargo objcopy --release -- -O binary watchful.bin
popd
./tools/mcuboot/imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header ./firmware/watchful.bin watchful-image.bin
adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application watchful-image.bin watchful-dfu.zip

0 comments on commit b2b1bfe

Please sign in to comment.