<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 3, 2016 at 9:12 AM, Robert P. J. Day <span dir="ltr">&lt;<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On Tue, 3 May 2016, Bruce Ashfield wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; On Tue, May 3, 2016 at 6:53 AM, Robert P. J. Day &lt;<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>&gt; wrote:<br>
&gt;<br>
&gt;         (actually, working in wind river linux but i suspect the answer will<br>
&gt;       be the same.)<br>
&gt;<br>
&gt;         i&#39;ve defined a target board and, rather than supplying a full<br>
&gt;       &quot;defconfig&quot; file as a starting point for kernel configuration, my BSP<br>
&gt;       layer starts by applying a &quot;kernel_baseline.cfg&quot; file which contains<br>
&gt;       only a couple hundred settings that i am particularly interested in.<br>
&gt;<br>
&gt;         so, given that, how can i tell what OE chose as a starting point for<br>
&gt;       a .config file before beginning to apply my kernel config fragments?<br>
&gt;       i&#39;m poking around in the log files of the build, but i can&#39;t seem to<br>
&gt;       see where the &quot;configme&quot; process selects a starting point. am i just<br>
&gt;       missing the obvious? i want to see the .config file *before* any of my<br>
&gt;       fragments are applied.<br>
&gt;<br>
&gt;<br>
&gt; If you haven&#39;t specified a defconfig (in-tree, or in your layer),<br>
&gt; and are only using fragments, then it will be the first fragment.<br>
&gt; There&#39;s no logic to go out and find a baseline, since it would<br>
&gt; almost always not be what someone wanted.<br>
<br>
</span>  ok, i&#39;m going to ask a few follow-up questions since i clearly don&#39;t<br>
totally understand the full kernel configuration process.<br>
<br></blockquote><div><br></div><div>That&#39;s because it varies a bit, based on the kernel and options :)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
  i have a BSP layer for a target board that first specifies a<br>
&quot;kernel_baseline.cfg&quot; fragment file which contains just those kernel<br>
config settings i want to make sure are set, and that file is just<br>
over 200 lines long. i also drag in a few other *very* short .cfg<br>
files. but in the end, the .config file generated under<br>
.../linux-windriver/4.1-r0/linux-cxii-standard-build/ is almost 2,200<br>
lines long. where did all that extra content come from?<br></blockquote><div><br></div><div><br></div><div>The .config is always the setting for all reachable kernel options. Some</div><div>are set in fragments, or defconfigs, others are the result of  &#39;select&#39; </div><div>and defaults by the kernel itself, etc.</div><div><br></div><div>If you run <span class="">save</span><span class="">defconfig, you can see the non default options that were</span></div><div><span class="">set.</span></div>







<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
  i&#39;m assuming (and i could be wrong here) that since i&#39;m using the<br>
line:<br>
<br>
TARGET_SUPPORTED_KTYPES = &quot;standard&quot;<br>
<br>
i&#39;m automatically incorporating &quot;standard&quot;-related content under<br>
.../kernel-meta/ktypes/standard? as in, the files:<br>
<br>
  * standard.cfg<br>
  * standard.scc<br>
<br>
or am i mistaken? from where comes all that additional content that<br>
ends up in the final .config?  is there a record of it in a log file<br>
somewhere?<br></blockquote><div><br></div><div>If you are not supplying a defconfig, and are inheriting the standard </div><div>kernel options, then yes, you&#39;d be getting those fragments as well.</div><div><br></div><div>You can look in the work-shared/ .. kernel-source/.kernel-meta/ directory</div><div>for the meta-series (if using linux-yocto derived kernels), and that will reference</div><div>everything that was used to configure and patch the kernel. If it isn&#39;t in there,</div><div>it was a default or select by the kernel itself.</div><div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
  couple more kernel config-related questions coming shortly ...<br>
<div class=""><div class="h5"><br>
rday<br>
<br>
--<br>
<br>
========================================================================<br>
Robert P. J. Day                                 Ottawa, Ontario, CANADA<br>
                        <a href="http://crashcourse.ca" rel="noreferrer" target="_blank">http://crashcourse.ca</a><br>
<br>
Twitter:                                       <a href="http://twitter.com/rpjday" rel="noreferrer" target="_blank">http://twitter.com/rpjday</a><br>
LinkedIn:                               <a href="http://ca.linkedin.com/in/rpjday" rel="noreferrer" target="_blank">http://ca.linkedin.com/in/rpjday</a><br>
========================================================================<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">&quot;Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end&quot;</div>
</div></div>