aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-12-04 19:24:06 +0100
committerJames Munns <[email protected]>2025-12-04 19:24:06 +0100
commit85b92010deb835d27ce30ec0870cdedadf4465ec (patch)
tree8a7474daa8aadad67d7b0a0f4cbd42b841b00442
parente7e4d0e03f6ccee7a8577058bfccefaf92b2689e (diff)
Tweak how target setting is handled
-rw-r--r--embassy-mcxa/.cargo/config.toml2
-rw-r--r--embassy-mcxa/Cargo.toml6
-rw-r--r--examples/mcxa/Cargo.toml5
3 files changed, 11 insertions, 2 deletions
diff --git a/embassy-mcxa/.cargo/config.toml b/embassy-mcxa/.cargo/config.toml
deleted file mode 100644
index 55dd5ea5f..000000000
--- a/embassy-mcxa/.cargo/config.toml
+++ /dev/null
@@ -1,2 +0,0 @@
1[build]
2target = "thumbv8m.main-none-eabihf" # Cortex-M33
diff --git a/embassy-mcxa/Cargo.toml b/embassy-mcxa/Cargo.toml
index 5ff6d313c..a2662f424 100644
--- a/embassy-mcxa/Cargo.toml
+++ b/embassy-mcxa/Cargo.toml
@@ -9,6 +9,12 @@ keywords = ["embedded", "hal", "nxp", "mcxa", "embassy"]
9categories = ["embedded", "hardware-support", "no-std"] 9categories = ["embedded", "hardware-support", "no-std"]
10documentation = "https://docs.embassy.dev/embassy-mcxa" 10documentation = "https://docs.embassy.dev/embassy-mcxa"
11 11
12[package.metadata.embassy]
13build = [
14 {target = "thumbv8m.main-none-eabihf", features = ["defmt", "time", "unstable-pac"]},
15 {target = "thumbv8m.main-none-eabihf", features = ["defmt", "time", "unstable-pac"]},
16]
17
12[dependencies] 18[dependencies]
13cortex-m = { version = "0.7", features = ["critical-section-single-core"] } 19cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
14# If you would like "device" to be an optional feature, please open an issue. 20# If you would like "device" to be an optional feature, please open an issue.
diff --git a/examples/mcxa/Cargo.toml b/examples/mcxa/Cargo.toml
index f02fe73e0..4d0459f41 100644
--- a/examples/mcxa/Cargo.toml
+++ b/examples/mcxa/Cargo.toml
@@ -25,3 +25,8 @@ tmp108 = "0.4.0"
25[profile.release] 25[profile.release]
26lto = true # better optimizations 26lto = true # better optimizations
27debug = 2 # enough information for defmt/rtt locations 27debug = 2 # enough information for defmt/rtt locations
28
29[package.metadata.embassy]
30build = [
31 { target = "thumbv8m.main-none-eabihf", artifact-dir = "out/examples/mcxa" }
32]