[yocto] Running "yocto-bsp create .." in the source directory(poky) brings up an error. "poky directory vs build directory"

Biao huanmateme at 163.com
Sun Nov 23 20:34:31 PST 2014


At 2014-11-24 03:23:10, "Tom Zanussi" <tom.zanussi at intel.com> wrote:
>Hi,
>
>On Sun, 2014-11-23 at 22:55 +0800, Biao wrote:
>> Hi all,
>> I am doing excises following this section
>> ----------------------------------------------------------------------
>> http://www.yoctoproject.org/docs/1.7/bsp-guide/bsp-guide.html#creating-a-new-bsp-layer-using-the-yocto-bsp-script
>> 1.6.2. Creating a new BSP Layer Using the yocto-bsp Script
>> ...
>>  $ yocto-bsp create myarm qemu
>> ....
>> By default, the script creates the new BSP Layer in the current
>> working directory of the  Source Directory , which is  poky  in this
>> case. 
>> ....
>> ---------------------------------------------------------------------
>> To my understand, it means after "source oe-init-build-env mybuild", i
>> should change to the poky directory to run the "yocto-bsp create ..."
>> command,
>
>Yes, the documentation is misleading - yocto-bsp assumes you're in the
>build directory after you've sourced oe-init-build-env, and not the poky
>dir.
>

>Tom


I see, thanks for you help, Tom.


Jerry
>
>> however, i got an error  
>> " Do you need a new machine branch for this BSP (the alternative is to
>> re-use an existing branch)? [y/n] [default: y] 
>> The BBPATH variable is not set and bitbake did not find a
>> conf/bblayers.conf file in the expected location.
>> Maybe you accidentally invoked bitbake from the wrong directory?
>> Couldn't find BBLAYERS in bitbake -e output, exiting." 
>> It seems it is asking me to run "yocto-bsp create ..." in the build
>> directory
>> 
>> 
>> Which one is correct? Do we have a wrong document?
>> 
>> 
>> Thanks,
>> Jerry 
>> 
>> 
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141124/1ed409c0/attachment.html>


More information about the yocto mailing list