<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;
mso-fareast-language:ZH-CN;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;
mso-fareast-language:ZH-CN;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas","serif";
mso-fareast-language:ZH-CN;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi ,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Although that sentence could be written differently, it is correct. Step six of the example says “By default, the script creates the new BSP Layer in the current
working directory of the Source Directory, which is poky in this case.” The clause at the end of the sentence is tied to the “Source Directory”, which in fact is poky. I will re-write that sentence though to remove any chance of confusion. You can see the
change at http://www.yoctoproject.org/docs/1.7/bsp-guide/bsp-guide.html#creating-a-new-bsp-layer-using-the-yocto-bsp-script.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Scott<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org]
<b>On Behalf Of </b>Biao<br>
<b>Sent:</b> Sunday, November 23, 2014 8:35 PM<br>
<b>To:</b> Zanussi, Tom<br>
<b>Cc:</b> yocto@yoctoproject.org<br>
<b>Subject:</b> Re: [yocto] Running "yocto-bsp create .." in the source directory(poky) brings up an error. "poky directory vs build directory"<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<pre><span style="color:black"><br>At 2014-11-24 03:23:10, "Tom Zanussi" <<a href="mailto:tom.zanussi@intel.com">tom.zanussi@intel.com</a>> wrote:<o:p></o:p></span></pre>
<pre><span style="color:black">>Hi,<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>On Sun, 2014-11-23 at 22:55 +0800, Biao wrote:<o:p></o:p></span></pre>
<pre><span style="color:black">>> Hi all,<o:p></o:p></span></pre>
<pre><span style="color:black">>> I am doing excises following this section<o:p></o:p></span></pre>
<pre><span style="color:black">>> ----------------------------------------------------------------------<o:p></o:p></span></pre>
<pre><span style="color:black">>> <a href="http://www.yoctoproject.org/docs/1.7/bsp-guide/bsp-guide.html#creating-a-new-bsp-layer-using-the-yocto-bsp-script">http://www.yoctoproject.org/docs/1.7/bsp-guide/bsp-guide.html#creating-a-new-bsp-layer-using-the-yocto-bsp-script</a><o:p></o:p></span></pre>
<pre><span style="color:black">>> 1.6.2. Creating a new BSP Layer Using the yocto-bsp Script<o:p></o:p></span></pre>
<pre><span style="color:black">>> ...<o:p></o:p></span></pre>
<pre><span style="color:black">>> $ yocto-bsp create myarm qemu<o:p></o:p></span></pre>
<pre><span style="color:black">>> ....<o:p></o:p></span></pre>
<pre><span style="color:black">>> By default, the script creates the new BSP Layer in the current<o:p></o:p></span></pre>
<pre><span style="color:black">>> working directory of the Source Directory , which is poky in this<o:p></o:p></span></pre>
<pre><span style="color:black">>> case. <o:p></o:p></span></pre>
<pre><span style="color:black">>> ....<o:p></o:p></span></pre>
<pre><span style="color:black">>> ---------------------------------------------------------------------<o:p></o:p></span></pre>
<pre><span style="color:black">>> To my understand, it means after "source oe-init-build-env mybuild", i<o:p></o:p></span></pre>
<pre><span style="color:black">>> should change to the poky directory to run the "yocto-bsp create ..."<o:p></o:p></span></pre>
<pre><span style="color:black">>> command,<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>Yes, the documentation is misleading - yocto-bsp assumes you're in the<o:p></o:p></span></pre>
<pre><span style="color:black">>build directory after you've sourced oe-init-build-env, and not the poky<o:p></o:p></span></pre>
<pre><span style="color:black">>dir.<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<div>
<pre><span style="color:black">>Tom<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<pre><span style="color:black">I see, thanks for you help, Tom.<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<pre><span style="color:black">Jerry<o:p></o:p></span></pre>
</div>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>> however, i got an error <o:p></o:p></span></pre>
<pre><span style="color:black">>> " Do you need a new machine branch for this BSP (the alternative is to<o:p></o:p></span></pre>
<pre><span style="color:black">>> re-use an existing branch)? [y/n] [default: y] <o:p></o:p></span></pre>
<pre><span style="color:black">>> The BBPATH variable is not set and bitbake did not find a<o:p></o:p></span></pre>
<pre><span style="color:black">>> conf/bblayers.conf file in the expected location.<o:p></o:p></span></pre>
<pre><span style="color:black">>> Maybe you accidentally invoked bitbake from the wrong directory?<o:p></o:p></span></pre>
<pre><span style="color:black">>> Couldn't find BBLAYERS in bitbake -e output, exiting." <o:p></o:p></span></pre>
<pre><span style="color:black">>> It seems it is asking me to run "yocto-bsp create ..." in the build<o:p></o:p></span></pre>
<pre><span style="color:black">>> directory<o:p></o:p></span></pre>
<pre><span style="color:black">>> <o:p></o:p></span></pre>
<pre><span style="color:black">>> <o:p></o:p></span></pre>
<pre><span style="color:black">>> Which one is correct? Do we have a wrong document?<o:p></o:p></span></pre>
<pre><span style="color:black">>> <o:p></o:p></span></pre>
<pre><span style="color:black">>> <o:p></o:p></span></pre>
<pre><span style="color:black">>> Thanks,<o:p></o:p></span></pre>
<pre><span style="color:black">>> Jerry <o:p></o:p></span></pre>
<pre><span style="color:black">>> <o:p></o:p></span></pre>
<pre><span style="color:black">>> <o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
</div>
</div>
</div>
</body>
</html>