All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: "João Henrique Freitas" <joaohf@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: linux yocto private branch
Date: Mon, 03 Jan 2011 11:00:38 -0500	[thread overview]
Message-ID: <4D21F2A6.8030900@windriver.com> (raw)
In-Reply-To: <AANLkTimHq1JGQCUfsPcc4DdBYWxDdGmtBzgV0ObvJDZ-@mail.gmail.com>

On 10-12-28 07:54 PM, João Henrique Freitas wrote:
> Hi,
>
> This question is about how I can track linux yocto and maintain a
> private kernel.
>
> I am tracking the yocto master on git.
>
> My target is to use linux-yocto kernel and with my personal machine
> (IBM and HP blade servers x86-64 or x86).
> Probably I need to setup some special driver like disk controller or
> network device, but it's not the case now.
>
> I want to track linux-yocto kernel. To accomplish it, I created a
> linux-yocto_git.bbappend with:
>
> SRC_URI = "git://git.pokylinux.org/linux-yocto-2.6.37;protocol=git;fullclone=1;branch=${KBRANCH};name=machine
> \
>             git://git.pokylinux.org/linux-yocto-2.6.37;protocol=git;noclone=1;branch=meta;name=meta
> \
>             file://defconfig"
>
> KMACHINE_mpg = "yocto/standard/common-pc/base"<---- it's right?

This will be right in a few weeks, but right now, the
searching for machine specific configuration is triggered
from the branch name, so you still require a machine
specific branch. This is a long standing optimization to
represent validated configurations in the kernel tree, but
to control branch "explosion" I've completed some changes
that allow many (unlimited) boards to be built from a single
branch.

So for this, you'd want  "yocto/standard/common-pc/mpg", and
have a kernel tree that contains the branch (this is BSP
bootstrapping). I have a meta-kernel-dev layer that facilitates
a local clone (where you can easily make your own branch), and
it will be available in the poky-extras repo very soon (I don't
have push access at the moment).

> COMPATIBLE_MACHINE = "mpg"<--- my kernel config
>
> My doubt: KMACHINE_mpg can be "yocto/standard/mpg" or it need to be a
> strict branch on yocto git?

See above. Your doubt was correct.

>
> In other words, Can I have a private branch and track a default
> yocto/standard/common-pc/base?

You can. You need to initially create your BSP branch from that
point, and as you update your tree, merge common-pc/base into
your BSP to pickup the main kernel updates.

To have your own kernel configuration, see the examples for
other BSPs on the 'meta' branch. Create your own infrastructure
there, and things will work. Since you are tracking a branch
besides 'standard/base' you need to have your own .scc file
on the meta branch since the auto detect logic will fall back
to tracking standard.

Cheers,

Bruce

>
> I read kernel-manual_9.pdf, section 3.4.4 but I believe it's a bit outdate now.
>
> Currently I can build linux-yocto and create a full image to be use
> with VirtualBox and with real hardware.
>
> Thanks.
>
> PS:
>
> I think that yocto can be use to build and runs in big machines too,
> not only in small devices.
>



      reply	other threads:[~2011-01-03 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-29  0:54 linux yocto private branch João Henrique Freitas
2011-01-03 16:00 ` Bruce Ashfield [this message]

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=4D21F2A6.8030900@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=joaohf@gmail.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.