All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Chris Enrique <microdevel@googlemail.com>, <yocto@yoctoproject.org>
Subject: Re: Best way to make use of kernel defconf for supported hw?
Date: Fri, 18 Jul 2014 13:48:10 -0400	[thread overview]
Message-ID: <53C95DDA.5020400@windriver.com> (raw)
In-Reply-To: <CAOB9jCJdQhUd4xq69psURj55-Dfzjt1xVOcx+w4=i6EzKx9cUg@mail.gmail.com>

On 14-07-18 01:10 PM, Chris Enrique wrote:
> Hello,
>
> i need some advice:
>
> i have created a bsp for a board which is supported by the linux kernel.
> so my bsp doesn't focus on kernel patching or similar, just contains
> some other board specific content.
>
> how do i use the kernel defconf for this board which is located under
> arch/architecture/.../.../board_defconfig as kernel config in my bsp?
>
> i know there's several approaches. mine would have been to use defconfig
> and create a config fragment from it but somehow my mind tells me that
> there must be a better way?! just reference the board_defconfig file or sth?

The default configuration policies for the kernel classes require
the kernel defconfig to be in the SRC_URI, so you'd need to pull
it out of the kernel tree, put it in your layer and add it to the
SRC_URI.

If you just want to tweak a linux-yocto configuration, or tweak
that defconfig, you can add configuration fragments to the SRC_URI
as well.

To use the in-tree defconfig, you could always create a bbappend
to the base kernel recipe you are using, and arrange for that
in tree config to end up called "defconfig" in WORKDIR, and the
rest of the default processing would find and use it.

I have some tools that create kernel configuration fragments from
defconfigs, but if you are really just looking to get started and
set a baseline on something other than linux-yocto, the defconfig
is probably the best bet.

Bruce

>
> any help would be appreciated,
>
> chris
>
>



      reply	other threads:[~2014-07-18 17:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18 17:10 Best way to make use of kernel defconf for supported hw? Chris Enrique
2014-07-18 17:48 ` 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=53C95DDA.5020400@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=microdevel@googlemail.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.