From 85b92010deb835d27ce30ec0870cdedadf4465ec Mon Sep 17 00:00:00 2001 From: James Munns Date: Thu, 4 Dec 2025 19:24:06 +0100 Subject: Tweak how target setting is handled --- embassy-mcxa/.cargo/config.toml | 2 -- embassy-mcxa/Cargo.toml | 6 ++++++ examples/mcxa/Cargo.toml | 5 +++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 embassy-mcxa/.cargo/config.toml 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 @@ -[build] -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"] categories = ["embedded", "hardware-support", "no-std"] documentation = "https://docs.embassy.dev/embassy-mcxa" +[package.metadata.embassy] +build = [ + {target = "thumbv8m.main-none-eabihf", features = ["defmt", "time", "unstable-pac"]}, + {target = "thumbv8m.main-none-eabihf", features = ["defmt", "time", "unstable-pac"]}, +] + [dependencies] cortex-m = { version = "0.7", features = ["critical-section-single-core"] } # 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" [profile.release] lto = true # better optimizations debug = 2 # enough information for defmt/rtt locations + +[package.metadata.embassy] +build = [ + { target = "thumbv8m.main-none-eabihf", artifact-dir = "out/examples/mcxa" } +] -- cgit