[meta-freescale] Linux kernel recipe override question

Otavio Salvador otavio at ossystems.com.br
Tue Feb 25 04:11:55 PST 2014


Hello John,

On Mon, Feb 24, 2014 at 4:51 PM, John Weber <rjohnweber at gmail.com> 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 ?= "<the-default-branch>"
>
> Then, in local.conf, I can override it:
>
> SRCBRANCH_linux-wandboard = "<my-local-hacking-branch>"

Correct.

> 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 ??= "<default big long commit id>"

Use ?=

> In local.conf:
>
> SRCREV_linux-wandboard = "<my local branch commit id>"
>
> 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.

The backend sets it to invalid before.

Use ?= and give it a try. If it does not work, please send me the
patch so I can try it at my side.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list