devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Yann Droneaud <ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
Cc: "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	licensing-dGWS0fDw8IM@public.gmane.org
Subject: Re: Device Tree Blob (DTB) licence
Date: Fri, 22 May 2015 11:26:44 -0500	[thread overview]
Message-ID: <CAL_JsqKLmePHHe+4n4xwiFhjo+wZ+V774i3eY9Z07+61SDHyYQ@mail.gmail.com> (raw)
In-Reply-To: <1432289148.5304.58.camel-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>

On Fri, May 22, 2015 at 5:05 AM, Yann Droneaud <ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org> wrote:
> Hi,
>
> Le mardi 05 mai 2015 à 11:41 -0500, Rob Herring a écrit :
>> On Tue, May 5, 2015 at 5:05 AM, Yann Droneaud <ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
>> wrote:
>> >
>> > I believe Device Tree Blob (.dtb file) built from kernel's Device
>> > Tree
>> > Sources (.dts, which #include .dtsi, which #include .h) using
>> > Device
>> > Tree Compiler (dtc) are covered by GNU General Public Licence v2
>> > (GPLv2), but cannot find any reference.
>>
>> By default yes, but we've been steering people to dual license them
>> GPL/BSD.
>>
>
> Can you give me the rationale behind such dual licenses requirement ?

Ideally, dtb files are shipped with firmware separately from the OS.
You should be able to run multiple OS's with that dtb. There is often
desire or "requirements" to not have GPL code in firmware.

> If a BSD .dts includes GPLv2 .h, the whole is covered by GPLv2,
> so I cannot find a case where a BSD covered .dts file could be used
> alone within BSD license rights.

arch/powerpc/boot/dts

>> > As most .dtsi in arch/arm/boot/dts/ are covered by GPLv2, and,
>> > as most .h in include/dt-bindings/ are also covered by GPLv2,
>> > the source code is likely covered by GPLv2.
>> >
>> > Then this source code is translated in a different language
>> > (flattened
>> > device tree), so the resulting translation is also likely covered
>> > by
>> > GPLv2.
>> >
>> > So, when I'm proposed to download a .dtb file from a random vendor,
>> > can I require to get the associated source code ?
>>
>> I believe so yes. However, you already have the "source" for the most
>> part. Just run "dtc -I dtb -O dts <dtb file>". You loose the
>> preprocessing and include structure though (not necessarily a bad
>> thing IMO).
>>
>> Then the question is what is the license on that generated dts!
>>
>
> That's also a good question.
>
> Is this a form a "reverse engineering" with all the legalese burden ?

I am not a lawyer.

> Anyway without a clear information attached to the DTB, it's difficult
> to tell which licence cover the "decompiled" version.
>
>> > Anyway, for a .dtb file generated from kernel sources, it's rather
>> > painful to look after all .dts, .dtsi, .h, to find what kind of
>> > licences are applicables, as some are covered by BSD, dual licensed
>> > (any combination of X11, MIT, BSD, GPLv2).
>>
>> I imagine the includes cause some licensing discrepancies if you dug
>> into it.
>>
>
> It's a pity, and it's probably something to sort out.
>
> DTB files produced as part of kernel compilation should have a well
> known license attached by default.

It would be a lot of work to sort out. If people need non-GPL dts/dtb
files then it is really their problem to sort out and audit their dts
files. I mainly tell people to dual license so they (and their
company) think about the issue.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-05-22 16:26 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05 10:05 Device Tree Blob (DTB) licence Yann Droneaud
2015-05-05 16:41 ` Rob Herring
2015-05-22 10:05   ` Yann Droneaud
     [not found]     ` <1432289148.5304.58.camel-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
2015-05-22 16:26       ` Rob Herring [this message]
2015-05-28 12:31         ` Enrico Weigelt, metux IT consult
2015-05-22 19:27     ` Yann Droneaud
2015-05-25  7:14       ` Rob Landley
     [not found]         ` <CAOS_Y6Q37ps+VEnzUZ_uwX++qrRm9Hgx45Q_pmiZSLSNjmKwZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-25 20:04           ` Willy Tarreau
2015-05-28 12:32           ` Enrico Weigelt, metux IT consult
     [not found]             ` <55670AD4.8020705-d/C+FbuhHiA@public.gmane.org>
2015-05-28 13:34               ` Russell King - ARM Linux
     [not found]                 ` <20150528133429.GD2067-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2015-05-28 16:52                   ` Enrico Weigelt, metux IT consult
     [not found]                     ` <556747E4.6070403-d/C+FbuhHiA@public.gmane.org>
2015-05-29  6:47                       ` Willy Tarreau
     [not found]                         ` <20150529064741.GB25351-K+wRfnb2/UA@public.gmane.org>
2015-05-29 11:35                           ` Enrico Weigelt, metux IT consult
     [not found]                             ` <55684F07.7050402-d/C+FbuhHiA@public.gmane.org>
2015-05-29 22:16                               ` David Lang
2015-05-30 15:28                                 ` Geert Uytterhoeven
     [not found]                                 ` <alpine.DEB.2.02.1505291512000.4429-UEhY+ZBZOcqqLGM74eQ/YA@public.gmane.org>
2015-06-01 13:12                                   ` One Thousand Gnomes
2015-06-01 15:19                                     ` Warner Losh
2015-05-29  3:31             ` Rob Landley
     [not found]               ` <CAOS_Y6QXHdWfi9qkRmw=mCn0mqha5-NrzumBMqJ61_YRndypLA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-29 15:10                 ` Enrico Weigelt, metux IT consult
     [not found]                   ` <55688182.3010606-d/C+FbuhHiA@public.gmane.org>
2015-05-29 22:21                     ` David Lang
2015-05-30  2:43                   ` Jean-Christophe PLAGNIOL-VILLARD
2015-06-22 12:57           ` Pavel Machek
2015-05-30 19:59     ` Jeroen Hofstee
     [not found]       ` <556A169E.8030909-D9wZyEIIrd305oU+jsXUgg@public.gmane.org>
2015-05-31  7:12         ` Warner Losh
2015-06-01 13:17           ` One Thousand Gnomes

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=CAL_JsqKLmePHHe+4n4xwiFhjo+wZ+V774i3eY9Z07+61SDHyYQ@mail.gmail.com \
    --to=robherring2-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=licensing-dGWS0fDw8IM@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).