All of lore.kernel.org
 help / color / mirror / Atom feed
* Where is 'my' defconfig ?
@ 2011-02-13 13:40 Chris Tapp
  2011-02-14  4:11 ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Tapp @ 2011-02-13 13:40 UTC (permalink / raw)
  To: yocto

I've created my own machine ('MyMachine') that has virtual/kernel set  
to 'linux-yocto-stable'. I would now like to change the kernel  
configuration to enable some drivers that aren't enabled by default.

This leads me to a couple of questions:

1) Where is the defconfig file for 'linux-yocto-stable'? Or does this  
just use the default configuration provided by the kernel?
2) Where do I place the defconfig file for MyMachine? Should this be  
in meta/recipes-kernel/linux/linux-yocto-stable/MyMachine/defconfig?

Chris Tapp

opensource@keylevel.com
www.keylevel.com





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where is 'my' defconfig ?
  2011-02-13 13:40 Where is 'my' defconfig ? Chris Tapp
@ 2011-02-14  4:11 ` Bruce Ashfield
  2011-02-14 17:34   ` Darren Hart
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2011-02-14  4:11 UTC (permalink / raw)
  To: Chris Tapp; +Cc: yocto

On 11-02-13 8:40 AM, Chris Tapp wrote:
> I've created my own machine ('MyMachine') that has virtual/kernel set to
> 'linux-yocto-stable'. I would now like to change the kernel
> configuration to enable some drivers that aren't enabled by default.
>
> This leads me to a couple of questions:
>
> 1) Where is the defconfig file for 'linux-yocto-stable'? Or does this
> just use the default configuration provided by the kernel?

A defconfig is constructed on the fly for each board, using
a series of inherited configuration values that are grouped
to provide some sort of useful functionality.  On top of being
useful, they provide a common / consistent set of configuration
values for BSPs that have been explicitly selected to meet some
sort of functional requirement. As a result, test results are
transitive (largely), a common feature set is available for a
a supported board and a single configuration change can be
made across all boards immediately.

On top of that common base are the board specific configuration.
In the perfect world, these are specific to the hardware of the
board and are not logical in nature. You'll note the 'perfect'.
Some boards do deviate from the common base. After configuring
a board, an audit is run and a notification is generated if a board
overrides a common feature, but it is just a notification.

> 2) Where do I place the defconfig file for MyMachine? Should this be in
> meta/recipes-kernel/linux/linux-yocto-stable/MyMachine/defconfig?

The kernel architecture docs should have this covered
in the section about cloning an existing BSP. I don't point
this out as RTFM, but more along the lines of 'if you can,
check and see if it is there, and if it works for you'.

But the jist of it is that a defconfig placed in that directory
and added to the SRC_URI will definitely work. But it isn't
ideal, since it will clobber all common settings. Since this
is your board, you are definitely free to do just that.

If you want to just add your hardware settings, then you can
create a configuration fragment. A configuration fragment is
just a file <your name here>.cfg, and it contains standard
Kconfig values, but doesn't have to be (and shouldn't) be
a complete configuration.

Put it in that same directory, and add it to the SRC_URI.
It will be picked up and added to the constructed configuration.

Hope that helps,

Bruce

>
> Chris Tapp
>
> opensource@keylevel.com
> www.keylevel.com
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where is 'my' defconfig ?
  2011-02-14  4:11 ` Bruce Ashfield
@ 2011-02-14 17:34   ` Darren Hart
  0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2011-02-14 17:34 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto

On 02/13/2011 08:11 PM, Bruce Ashfield wrote:
> On 11-02-13 8:40 AM, Chris Tapp wrote:
>> I've created my own machine ('MyMachine') that has virtual/kernel set to
>> 'linux-yocto-stable'. I would now like to change the kernel
>> configuration to enable some drivers that aren't enabled by default.
>>
>> This leads me to a couple of questions:
>>
>> 1) Where is the defconfig file for 'linux-yocto-stable'? Or does this
>> just use the default configuration provided by the kernel?
>
> A defconfig is constructed on the fly for each board, using
> a series of inherited configuration values that are grouped
> to provide some sort of useful functionality. On top of being
> useful, they provide a common / consistent set of configuration
> values for BSPs that have been explicitly selected to meet some
> sort of functional requirement. As a result, test results are
> transitive (largely), a common feature set is available for a
> a supported board and a single configuration change can be
> made across all boards immediately.
>
> On top of that common base are the board specific configuration.
> In the perfect world, these are specific to the hardware of the
> board and are not logical in nature. You'll note the 'perfect'.
> Some boards do deviate from the common base. After configuring
> a board, an audit is run and a notification is generated if a board
> overrides a common feature, but it is just a notification.
>
>> 2) Where do I place the defconfig file for MyMachine? Should this be in
>> meta/recipes-kernel/linux/linux-yocto-stable/MyMachine/defconfig?
>
> The kernel architecture docs should have this covered
> in the section about cloning an existing BSP. I don't point
> this out as RTFM, but more along the lines of 'if you can,
> check and see if it is there, and if it works for you'.
>

In case anyone isn't sure which document Bruce is refering to:

http://www.yoctoproject.org/sites/default/files/kernel-manual_9.pdf


> But the jist of it is that a defconfig placed in that directory
> and added to the SRC_URI will definitely work. But it isn't
> ideal, since it will clobber all common settings. Since this
> is your board, you are definitely free to do just that.
>
> If you want to just add your hardware settings, then you can
> create a configuration fragment. A configuration fragment is
> just a file <your name here>.cfg, and it contains standard
> Kconfig values, but doesn't have to be (and shouldn't) be
> a complete configuration.
>
> Put it in that same directory, and add it to the SRC_URI.
> It will be picked up and added to the constructed configuration.
>
> Hope that helps,
>
> Bruce
>
>>
>> Chris Tapp
>>
>> opensource@keylevel.com
>> www.keylevel.com
>>
>>
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-14 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13 13:40 Where is 'my' defconfig ? Chris Tapp
2011-02-14  4:11 ` Bruce Ashfield
2011-02-14 17:34   ` Darren Hart

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.