summaryrefslogtreecommitdiff
path: root/gen.sh
blob: 67a4372fcca11362b70cb6bd51c45f88ce7bb5de (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -euxo pipefail

(cd nrf-softdevice-gen; cargo build --release)

for s in mbr s112 s113 s122 s132 s140; do 
    ./nrf-softdevice-gen/target/release/nrf-softdevice-gen ./softdevice/$s/headers ./nrf-softdevice-$s/src/bindings.rs
    rustfmt ./nrf-softdevice-$s/src/bindings.rs
    (cd nrf-softdevice-$s; cargo build --target thumbv7em-none-eabihf)
done