rpi-pico-blink-examples/c-with-rust/build.sh

22 lines
377 B
Bash
Raw Normal View History

2024-02-08 21:08:36 -05:00
#!/bin/bash
set -euxo pipefail
# run: rustup target add thumbv6m-none-eabi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"/rblink
CARGO_TARGET_DIR=/tmp/cargo-target cargo build --release --target thumbv6m-none-eabi
mkdir -p /tmp/8
cd /tmp/8
cmake "$SCRIPT_DIR"
make
picotool info
picotool load blink.uf2
picotool reboot