From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6F36DE00804; Thu, 24 Sep 2015 09:10:54 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 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] Received: from lnsystems.lincoln.ln-systems.com (post.ln-systems.com [62.49.123.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E8722E00708 for ; Thu, 24 Sep 2015 09:10:51 -0700 (PDT) Received: from LNSYSCH2 (firewall-ext.lincoln.ln-systems.com [62.49.123.65]) by lnsystems.lincoln.ln-systems.com (8.13.1/8.13.1) with ESMTP id t8OG7v1U012752 for ; Thu, 24 Sep 2015 17:08:01 +0100 From: "Colin Helliwell" To: References: <027601d0f6e0$03e682d0$0bb38870$@LN-Systems.com> <56041D04.9060908@mlbassoc.com> In-Reply-To: <56041D04.9060908@mlbassoc.com> Date: Thu, 24 Sep 2015 17:10:46 +0100 Organization: LN Systems Limited Message-ID: <028101d0f6e3$94797020$bd6c5060$@LN-Systems.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQH8HtcrCjs6uz/Id9eDeryjJeJP1gF5EV9enem/5MA= Subject: Re: Getting bitbake to use 'local' versions of local.conf/bblayers.conf X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: colin.helliwell@LN-Systems.com List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 16:10:54 -0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: en-gb Thanks Gary - I'll give that a try, looks like just what I'm after. -----Original Message----- From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Gary Thomas Sent: 24 September 2015 16:56 To: yocto@yoctoproject.org Subject: Re: [yocto] Getting bitbake to use 'local' versions of local.conf/bblayers.conf On 2015-09-24 09:45, Colin Helliwell wrote: > We have an automated build which pulls our own layers & amendments > from our version control system. We don't really want (need?) to have a full *unpacked* Yocto in the repository too, so we have just the Fido tarball in there, and unpack this as the first step of the build. > > But, we then need to copy our local.conf and bblayers.conf across into > the (transient) build directory. Is there a way to tell bitbake to > override the default ones (in > build/local/) with ours? I did see that it's maybe possible to set up > variables for the 'oe-init-build-env' script, but I think this will > still copy them into build/local/ - what we want is to leave them in > place (so if we make any changes they will remain under, and trackable > by, the version control) Just put "bblayers.conf.sample" and/or "local.conf.sample" in one of your layers. I do this with the BSPs I build and then set up the basic configuration quite automatically. For example, I have a pesudo-BSP (layer) for the RaspberryPi which includes meta-rpi/conf/ meta-rpi/conf/local.conf.sample meta-rpi/conf/bblayers.conf.sample meta-rpi/conf/layer.conf Then to configure a build using this layer I run % TEMPLATECONF=meta-rpi/conf . ${YOCTO}/oe-init-build-env ${BUILD} In this way, it's easy to keep the meta-rpi under my own SCM and manage any changes there. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto