All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Brian Smucker <bds@bsmucker.eu.org>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Magic kernel config option.
Date: Wed, 2 Jan 2013 16:12:48 -0500	[thread overview]
Message-ID: <50E4A2D0.8020205@windriver.com> (raw)
In-Reply-To: <50E4A287.3050607@bsmucker.eu.org>

On 13-01-02 04:11 PM, Brian Smucker wrote:
> On 1/2/2013 10:06 AM, Bruce Ashfield wrote:
>  > On 12-12-24 02:59 PM, Brian Smucker wrote:
>  >> Hi,
>  >>
>  >
>  > Catching up on email from the holidays. Did you ever get an answer
>  > to this ?
> Not yet,  resumed my quest today.
>
>  >> I'm a yocto mostly-newbie, trying to find my way.  I have a custom
> layer
>  >> that I am using to build a kernel. The layer right now consists of a
> few
>  >> kernel patches and a defconfig and is based on the standard kernel
>  >> otherwise.
>  >>
>  >> When I do a diff on my defconfig and the bitbake generated .config,
> they
>  >> are quite similar, but the CONFIG_UNION_FS=y line magically shows up.
>  >> I'm wondering where it comes from and how to disable it.
>  >
>  > CONFIG_UNION_FS is being enabled by the standard kernel (and all
>  > kernels that inherit it). Since you are based on that kernel, you
>  > get the option enabled.
>  >
>  >>
>  >> I can do a bitbake -c menuconfig virtual/kernel and eliminate that
>  >> option giving me the kernel I want, but those changes are gone after a
>  >> bitbake -c cleansstate ...
>  >
>  > Have you tried putting
>  >
>  > # CONFIG_UNION_FS is not set
>  >
>  > in your defconfig ? That should disable it.
>  >
> I did try that, but that did not disable it.

Hmmm. It worked here. I'll run another test shortly (I'm working on
3.8-rc1 at the moment).

>
> So after much pain and thrashing about to figure things out, now I see
> that in the standard-nocfg.scc file, the unionfs feature is set. This
> file is found in the following path: tmp/work/..
> ../linux/meta/cfg/kernel-cache/ktypes/standard/ directory.
>
> My current burning question is:  Where is does this file come from? It
> does not seem to be part of the kernel git repository.  I can changes
> this file and affect the kernel build, but again, those changes are
> transitory and do not persist after cleaning.

It's from the meta branch of the kernel git repository. Those
are all the fragments that are used to construct and configure
the kernel. Part of the build process makes them available to the
configuration phase.

As something else to try, call your file <foo>.cfg and add it to the
SRC_URI the same way you added the defconfig. defconfig's get special
processing, calling it <foo>.cfg will simply get your changes added
to the end of the build and they teka precedence. That being said, if
a feature with a Kconfig of the kernel has a "select UNIONFS" then you
can't override it with a config/defconfig option, you need to patch
the kernel.

If you send me your defconfig, I can run some test builds here.

Bruce




>
> Thanks,
>
> Brian
>
>



  reply	other threads:[~2013-01-02 21:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02 21:11 Magic kernel config option Brian Smucker
2013-01-02 21:12 ` Bruce Ashfield [this message]
2013-01-02 21:47   ` Brian Smucker
2013-01-02 22:15     ` Bruce Ashfield
2013-01-02 22:43       ` Brian Smucker
2013-01-03  1:28         ` Bruce Ashfield
  -- strict thread matches above, loose matches on Subject: below --
2012-12-24 19:59 Brian Smucker
2013-01-02 18:06 ` 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=50E4A2D0.8020205@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=bds@bsmucker.eu.org \
    --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.