All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Bryan Evenson <bevenson@melinkcorp.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Problems fetching branch for linux-yocto-custom
Date: Wed, 12 Jun 2013 17:16:18 -0400	[thread overview]
Message-ID: <51B8E522.3040707@windriver.com> (raw)
In-Reply-To: <91586D499ADFD74FBCFB8425266A5DE4013B910EC2EA@pluto.melinkcorp.local>

On 13-06-12 4:54 PM, Bryan Evenson wrote:
>
>
>> -----Original Message-----
>> From: Trevor Woerner [mailto:twoerner@gmail.com]
>> Sent: Wednesday, June 12, 2013 4:42 PM
>> To: Bryan Evenson
>> Cc: Bruce Ashfield; yocto@yoctoproject.org
>> Subject: Re: [yocto] Problems fetching branch for linux-yocto-custom
>>
>> On Wed, Jun 12, 2013 at 3:37 PM, Bryan Evenson
>> <bevenson@melinkcorp.com> wrote:
>>> # Added KBRANCH spec
>>> KBRANCH = "linux-3.9-at91"
>>>>> # Override SRC_URI in a bbappend file to point at a different
>>>>> source
>>>> #
>>>>> tree if you do not want to build from Linus' tree.
>>>>> SRC_URI = "git://github.com/linux4sam/linux-at91.git;branch=linux-
>>>> 3.9-
>>>>
>> at91;tag=dcdf169e24c0cb6d7dc69e0a09d2395934e95075;protocol=git;nochec
>>>> ko
>>>> ut=1"
>>>
>>> # Changed SRC_URI to following
>>> SRC_URI = "git://github.com/linux4sam/linux-
>> at91.git;branch=${KBRANCH};protocol=git;nocheckout=1"
>>
>> It looks like all you did was to define the string "linux-3.9-at91" in
>> its own variable, put that in your SRC_URI string, and remove the
>> "tag=..." field. Would your original recipe have worked if all you did
>> was remove the "tag=..." field?
>>
>> Is KBRANCH being used somewhere else? Doesn't bitbake's "git" fetcher
>> already have a generic way of specifying a branch? Why would a kernel
>> recipe need to also define a branch variable? Do non-kernel recipes
>> also need to define some kind of branch variable too?
>
>  From looking through meta/classes/kernel-yocto.bbclass, I see KBRANCH being used a lot in reference to the specific branch to be checked out.  KBRANCH_DEFAULT defines the default branch (which defaults to "master") so if you don't specify KBRANCH, then it'll checkout the KBRANCH_DEFAULT branch.
>
> With that said, I'm wondering what would happen if I specified KBRANCH but didn't put the "branch=${KBRANCH}" in the SRC_URI.  Is this branch= variable from the SRC_URI being used for the kernel?
>

There are compatibility checks that will pick up branch, and set
KBRANCH on your behalf if you only use branch= in the SRC_URI, but
there are limitations since clobbering a KBRANCH variable isn't
always possible due to when they are expanded (i.e. recipe parse
time).

Cheers,

Bruce

> -Bryan
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



  reply	other threads:[~2013-06-12 21:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-12 19:10 Problems fetching branch for linux-yocto-custom Bryan Evenson
2013-06-12 19:14 ` Bruce Ashfield
2013-06-12 19:37   ` Bryan Evenson
2013-06-12 19:44     ` Bruce Ashfield
2013-06-12 19:47       ` Bryan Evenson
2013-06-12 19:52         ` Bruce Ashfield
2013-06-12 20:41     ` Trevor Woerner
2013-06-12 20:54       ` Bryan Evenson
2013-06-12 21:16         ` Bruce Ashfield [this message]
2013-06-12 21:14       ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51B8E522.3040707@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=bevenson@melinkcorp.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.