From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-f47.google.com (mail-yh0-f47.google.com [209.85.213.47]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 989ADE008D0 for ; Mon, 24 Feb 2014 19:59:43 -0800 (PST) Received: by mail-yh0-f47.google.com with SMTP id c41so6383403yho.34 for ; Mon, 24 Feb 2014 19:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=B9w+l9BHMCZTWKTyjLheWS9rFyxJ5AUqZvWDu6PbB9A=; b=HkVtdkBP9Rp4PK+K5iHDa1gw20LQV+YG8DIevVXSoJauE5ITb2AHklVemw21TNa9o5 hCcJNIcW1vWi/d7jIFFzrTQj97Lfz7Je52QVhp+Pg6H4q6ECVkHkg1nvZsq4zio5+pbh gjPIkGJpB+2Kkdwl8yJSe5SChEdHArFBjG2BM99+VR8vJy0TClKJQ+6RlQg+rsGdMny8 mMabztcfppGmyyfKXkYXZ/co8KvN9AipwUrsy/RjXjgUeK602guI1K10WBZRfLMnSPR6 QV1F1Q1psBrKqXJlRvsz/GwgjJZL+BTSDg8PdUvvNdgnq6eClvtvIQEYyxm022e9vp/8 fWag== X-Received: by 10.236.89.11 with SMTP id b11mr3424006yhf.16.1393300782787; Mon, 24 Feb 2014 19:59:42 -0800 (PST) Received: from goober-2.local ([75.76.20.151]) by mx.google.com with ESMTPSA id 48sm4472855yhq.11.2014.02.24.19.59.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 19:59:42 -0800 (PST) Message-ID: <530C152D.9090809@gmail.com> Date: Mon, 24 Feb 2014 21:59:41 -0600 From: John Weber User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Robin Findley References: <472sBXuAY9280S04.1393273670@web04.cms.usa.net> In-Reply-To: <472sBXuAY9280S04.1393273670@web04.cms.usa.net> Cc: meta-freescale@yoctoproject.org 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: Tue, 25 Feb 2014 03:59:44 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Robin, On 2/24/14, 2:27 PM, Robin Findley wrote: > 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. > > John, you were close. Here's an example from my local.conf: > > PREFERRED_VERSION_linux-wandboard = "3.10.17" > SRCBRANCH_pn-linux-wandboard = "wandboard_imx_3.10.17_1.0.0_beta_test" > SRCREV_pn-linux-wandboard = "4299c87fd4d46fd786d1600c57986b1fe164138a" Beautiful. Thanks for the help. This works. > > You may want to double-check if your SRCBRANCH override really did work as you > expected. I think you need the "_pn-". Yes. In my setup I had modified the assignment of SRCBRANCH to the weakest one (??=) in the linux-wandboard.inc file and then set it using a stronger one (?=) in the recipe (.bb) file, and then finally set it using the hardest one (=) in the local.conf. I certainly do not have a solid foundation in these assignment operators. :-) Using this method I was able to remove those other changes, so this is all good stuff. What does the _pn- do? In other recipes it serves as a short reference for packagename, I think. > > -Robin >