diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-03-20 02:11:22 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-03-20 02:38:12 +0100 |
| commit | 0b49b588a2890096f95bef2f8c6d8644acdc5401 (patch) | |
| tree | 59bfd1e3383d02d1f0cfccd6105ee23581e43e68 /ci.sh | |
| parent | b6663a013f8632cefbc6d6ab9a9aa7afbcd1314b (diff) | |
stm32: use stm32-metapac from crates.io, remove stm32-data submodule.
Diffstat (limited to 'ci.sh')
| -rwxr-xr-x | ci.sh | 20 |
1 files changed, 2 insertions, 18 deletions
| @@ -8,28 +8,12 @@ export DEFMT_LOG=trace | |||
| 8 | 8 | ||
| 9 | TARGET=$(rustc -vV | sed -n 's|host: ||p') | 9 | TARGET=$(rustc -vV | sed -n 's|host: ||p') |
| 10 | 10 | ||
| 11 | BUILD_EXTRA="" | ||
| 11 | if [ $TARGET = "x86_64-unknown-linux-gnu" ]; then | 12 | if [ $TARGET = "x86_64-unknown-linux-gnu" ]; then |
| 12 | BUILD_EXTRA="--- build --release --manifest-path examples/std/Cargo.toml --target $TARGET --out-dir out/examples/std" | 13 | BUILD_EXTRA="--- build --release --manifest-path examples/std/Cargo.toml --target $TARGET --out-dir out/examples/std" |
| 13 | else | ||
| 14 | BUILD_EXTRA="" | ||
| 15 | fi | 14 | fi |
| 16 | 15 | ||
| 17 | find . -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' -not -path '*stm32-metapac/src/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 | 16 | find . -name '*.rs' -not -path '*target*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 |
| 18 | |||
| 19 | # Generate stm32-metapac | ||
| 20 | if [ ! -d "stm32-metapac-backup" ] | ||
| 21 | then | ||
| 22 | cp -r stm32-metapac stm32-metapac-backup | ||
| 23 | fi | ||
| 24 | |||
| 25 | rm -rf stm32-metapac | ||
| 26 | cp -r stm32-metapac-backup stm32-metapac | ||
| 27 | |||
| 28 | # for some reason Cargo stomps the cache if we don't specify --target. | ||
| 29 | # This happens with vanilla Cargo, not just cargo-batch. Bug? | ||
| 30 | (cd stm32-metapac-gen; cargo run --release --target $TARGET) | ||
| 31 | rm -rf stm32-metapac | ||
| 32 | mv stm32-metapac-gen/out stm32-metapac | ||
| 33 | 17 | ||
| 34 | cargo batch \ | 18 | cargo batch \ |
| 35 | --- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly \ | 19 | --- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly \ |
