Skip to content

rustc_target: Add OpenEmbedded/Yocto Linux base targets#157650

Open
DeepeshWR wants to merge 1 commit into
rust-lang:mainfrom
DeepeshWR:feat/yocto-targets
Open

rustc_target: Add OpenEmbedded/Yocto Linux base targets#157650
DeepeshWR wants to merge 1 commit into
rust-lang:mainfrom
DeepeshWR:feat/yocto-targets

Conversation

@DeepeshWR

Copy link
Copy Markdown
Contributor

Add built-in OpenEmbedded/Yocto Linux targets for x86_64, i686, aarch64, armv7, and riscv64.

These targets inherit from the corresponding upstream Linux GNU targets and provide OpenEmbedded-specific target triples and default linker settings. They are intended to serve as base targets for downstream Yocto/OpenEmbedded-generated targets, allowing vendor-specific targets to override metadata (for example, TARGET_VENDOR) while reusing a common target configuration.

This reduces duplication in Yocto-based Rust integrations and avoids maintaining downstream copies of largely identical target specifications.

r? @davidtwco

@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

These commits modify compiler targets.
(See the Target Tier Policy.)

Some changes occurred in src/doc/rustc/src/platform-support

cc @Noratrieb

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 9, 2026
@Noratrieb

Copy link
Copy Markdown
Member

can you elaborate a bit more on what this is useful for?

avoids maintaining downstream copies of largely identical target specifications.

I don't understand this part, basically nothing about those targets here is copied as they seem to basically be identical.

@davidtwco

Copy link
Copy Markdown
Member

can you elaborate a bit more on what this is useful for?

avoids maintaining downstream copies of largely identical target specifications.

I don't understand this part, basically nothing about those targets here is copied as they seem to basically be identical.

There's some context here - #yocto > custom targets @ 💬

@rust-log-analyzer

This comment has been minimized.

Add built-in OpenEmbedded/Yocto Linux targets for x86_64, i686,
aarch64, armv7, and riscv64.

These targets inherit from the corresponding upstream Linux GNU
targets and provide OpenEmbedded-specific target triples and
default linker settings. They are intended to serve as base
targets for downstream Yocto/OpenEmbedded-generated targets,
allowing vendor-specific targets to override metadata (for
example, TARGET_VENDOR) while reusing a common target
configuration.

This reduces duplication in Yocto-based Rust integrations and
avoids maintaining downstream copies of largely identical target
specifications.

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
@DeepeshWR DeepeshWR force-pushed the feat/yocto-targets branch from 502a11c to 8b216da Compare June 9, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants