File tree Expand file tree Collapse file tree 5 files changed +12
-4
lines changed
Expand file tree Collapse file tree 5 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 2929 - name : Load sources
3030 run : ./d download-all
3131 - name : Run build
32- run : cargo run --release --bin stm32-bindings-gen
32+ run : cargo run --release --bin stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
33+ - name : Run package build
34+ run : cd build/stm32-bindings && cargo build --target=thumbv8m.main-none-eabihf
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ REV=8382ecbcc976ab5e91070b386700dbfd1e654275
88shift
99
1010case " $CMD " in
11+ gen)
12+ cargo run --release stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
13+ ;;
1114 download-all)
1215 rm -rf ./sources/
1316 git clone https://github.com/STMicroelectronics/STM32CubeWBA.git ./sources/ -q
Original file line number Diff line number Diff line change 99$REV = " 8382ecbcc976ab5e91070b386700dbfd1e654275"
1010
1111Switch ($CMD ) {
12+ " gen" {
13+ cargo run -- release stm32- bindings- gen -- -- target= thumbv8m.main- none- eabihf
14+ }
1215 " download-all" {
1316 rm - r - Force ./ sources/ - ErrorAction SilentlyContinue
1417 git clone https:// github.com / STMicroelectronics/ STM32CubeWBA.git ./ sources/
Original file line number Diff line number Diff line change 11[package ]
2- name = " stm32-metapac "
2+ name = " stm32-bindings "
33version = " 18.0.0"
44edition = " 2024"
55license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ fn main() {
66
77 println ! (
88 "cargo:rustc-link-search=native={}" ,
9- crate_dir. join( "src/ lib" ) . to_str( ) . unwrap( )
9+ crate_dir. join( "src" ) . join ( " lib") . to_str( ) . unwrap( )
1010 ) ;
11- println ! ( "cargo:rustc-link-lib=static= wba_mac_lib" ) ;
11+ println ! ( "cargo:rustc-link-lib=wba_mac_lib" ) ;
1212}
You can’t perform that action at this time.
0 commit comments