2023-03-27 03:33:20 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
2023-05-14 23:02:49 +02:00
|
|
|
cd $(dirname $0)
|
2023-03-27 03:33:20 +02:00
|
|
|
|
2023-05-14 23:02:49 +02:00
|
|
|
export CARGO_TARGET_DIR=$(pwd)/target
|
2023-04-26 16:20:49 +02:00
|
|
|
export DEFMT_LOG=trace
|
|
|
|
|
2023-03-27 03:33:20 +02:00
|
|
|
# build examples
|
|
|
|
#==================
|
|
|
|
|
|
|
|
(cd examples/rpi-pico-w; WIFI_NETWORK=foo WIFI_PASSWORD=bar cargo build --release)
|
|
|
|
|
|
|
|
|
|
|
|
# build with log/defmt combinations
|
|
|
|
#=====================================
|
|
|
|
|
|
|
|
cargo build --target thumbv6m-none-eabi --features ''
|
|
|
|
cargo build --target thumbv6m-none-eabi --features 'log'
|
|
|
|
cargo build --target thumbv6m-none-eabi --features 'defmt'
|
|
|
|
cargo build --target thumbv6m-none-eabi --features 'log,firmware-logs'
|
|
|
|
cargo build --target thumbv6m-none-eabi --features 'defmt,firmware-logs'
|
2023-05-14 23:02:49 +02:00
|
|
|
|
|
|
|
(cd cyw43-pio; cargo build --target thumbv6m-none-eabi --features '')
|
|
|
|
(cd cyw43-pio; cargo build --target thumbv6m-none-eabi --features 'overclock')
|