<?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>9421</bug_id>
          
          <creation_ts>2016-04-08 01:08:28 +0000</creation_ts>
          <short_desc>kernel: add an ability to build from an existing .config</short_desc>
          <delta_ts>2016-04-14 14:48:12 +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>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</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>60953</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-04-08 01:08:28 +0000</bug_when>
    <thetext>For an end user, when he/she wants to edit the kernel config:

$ bitbake virtual/kernel -cmenuconfig

$ bitbake virutal/kernel

He has to do this again for another build or use the foo.scc and foo.cfg, the problem is foo.scc and foo.cfg is not very easy to use. If would be better if:

1) The kernel can build from an existing .config, for example, use KERNEL_DOT_CONFIG=&quot;/path/to/.config&quot; to specify the config and build it.

Or:

2) The kernel can generate a .scc and .cfg after -cmenuconfig and print a hint message on how to enable it from local.conf, .bb, or .bbappend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60957</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-04-08 05:10:26 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; For an end user, when he/she wants to edit the kernel config:
&gt; 
&gt; $ bitbake virtual/kernel -cmenuconfig
&gt; 
&gt; $ bitbake virutal/kernel
&gt; 
&gt; He has to do this again for another build or use the foo.scc and foo.cfg,
&gt; the problem is foo.scc and foo.cfg is not very easy to use. If would be
&gt; better if:
&gt; 
&gt; 1) The kernel can build from an existing .config, for example, use
&gt; KERNEL_DOT_CONFIG=&quot;/path/to/.config&quot; to specify the config and build it.

We definitely will not do this .. No more kernel configuration inputs! :)
There are already enough mechanisms and inputs in place to do
this via a defconfig.

We want fragments, not full .config&apos;s or defconfigs to be built. We 
already have the ability to do defconfigs  on the SRC_URI and to
point to an in-tree defconfig. We also have the ability to vary the
configuration mode used to process the defconfig. There&apos;s no need
to add something else and point to a .config.

If there&apos;s a but in the current support, we can tweak it, but the
building of a full .config that is outside of a kernel tree .. is not
something a proper kernel workflow should do.

&gt; 
&gt; Or:
&gt; 
&gt; 2) The kernel can generate a .scc and .cfg after -cmenuconfig and print a
&gt; hint message on how to enable it from local.conf, .bb, or .bbappend.

This is something that devtool should handle, not the kernel classes. There&apos;s
already a way to save a defconfig in the kernel classes (savedefconfig) and
within the bbclass there&apos;s little need to get much more complex to that.

To take a modified config and export fragments is a good idea, but that is
something that we&apos;ve talked about in devtool context (diffconfig), versus
the core classes. So I agree the concept has merit, but needs to be implemented
in the right place.

Needless to say. There&apos;s already kernel configuration changes planned
and in flight for 2.2, so do not start any implementation on things like
this, without discussing the design in detail with me first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61220</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-04-14 14:48:12 +0000</bug_when>
    <thetext>As there is already a way to specify a defconfig in the SRC_URI, and there are plans for updating the kernel configuration, let&apos;s revisit this with a new enhancement that is more appropriate to devtool, if that tool does not meet the requirements.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>