Skip to content

tools/rust: Move NuttX Rust target specs into nuttx#19003

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
toku-mac:move_rust_target_specs
May 31, 2026
Merged

tools/rust: Move NuttX Rust target specs into nuttx#19003
xiaoxiang781216 merged 1 commit into
apache:masterfrom
toku-mac:move_rust_target_specs

Conversation

@toku-mac
Copy link
Copy Markdown
Contributor

Summary

Move the NuttX-specific Rust target specification files into nuttx/tools.

This keeps files with the same purpose in one place. The macOS simulator aarch64 Mach-O Rust target spec already lives in nuttx/tools, so this change adds the remaining NuttX Rust target specs there as well:

  • aarch64-unknown-nuttx.json
  • i486-unknown-nuttx.json
  • x86_64-unknown-nuttx.json

A follow-up apps change will update the Rust build helpers to reference these files from the NuttX tree instead of apps/tools.

Testing

I confirm that changes are verified on local setup and works as intended:

  • Build Host(s): OS (macOS 26.5), CPU(Apple M1), compiler(Apple clang version 21.0.0)
  • Target(s): arch(sim)
  • Ensure your PATH environment variable is properly configured to allow execution of: menuconfig, olddefconfig, savedefconfig, and setconfig.
  • Use the Rust toolchain version prior to nightly-2026-04-29 to avoid errors related to lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs.
  • Related PRs

PR verification Self-Check

  • My PR adheres to Contributing Guidelines and Documentation (git commit title and message, coding standard, etc).
  • My PR is ready for review and can be safely merged into a codebase.

Move the NuttX-specific Rust target specification files from apps/tools
to nuttx/tools so files with the same purpose are kept in one place.

The existing aarch64 Mach-O target spec for macOS simulator builds
already lives under nuttx/tools. Keeping the remaining NuttX Rust target
specs there as well makes the layout consistent and lets both Make and
CMake builds refer to target specs from the NuttX tree.

Signed-off-by: Shoji Tokunaga <toku@mac.com>
@github-actions github-actions Bot added Area: Tooling Size: M The size of the change in this PR is medium labels May 31, 2026
@lupyuen
Copy link
Copy Markdown
Member

lupyuen commented May 31, 2026

@no1wudi Could you review this PR? Thanks :-)

@xiaoxiang781216 xiaoxiang781216 merged commit 3d446bd into apache:master May 31, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Tooling Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants