Skip to content

Add linux-armel RID support for NativeAOT, crossgen2 and apphost - #55766

Open
ashaurtaev wants to merge 1 commit into
dotnet:mainfrom
ashaurtaev:add_armel
Open

Add linux-armel RID support for NativeAOT, crossgen2 and apphost#55766
ashaurtaev wants to merge 1 commit into
dotnet:mainfrom
ashaurtaev:add_armel

Conversation

@ashaurtaev

Copy link
Copy Markdown

cc @dotnet/samsung

@MichaelSimons
MichaelSimons requested review from mthalman and removed request for MichaelSimons August 13, 2026 13:20
switch (architectureStr)
{
case "arm":
case "armel":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this simply map to Architecture.Arm will cause --target-arch:arm to be used when calling the crossgen2 tool downstream, not --target-arch:armel.

"amd64" => "x64",
"x386" => "x86",
"arm" => $"arm{(platform.variant != "v7" ? platform.variant : "")}",
"armel" => "armel",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In OCI, armel is typically represented as the following:

{
  "os": "linux",
  "architecture": "arm",
  "variant": "v5"
}

So it wouldn't match on armel. Instead this method would end up returning linux-armv5 which is not what you'd want. You would need to special-case the arm v5 architecture so that it returns armel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants