All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Dimitrov <picmaster@mail.bg>
To: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
	Patches and discussions about the oe-core layer
	<Openembedded-core@lists.openembedded.org>
Subject: Re: Move device tree generation from include file to bbclass
Date: Wed, 15 Apr 2015 18:22:52 +0300	[thread overview]
Message-ID: <552E824C.5080603@mail.bg> (raw)
In-Reply-To: <552E63F1.9090406@windriver.com>

Hi Bruce,

On 04/15/2015 04:13 PM, Bruce Ashfield wrote:
> On 2015-04-15 08:33 AM, Bach, Pascal wrote:
>> Hi
>>
>
> Adding oe-core, since that's the right place to have a discussion
> like this.
>
>> 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.
>
> True, but it has been like this for quite some time now :)
>
>> 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.
>
> The big trick with changing anything like this is compatibility with
> existing recipes. Whatever we do, existing recipes and layers
> shouldn't be broken .. or if they are broken, there should be a
> compelling technical reason to do so.
>
>>
>> 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.
>
> That's pretty much the experience that most users have now, since
> there's nearly always a kernel recipe created, that recipe includes
> linux-dtb.inc, and sets KERNEL_DEVICETREE.

As far as I understood, Pascal's idea is to remove the need for user
recipes to include linux-dtb.inc, and provide this functionality via
inheritance.

> Everything else happens to build and package the device tree.
>
> Was there something specifically that was causing issues with the
> current way of building them ?
>
> Cheers,
>
> Bruce
>
>>
>> I appreciate your feedback?
>>
>> Regards Pascal
>>
>

Regards,
Nikolay


  reply	other threads:[~2015-04-15 15:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=552E824C.5080603@mail.bg \
    --to=picmaster@mail.bg \
    --cc=Openembedded-core@lists.openembedded.org \
    --cc=bruce.ashfield@windriver.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.