Re: [PATCH v6] checkpatch.pl: Add SPDX license tag check
From: Rob Herring
Date: Fri Feb 02 2018 - 13:30:15 EST
On Fri, Feb 2, 2018 at 9:49 AM, Igor Stoppa <igor.stoppa@xxxxxxxxxx> wrote:
> On 02/02/18 17:40, Rob Herring wrote:
>> Add SPDX license tag check based on the rules defined in
>
> Shouldn't it also check that the license is compatible?
>
Perhaps we shouldn't try to script legal advice.
> [...]
>
>> + } elsif ($realfile =~ /\.rst$/) {
>> + $comment = '..';
>
> What is the correct/acceptable license for documentation?
> Creative Commons? AFAIK GPL is for source code.
At least for the DT bindings, we probably want those to be Apache v2
because that's what the DT spec is. But that really only matters on
the common bindings. But then are device specific bindings derived
from those? And we have include/dt-bindings/ which are part of binding
definition/doc and those get used in dts (GPL, MIT or BSD) and source
files. In summary, it's complicated...
Rob