<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15982</bug_id>
          
          <creation_ts>2025-09-27 16:19:51 +0000</creation_ts>
          <short_desc>yocto-check-layer doesn&apos;t work with multiconfig/baremetal machines</short_desc>
          <delta_ts>2026-04-16 15:26:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denys Dmytriyenko">denis</reporter>
          <assigned_to name="Denys Dmytriyenko">denis</assigned_to>
          <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102840</commentid>
    <comment_count>0</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2025-09-27 16:19:51 +0000</bug_when>
    <thetext>Complimentary to https://bugzilla.yoctoproject.org/show_bug.cgi?id=15974

Some layers, like meta-ti-bsp, define machines that enable TCLIBC=&quot;baremetal&quot; multiconfig to build a few extra components - those components run on MCU core, not the main CPU, and required for boot.

If --machine is passed to yocto-check-layer, it will try to &quot;build&quot; world (collect signatures) for all multiconfigs enabled by that machine, resulting in many failures due to world incompatibility with &quot;baremetal&quot; settings.

While some incompatibilities like kernel can be resolved/bypassed with PREFERRED_PROVIDER_virtual/kernel=&quot;linux-dummy&quot; in that multiconfig, there are still some weird dependency loops around toolchain and base tools.

Also this:
ERROR: Nothing PROVIDES &apos;newlib&apos; (but mc:k3r5:/OE/master/sources/oe-core/meta/recipes-core/newlib/libgloss_git.bb DEPENDS on or otherwise requires it)
newlib was skipped: PREFERRED_PROVIDER_virtual/libc set to musl, not newlib
ERROR: Required build target &apos;meta-world-pkgdata&apos; has no buildable providers.
Missing or unbuildable dependency chain was: [&apos;meta-world-pkgdata&apos;, &apos;libgloss&apos;, &apos;newlib&apos;]

We have previously discussed this and agreed that correcting each and every occurrence (like libgloss above) is not right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102842</commentid>
    <comment_count>1</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2025-09-27 20:09:34 +0000</bug_when>
    <thetext>BTW, in order to use linux-dummy to bypass many virtual/kernel dependencies during baremetal world signature dump (instead of adding conditions to all those dependent recipes), linux-dummy also shouldn&apos;t be restricted to Linux-only hosts by removing COMPATIBLE_HOST=&quot;.*-linux&quot; which I don&apos;t know if correct or cause any side effects.

Anyway, I&apos;ve got several additional fixes to address incompatibilities with baremetal world build - I&apos;ll try to submit an RFC series shortly for review and comments.

But I still get a dependency loop in there which I haven&apos;t been able to resolve yet - I&apos;ll post logs here later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102843</commentid>
    <comment_count>2</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2025-09-27 23:26:13 +0000</bug_when>
    <thetext>And FTR, I did try approaching kernel dependencies in baremetal world build individually, but that&apos;s not limited to virtual/kernel only, think of all the kernel-related dependencies, like makemod, different device trees and a lot of RRECOMMENDS for individual kernel modules for subsystems like networking/connectivity, buses/protocols, filesystems and HW drivers, etc. Those are sprinkled across many components, but also exist in large numbers in base/core packagegroups.

So, I&apos;m still leaning towards RFC-ing the linux-dummy shortcut...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102857</commentid>
    <comment_count>3</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2025-10-02 00:13:36 +0000</bug_when>
    <thetext>Promised RFC series:
https://patchwork.yoctoproject.org/project/oe-core/list/?series=38812</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105091</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-15 20:09:24 +0000</bug_when>
    <thetext>I think Paul updated yocto-check-layer.
Paul, Denys,
  Is this still broken?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105095</commentid>
    <comment_count>5</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2026-04-15 20:42:20 +0000</bug_when>
    <thetext>Yes, it is most certainly is. We&apos;ve been discussing this at the TSC recently. I will need to do another round of this, but right now it got broken in another place, specifically at the first use case of https://bugzilla.yoctoproject.org/show_bug.cgi?id=12688</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105113</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-16 15:26:48 +0000</bug_when>
    <thetext>Thanks Denys,

Discussed in YP bug review and I think the ball is in your court
with Paul&apos;s help if needed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>