File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
set -ex
2
2
3
3
test_gen () {
4
- cargo run -- target $TARGET -- release -- -i $td /$svd $1 > $td /src/lib.rs
4
+ target/ $TARGET / release/svd2rust -i $td /$svd $1 > $td /src/lib.rs
5
5
echo ' extern crate volatile_register;' >> $td /src/lib.rs
6
- cargo build --manifest-path $td /Cargo.toml --target $TARGET
6
+ cargo build --manifest-path $td /Cargo.toml
7
7
}
8
8
9
9
main () {
10
- cargo build --target $TARGET
11
- cargo build --target $TARGET --release
10
+ cross build --target $TARGET
11
+ cross build --target $TARGET --release
12
12
13
13
if [ ! -z $DISABLE_TESTS ]; then
14
14
return
@@ -24,7 +24,7 @@ main() {
24
24
esac
25
25
26
26
# test crate
27
- cargo init --name foo $td
27
+ cross init --name foo $td
28
28
echo ' volatile-register = "0.1.0"' >> $td /Cargo.toml
29
29
30
30
curl -L \
You can’t perform that action at this time.
0 commit comments