bbconfig.h: Yes, it seems to be a different file that is not generated by scripts/mkconfigs.  include/config/bbconfig.h looks to be only a single line, and it does not have quotes or "\n" in the file like include/bbconfigopts.h.  Whether built with dash or bash using the unmodified mkconfigs, both include/config/bbconfig.h files look like this:
<br><br>#define CONFIG_BBCONFIG 1<br><br>I don&#39;t think scripts/mkconfigs generates include/config/bbconfig.h, I think it only generates bbconfigopts.h, despite the comment in the header.&nbsp; The main evidence for this is that the include define for the .h file it generates is always &quot;_BBCONFIGOPTS_H&quot;, and is always generated.&nbsp; include/config/bbconfig.h does not contain any of the text that is always generated.&nbsp; 
<br><br>To be honest, though, I am not sure what IS generating the include/config/bbconfig.h file.&nbsp; Some quick greps through the source tree do not turn anything up, but I know that this file gets replaced with a #undef CONFIG_BBCONFIG when that option is turned off.
<br><br>I could also clean up the comments and submit another patch if you are interested.&nbsp; There is another error in the comments where it refers to scripts/config/mkconfigs instead of scripts/mkconfigs, which is propogated to the generated 
bbconfigopts.h.<br><br>ash:&nbsp; I just tested with ash.&nbsp; The unmodified version does work with the bbox ash.&nbsp; The unmodified version also works with bash, in case that wasn&#39;t clear from my other email.&nbsp; The modified version also works with ash, bash, and dash.
<br><br>I agree, presumably there was a reason.&nbsp; Maybe someone can shed some light.&nbsp; I will share some of my thoughts.<br><br>It might be that the reason for using the echo &quot;` ... `&quot; construction is simply to make the script look nicer, since the other lines in the script are all echo statements.&nbsp; 
<br><br>The only difference that I see using an echo &quot;` ... `&quot; versus direct execution of the command is that the echo statement could process escape characters from the output of the backquote command.&nbsp;&nbsp; If it isn&#39;t the intent to process escape characters, then it seems like it might as well execute the command directly.&nbsp; In this case, the echo command of &quot;dash&quot; IS processing the escape characters, and this causes a problem, so it&nbsp; certainly doesn&#39;t seem like the intent is to use echo to process escape characters (which seems like a dubious intent, anyway.)
<br><br>The mkconfigs script appears to be simple.&nbsp; As the comments state, it is pulling lines from .config which start with &quot;CONFIG_&quot; or &quot;# CONFIG_&quot;, replacing &quot; with \&quot;, and prints each line as &quot;&lt;string&gt;\n&quot;.
<br><br><br><div><span class="gmail_quote">On 2/3/07, 
<b class="gmail_sendername">
Denis Vlasenko</b> &lt;<a href="mailto:vda.linux@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vda.linux@googlemail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


On Saturday 03 February 2007 06:14, Brion Finlay wrote:<br>&gt; Thanks for the responses.&nbsp;&nbsp;It helped knowing that my gnu compiler/c library<br>&gt; configuration was correct.&nbsp;&nbsp;It also helped knowing what the<br>&gt; bbconfigopts.hwas


 supposed to look like.<br>&gt;<br>&gt; I did some digging into the problem and found the following.&nbsp;&nbsp;The immediate<br>&gt; cause of my problem is that Ubuntu 6.1 uses the &quot;dash&quot; shell 0.5.3-3 for<br>&gt; /bin/sh.&nbsp;&nbsp;At the same time, scripts/mkconfigs uses an echo &quot;`...`&quot;
<br>&gt; construction for generating bbconfigopts.h.&nbsp;&nbsp;This construction contains a<br>&gt; &quot;\n&quot; sequence, which the dash echo command interprets literally.&nbsp;&nbsp;(See the<br>&gt; attached bbconfigopts.h production to see what happens.)
<br>&gt;<br>&gt; Linking /bin/sh to /bin/bash resolved this problem and allowed the build to<br>&gt; complete successfully.<br>&gt;<br>&gt; The fix that could be made to scripts/mkconfigs in order to work more<br>&gt; generally, be less indirect, and avoid some of the backslash quoting would
<br>&gt; be to eliminate the echo &quot;`...`&quot; construction and just execute the command<br>&gt; directly.&nbsp;&nbsp;That is, change this:<br>&gt;<br>&gt; echo &quot;`sed &#39;s/\&quot;/\\\\\&quot;/g&#39; $config | grep &quot;^#\? \?CONFIG_&quot; | awk &#39;{print
<br>&gt; &quot;\\&quot;&quot; $0 &quot;\\\\n\\&quot;&quot;;}&#39;`&quot;<br>&gt;<br>&gt; to this:<br>&gt;<br>&gt; sed &#39;s/\&quot;/\\\\\&quot;/g&#39; $config | grep &quot;^#\? \?CONFIG_&quot; | awk &#39;{print &quot;\&quot;&quot; $0
<br>&gt; &quot;\\n\&quot;&quot;;}&#39;<br>&gt;<br>&gt; I tested this change under bash and dash and it works in both shells.<br><br>There is presumably a reason why it is done that way. Is bbconfig.h different?<br><br>Another question, does it (unmodified version, that is) work with bbox ash?
<br>--<br>vda<br></blockquote></div><br>