<?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>8177</bug_id>
          
          <creation_ts>2015-08-18 08:08:36 +0000</creation_ts>
          <short_desc>Do not enable CONFIG_DEBUG_KERNEL and related options by default</short_desc>
          <delta_ts>2016-03-08 21:16:42 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Laako">jussi.laako</reporter>
          <assigned_to name="California Sullivan">california.l.sullivan</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>dvhart</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>53175</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2015-08-18 08:08:36 +0000</bug_when>
    <thetext>Debug features should only be enabled when needed by the developer by using config fragment instead of enabling debug features by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53187</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-08-18 14:37:59 +0000</bug_when>
    <thetext>One of the concerns here is that in order to disable DEBUG_KERNEL you have to disable the additional config options that cause this to be selected. For example in this case DEBUG_KERNEL is selected by EXPERT which enables many options to be enabled and selectable and by de-selecting EXPERT would force those configurations to be completely disabled and not-selectable when for a given BSP they need to be enabled.

What is the reasoning behind wanting to disable DEBUG_KERNEL? Understanding the *why* would be most important for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53188</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-08-18 14:38:29 +0000</bug_when>
    <thetext>Meant to put this into NEEDINFO</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53189</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-08-18 14:38:29 +0000</bug_when>
    <thetext>Meant to put this into NEEDINFO</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53207</commentid>
    <comment_count>4</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2015-08-19 08:03:29 +0000</bug_when>
    <thetext>EMBEDDED is another option that depends on DEBUG_KERNEL. IIRC, also Atheros WiFi driver depends on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53218</commentid>
    <comment_count>5</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2015-08-19 12:02:08 +0000</bug_when>
    <thetext>This is part of requested security hardening on a project we are working on. I disabled the related items on my own Quark BSP and didn&apos;t see any major disadvantages on disabling the related options which can be easily enabled by a config fragment later when necessary.

Going vice versa and disabling options with complex dependency trees from config fragments in maintenance nightmare. Especially since the options can become silently re-enabled without a notice from build system.

So config fragments work more like a &quot;wish list&quot;, not necessarily resulting in wanted output nor any notice from the build system when not ending up in final config.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53219</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2015-08-19 12:06:03 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; This is part of requested security hardening on a project we are working on.
&gt; I disabled the related items on my own Quark BSP and didn&apos;t see any major
&gt; disadvantages on disabling the related options which can be easily enabled
&gt; by a config fragment later when necessary.
&gt; 
&gt; Going vice versa and disabling options with complex dependency trees from
&gt; config fragments in maintenance nightmare. Especially since the options can
&gt; become silently re-enabled without a notice from build system.
&gt; 
&gt; So config fragments work more like a &quot;wish list&quot;, not necessarily resulting
&gt; in wanted output nor any notice from the build system when not ending up in
&gt; final config.

That isn&apos;t accurate. The build system always audits the final .config
and writes a report.

Due to user requests in the past, it no longer breaks the build when
options are not in the final .config.

We can augment it to optionally stop the build to meet this use case, 
and display as much as possible about the dependency and selects for
an option.

But most of what you describe is already in place, or an issue no matter
how you maintain configurations.

Also note: you can take the poky-tiny approach, and start with a allnoconfig
and only enable what you want.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54030</commentid>
    <comment_count>7</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2015-09-14 16:32:16 +0000</bug_when>
    <thetext>NEEDINFO answered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54399</commentid>
    <comment_count>8</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2015-09-21 16:17:01 +0000</bug_when>
    <thetext>NEEDINFO answered.  Put it back into NEEDINFO it more information is needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57284</commentid>
    <comment_count>9</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-12-15 20:20:29 +0000</bug_when>
    <thetext>This is related to the addition of a ktype</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57601</commentid>
    <comment_count>10</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-01-06 22:23:50 +0000</bug_when>
    <thetext>Working on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58210</commentid>
    <comment_count>11</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-01-25 21:39:25 +0000</bug_when>
    <thetext>EMBEDDED, EXPERT, and DEBUG_KERNEL are to be removed from the base ktype. Instead, they will be enabled by an &quot;extended&quot; ktype which includes standard. As preempt-rt currently includes standard with a nocfg option, to maintain current functionality it will instead include the extended ktype with the nocfg option.

There are so intricacies to this since EXTENDED sets many defaults and triggers some selects, but this is is gist of what will be changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59807</commentid>
    <comment_count>12</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-03-08 21:16:42 +0000</bug_when>
    <thetext>This has been integrated into the yocto-kernel-cache and SRCREVs are staged in -next.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>