<?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>5785</bug_id>
          
          <creation_ts>2014-02-04 11:35:54 +0000</creation_ts>
          <short_desc>Make it possible to sync a defconfig from WORKDIR back to the metadata</short_desc>
          <delta_ts>2023-06-22 15:18:43 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>dvhart</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40173</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-04 11:35:54 +0000</bug_when>
    <thetext>It would be nice if it was possible to do the following with just configuration, and perhaps a path/variable set where to sync up to.

When I am trying to configure the Linux kernel, busybox, or u-boot, I am issuing something like this:

    bitbake -c menuconfig busybox
    find ./tmp/work -name busybox-A.B.C\*
    cp ./tmp/work/armv5te-foo-linux-gnueabi/busybox/1.20.2-r7/busybox-1.20.2/.config ../meta-foo/recipes-core/busybox/busybox-1.20.2/defconfig

As you can see, this is a bit tiresome, and more importantly: error prone!

I have had several occasions now where I forgot the third setup (or even the second) to sync up explicitly which caused us some debugging for hours by the time we realized the real issue is the omitted sync up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40208</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-02-06 15:51:04 +0000</bug_when>
    <thetext>There is a similar (not identical) bug for creating a makecfgfrag (Bug 3862). A similar thing could be created for makedefconfig. However, I don&apos;t think we want bitbake tasks to write content to the layer meta-data themselves. It could dump it in tmp/work/..deploy for easier extraction.

Alternatively, it could just copy the command to the console to make finding the fragment/.config easier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40215</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-06 17:42:23 +0000</bug_when>
    <thetext>That would still be an additional task that I would need to remember to do. In an ideal world, I do not forget it, but it would still be more error-prone than ideal.

If it is not done by bitbake, then it is fine to get it done by some other util, but I would like to solve it centrally and automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74484</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-06-22 15:42:03 +0000</bug_when>
    <thetext>devtool provides a framework for this kind of workflow and has basic support for saving the kernel config back to the recipe. devtool still needs additional enhancement for working on the kernel though (see bugs 10417, 11188) and I&apos;m not sure it covers the entirety of what&apos;s described here either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84188</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-13 15:14:28 +0000</bug_when>
    <thetext>Just to summarise this bug is about making it easier to take the final defconfig in WORKDIR and add it back to the metadata.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95809</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-06-22 15:18:43 +0000</bug_when>
    <thetext>We should open specific bugs as per Paul in comment 3 for where devtool needs to be improved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>