<?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>15424</bug_id>
          
          <creation_ts>2024-03-07 10:42:17 +0000</creation_ts>
          <short_desc>Can use fragments with no defaults if previous build had defconfig</short_desc>
          <delta_ts>2026-08-22 16:52:21 +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>kernel</component>
          <version>4.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</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 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>anis.bougrine10</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98396</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-03-07 10:42:17 +0000</bug_when>
    <thetext>If I build a kernel with a defconfig in SRC_URI and no KCONFIG_MODE set then merge_config.sh is passed -n so that it does a &apos;default=no&apos; build on the assumption that the defconfig is absolutely complete.

If I then decide to use fragments but do not clean the kernel build, do_kernel_configme() will see the defconfig still remains in the work tree and pass -n to merge_config.sh still.

This &lt;cough&gt; can result in much confusion as to why many kernel options that should be enabled by default are not when writing new fragments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98401</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2024-03-07 14:07:10 +0000</bug_when>
    <thetext>I can think of two ways to fix this off the top of my head:

a) make sure that the defconfig in workdir is listed as something that needs to be cleaned

b) if there&apos;s no in-tree defconfig specified and no defconfig in the SRC_URI that is found, ignore/delete on if located in WORKDIR.

Any preferences ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101750</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-04-24 18:54:46 +0000</bug_when>
    <thetext>Bulk move as requesting during YP BB meeting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106613</commentid>
    <comment_count>3</comment_count>
    <who name="Bougrine Anis">anis.bougrine10</who>
    <bug_when>2026-08-22 16:52:21 +0000</bug_when>
    <thetext>If I am not mistaken, this issue has been resolved thanks to this commit https://git.openembedded.org/openembedded-core/commit/?h=master-next&amp;id=86fec41b1e809d1a2fa2feadc26d29020df53d39
isn&apos;t it ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>