Skip to content

feat: add support for yocto whinlatter#232

Open
hrueger wants to merge 4 commits intorust-embedded:masterfrom
hrueger:whinlatter
Open

feat: add support for yocto whinlatter#232
hrueger wants to merge 4 commits intorust-embedded:masterfrom
hrueger:whinlatter

Conversation

@hrueger
Copy link

@hrueger hrueger commented Feb 18, 2026

This builds on top of @MrTarantoga's #228 and adds support for whinlatter.

Copilot AI review requested due to automatic review settings February 18, 2026 12:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds support for the Yocto whinlatter release, building upon PR #228 which added walnascar support. The changes handle the migration from WORKDIR to UNPACKDIR that was introduced in Yocto 5.1 (walnascar), by conditionally setting a compatibility variable based on the detected Yocto version.

Changes:

  • Added conditional version detection to set COMPATIBLE_PACKDIR to either UNPACKDIR (for walnascar/whinlatter) or WORKDIR (for earlier versions)
  • Updated all references from WORKDIR to COMPATIBLE_PACKDIR across recipe includes and build classes
  • Added walnascar and whinlatter to the layer compatibility list

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
recipes-devtools/rust/rust-bin-cross.inc Adds version detection logic and updates directory references to use COMPATIBLE_PACKDIR
recipes-devtools/rust/cargo-bin-cross.inc Adds version detection logic and updates directory references to use COMPATIBLE_PACKDIR
conf/layer.conf Adds walnascar and whinlatter to LAYERSERIES_COMPAT list
classes/cargo_bin.bbclass Adds version detection logic and updates directory references to use COMPATIBLE_PACKDIR

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

inherit rust_bin-common

python () {
layerseries = d.getVar("LAYERSERIES_COMPAT_core")
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

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

The check for layer series compatibility appears incorrect. The variable LAYERSERIES_COMPAT_core typically contains a space-separated list of all compatible layer series, not the current active series. To detect the current Yocto version, use the LAYERSERIES_CORENAMES variable instead, which contains the actual active layer series name. The check should be: layerseries = d.getVar("LAYERSERIES_CORENAMES") followed by if layerseries in ["walnascar", "whinlatter"]:

Suggested change
layerseries = d.getVar("LAYERSERIES_COMPAT_core")
layerseries = d.getVar("LAYERSERIES_CORENAMES")

Copilot uses AI. Check for mistakes.
inherit rust_bin-common

python () {
layerseries = d.getVar("LAYERSERIES_COMPAT_core")
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

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

The check for layer series compatibility appears incorrect. The variable LAYERSERIES_COMPAT_core typically contains a space-separated list of all compatible layer series, not the current active series. To detect the current Yocto version, use the LAYERSERIES_CORENAMES variable instead, which contains the actual active layer series name. The check should be: layerseries = d.getVar("LAYERSERIES_CORENAMES") followed by if layerseries in ["walnascar", "whinlatter"]:

Suggested change
layerseries = d.getVar("LAYERSERIES_COMPAT_core")
layerseries = d.getVar("LAYERSERIES_CORENAMES")

Copilot uses AI. Check for mistakes.
inherit rust_bin-common

python () {
layerseries = d.getVar("LAYERSERIES_COMPAT_core")
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

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

The check for layer series compatibility appears incorrect. The variable LAYERSERIES_COMPAT_core typically contains a space-separated list of all compatible layer series, not the current active series. To detect the current Yocto version, use the LAYERSERIES_CORENAMES variable instead, which contains the actual active layer series name. The check should be: layerseries = d.getVar("LAYERSERIES_CORENAMES") followed by if layerseries in ["walnascar", "whinlatter"]:

Suggested change
layerseries = d.getVar("LAYERSERIES_COMPAT_core")
layerseries = d.getVar("LAYERSERIES_CORENAMES")

Copilot uses AI. Check for mistakes.
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

Comments