Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A464EE0087C; Sun, 23 Nov 2014 11:23:20 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 27F01E00837 for ; Sun, 23 Nov 2014 11:23:16 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 23 Nov 2014 11:20:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,444,1413270000"; d="scan'208";a="642205064" Received: from unknown (HELO [10.255.13.44]) ([10.255.13.44]) by orsmga002.jf.intel.com with ESMTP; 23 Nov 2014 11:23:15 -0800 Message-ID: <1416770590.29940.4.camel@picadillo> From: Tom Zanussi To: Biao Date: Sun, 23 Nov 2014 13:23:10 -0600 In-Reply-To: <33c36dfd.5d02.149dd26d066.Coremail.huanmateme@163.com> References: <33c36dfd.5d02.149dd26d066.Coremail.huanmateme@163.com> X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Cc: yocto@yoctoproject.org Subject: Re: Running "yocto-bsp create .." in the source directory(poky) brings up an error. "poky directory vs build directory" X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2014 19:23:20 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 > 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 > >