All of lore.kernel.org
 help / color / mirror / Atom feed
* Move device tree generation from include file to bbclass
@ 2015-04-15 12:33 Bach, Pascal
  2015-04-15 13:13   ` [yocto] " Bruce Ashfield
  0 siblings, 1 reply; 11+ messages in thread
From: Bach, Pascal @ 2015-04-15 12:33 UTC (permalink / raw)
  To: yocto

Hi

As ARM now also moved to device tree it look like in future we will have more kernels that are using device tree then ones that are not.
As far as I understand currently the generation of device trees is controlled via KERNEL_DEVICETREE and is handled in via an include file recipes-kernel/linux/linux-dtb.inc.

I was thinking about moving this include into a class so it becomes easier to use. Before I dive into implementing something I would like some feedback from the community.

I have the following variant in mind.

Add the device tree generation to the current kernel.bbclass (or let kernel.bblcass inherit from a kernel-dtb.bbclass).
This way all kernels would automatically be DT enabled.
The class would check if KERNEL_DEVICETREE is set and generate device trees based on this information. For boards that don't have KERNEL_DEVICETREE set the class would do nothing and the behavior is like before.
The advantage I see with this approach is that the only thing a user needs to do is to set KERNEL_DEVICETREE in the board and make sure the device trees are available in the kernel they like to build.

I appreciate your feedback?

Regards
Pascal


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

end of thread, other threads:[~2015-04-16  7:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 12:33 Move device tree generation from include file to bbclass Bach, Pascal
2015-04-15 13:13 ` Bruce Ashfield
2015-04-15 13:13   ` [yocto] " Bruce Ashfield
2015-04-15 15:22   ` Nikolay Dimitrov
2015-04-15 15:26     ` Bruce Ashfield
2015-04-15 15:26       ` [yocto] " Bruce Ashfield
2015-04-15 16:12       ` Nikolay Dimitrov
2015-04-15 16:49         ` Bruce Ashfield
2015-04-15 16:49           ` [yocto] " Bruce Ashfield
2015-04-16  7:41         ` Bach, Pascal
2015-04-16  7:41           ` [yocto] " Bach, Pascal

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.