From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Chris Tapp <opensource@keylevel.com>
Cc: yocto@yoctoproject.org
Subject: Re: Configuring a layer to support multiple targets
Date: Wed, 17 Aug 2011 15:15:19 -0400 [thread overview]
Message-ID: <4E4C1347.4050100@windriver.com> (raw)
In-Reply-To: <8232FE7C-6344-44C9-A87C-24C5AABF2E06@keylevel.com>
On 11-08-17 03:07 PM, Chris Tapp wrote:
> On 17 Aug 2011, at 16:18, Bruce Ashfield wrote:
>
>> In this sense, the defconfig is simply a name to trigger
>> specific processing. Just capture and call your .config
>> 'defconfig' and you'll get a translation of those settings
>> into the build.
>
>
> That's what I've done. I used 'make xconfig' to modify the .config file
> (resulting from bitbake -c compile virtual/kernel). However, turning off
> CONFIG_USB_SERIAL and saving the result as a defconfig isn't quite
> what's needed.
>
> Consider the .config fragment:
>
> CONFIG_USB_SERIAL=y
> CONFIG_USB_SERIAL_FTDI_SIO=y
>
> The corresponding defconfig fragment produced when usb serial is
> disabled in xconfig results is simply:
>
> # CONFIG_USB_SERIAL is not set
>
> When the defconfig is merged with the .config I get:
>
> # CONFIG_USB_SERIAL is not set
> CONFIG_USB_SERIAL_FTDI_SIO=y
>
> This means the FTDI module is still present in the kernel.
>
> I can get rid of these by manually adding 'not set' entries in the
> defconfig, but it would be easier if I could replace the .config rather
> than patch it.
The model is that you must explicitly chose values to modify
them, otherwise, they flow through. Last through the gate wins.
If you don't speak, others parts speak for the configuration.
In this case, you must be inheriting the common-pc kernel
configuration.
It's something to configure for the future, but that is working
as designed at the moment. The point is to be able to set a policy
for options that inheriting BSPs must explicitly disable.
The solutions two this are:
- inherit from a base branch vs common-pc (assuming that
I guessed right)
- do the explicit disabling of already set options
- convince us that the common-pc shouldn't be turning this
on and trickle this option out to the leaf BSPs.
Cheers,
Bruce
>
> Chris Tapp
>
> opensource@keylevel.com
> www.keylevel.com
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
next prev parent reply other threads:[~2011-08-17 19:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 22:31 Configuring a layer to support multiple targets Chris Tapp
2011-08-12 22:54 ` Gary Thomas
2011-08-24 7:59 ` Missing patch files in SRC_URIs Chris Tapp
2011-08-24 11:11 ` Paul Eggleton
2011-08-24 19:36 ` Chris Tapp
2011-08-13 1:22 ` Configuring a layer to support multiple targets Bruce Ashfield
2011-08-17 7:59 ` Chris Tapp
2011-08-17 15:18 ` Bruce Ashfield
2011-08-17 19:07 ` Chris Tapp
2011-08-17 19:15 ` Bruce Ashfield [this message]
2011-08-17 19:38 ` Chris Tapp
[not found] ` <4E4C2399.1040505@windriver.com>
2011-08-17 20:42 ` Chris Tapp
2011-08-22 18:52 ` Bruce Ashfield
2011-08-22 21:21 ` Chris Tapp
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=4E4C1347.4050100@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=opensource@keylevel.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.