diff options
| author | James Munns <[email protected]> | 2025-12-04 19:24:06 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-12-04 19:24:06 +0100 |
| commit | 85b92010deb835d27ce30ec0870cdedadf4465ec (patch) | |
| tree | 8a7474daa8aadad67d7b0a0f4cbd42b841b00442 | |
| parent | e7e4d0e03f6ccee7a8577058bfccefaf92b2689e (diff) | |
Tweak how target setting is handled
| -rw-r--r-- | embassy-mcxa/.cargo/config.toml | 2 | ||||
| -rw-r--r-- | embassy-mcxa/Cargo.toml | 6 | ||||
| -rw-r--r-- | examples/mcxa/Cargo.toml | 5 |
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] | ||
| 2 | target = "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"] | |||
| 9 | categories = ["embedded", "hardware-support", "no-std"] | 9 | categories = ["embedded", "hardware-support", "no-std"] |
| 10 | documentation = "https://docs.embassy.dev/embassy-mcxa" | 10 | documentation = "https://docs.embassy.dev/embassy-mcxa" |
| 11 | 11 | ||
| 12 | [package.metadata.embassy] | ||
| 13 | build = [ | ||
| 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] |
| 13 | cortex-m = { version = "0.7", features = ["critical-section-single-core"] } | 19 | cortex-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] |
| 26 | lto = true # better optimizations | 26 | lto = true # better optimizations |
| 27 | debug = 2 # enough information for defmt/rtt locations | 27 | debug = 2 # enough information for defmt/rtt locations |
| 28 | |||
| 29 | [package.metadata.embassy] | ||
| 30 | build = [ | ||
| 31 | { target = "thumbv8m.main-none-eabihf", artifact-dir = "out/examples/mcxa" } | ||
| 32 | ] | ||
