aboutsummaryrefslogtreecommitdiff
path: root/ci.sh
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-03-20 02:11:22 +0100
committerDario Nieuwenhuis <[email protected]>2023-03-20 02:38:12 +0100
commit0b49b588a2890096f95bef2f8c6d8644acdc5401 (patch)
tree59bfd1e3383d02d1f0cfccd6105ee23581e43e68 /ci.sh
parentb6663a013f8632cefbc6d6ab9a9aa7afbcd1314b (diff)
stm32: use stm32-metapac from crates.io, remove stm32-data submodule.
Diffstat (limited to 'ci.sh')
-rwxr-xr-xci.sh20
1 files changed, 2 insertions, 18 deletions
diff --git a/ci.sh b/ci.sh
index bbcb26bdb..d86c93520 100755
--- a/ci.sh
+++ b/ci.sh
@@ -8,28 +8,12 @@ export DEFMT_LOG=trace
8 8
9TARGET=$(rustc -vV | sed -n 's|host: ||p') 9TARGET=$(rustc -vV | sed -n 's|host: ||p')
10 10
11BUILD_EXTRA=""
11if [ $TARGET = "x86_64-unknown-linux-gnu" ]; then 12if [ $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"
13else
14 BUILD_EXTRA=""
15fi 14fi
16 15
17find . -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 16find . -name '*.rs' -not -path '*target*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018
18
19# Generate stm32-metapac
20if [ ! -d "stm32-metapac-backup" ]
21then
22 cp -r stm32-metapac stm32-metapac-backup
23fi
24
25rm -rf stm32-metapac
26cp -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)
31rm -rf stm32-metapac
32mv stm32-metapac-gen/out stm32-metapac
33 17
34cargo batch \ 18cargo 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 \