Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ jobs:
- name: Load sources
run: ./d download-all
- name: Run build
run: cargo run --release --bin stm32-bindings-gen
run: cargo run --release --bin stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
- name: Run package build
run: cd build/stm32-bindings && cargo build --target=thumbv8m.main-none-eabihf
3 changes: 3 additions & 0 deletions d
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ REV=8382ecbcc976ab5e91070b386700dbfd1e654275
shift

case "$CMD" in
gen)
cargo run --release stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
;;
download-all)
rm -rf ./sources/
git clone https://github.com/STMicroelectronics/STM32CubeWBA.git ./sources/ -q
Expand Down
3 changes: 3 additions & 0 deletions d.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ param (
$REV = "8382ecbcc976ab5e91070b386700dbfd1e654275"

Switch ($CMD) {
"gen" {
cargo run --release stm32-bindings-gen -- --target=thumbv8m.main-none-eabihf
}
"download-all" {
rm -r -Force ./sources/ -ErrorAction SilentlyContinue
git clone https://github.com/STMicroelectronics/STM32CubeWBA.git ./sources/
Expand Down
2 changes: 1 addition & 1 deletion stm32-bindings-gen/res/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "stm32-metapac"
name = "stm32-bindings"
version = "18.0.0"
edition = "2024"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions stm32-bindings-gen/res/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn main() {

println!(
"cargo:rustc-link-search=native={}",
crate_dir.join("src/lib").to_str().unwrap()
crate_dir.join("src").join("lib").to_str().unwrap()
);
println!("cargo:rustc-link-lib=static=wba_mac_lib");
println!("cargo:rustc-link-lib=wba_mac_lib");
}