From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 13BBFE008FC for ; Mon, 24 Feb 2014 12:05:49 -0800 (PST) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id 55B7FF811F6; Mon, 24 Feb 2014 13:05:49 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 82436F811F5; Mon, 24 Feb 2014 13:05:48 -0700 (MST) Message-ID: <530BA61C.2030208@mlbassoc.com> Date: Mon, 24 Feb 2014 13:05:48 -0700 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: <530BA2BE.7060502@gmail.com> In-Reply-To: <530BA2BE.7060502@gmail.com> X-Enigmail-Version: 1.5.2 Subject: Re: Linux kernel recipe override question X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 20:05:50 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 2014-02-24 12:51, John Weber wrote: > Here is a question someone might be able to quickly answer. > > I want to be able to override the SRCREV, SRCBRANCH, and the git repository for > the kernel recipe in local.conf. I like to do this so that I can do local > hacking on a kernel without having to edit the recipe files themselves, and I > find that managing local.conf is easier when I'm changing SRCREVs a lot. > > I've been able to override SRCBRANCH by doing this: > > In recipes-kernel/linux/linux-wandboard.inc: > > SRCBRANCH ??= "master" > > The default is set in recipes-kernel/linux/linux-wandboard_3.10.17.bb: > > SRCBRANCH ?= "" > > Then, in local.conf, I can override it: > > SRCBRANCH_linux-wandboard = "" > > This works fine for SRCBRANCH. If I do the same thing with SRCREV, it doesn't > seem to work. I've done this: > > In linux-wandboard_3.10.17.bb: > > SRCREV ??= "" > > In local.conf: > > SRCREV_linux-wandboard = "" > > I always get the checkout of the SRCREV assignment done in the recipe file, not > the one I set in local.conf. > > Any idea why? The only thing I can think of is that SRCREV is evaluated completely before > local.conf settings are evaluated. You can't do this in local.conf The best way is to have another layer with a .bbappend for that recipe. You can then override these variables in that file. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------