From: David Gibson <david@gibson.dropbear.id.au>
To: Jerry Van Baren <gerald.vanbaren@comcast.net>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: libfdt: going forward for u-boot
Date: Thu, 22 Mar 2007 11:49:59 +1100 [thread overview]
Message-ID: <20070322004959.GE2295@localhost.localdomain> (raw)
In-Reply-To: <4601C8F7.5060006@comcast.net>
On Wed, Mar 21, 2007 at 08:08:23PM -0400, Jerry Van Baren wrote:
> Hi David,
>
> I'm using libfdt in u-boot and getting close to pushing u-boot changes
> upstream. I'm curious what libfdt's legal status is WRT dual licensing
> and the legal dogs you've unleashed.
Um.. still working on it. I've been through one round with the
lawyers, and I've spent the last few days gathering my energy to
adjust my proposal for another pass. Progress is happening, albeit
fairly slowly.
> One thought that occurred to me since we last discussed this is to
> relicense it LGPL. That way it could be linked into proprietary code
> without having to maintain a dual license and the copyright assignment
> headaches that come with outside contributors.
Heh. The lawyers suggested that too, but I talked them out of it.
The trouble with LGPL is that to satisfy its conditions you need to be
pretty careful about how you link things together. Working in the
constrained environment of a bootloader also puts technical conditions
on how you can link things.
Satisfying both at once might be possibly, but it's fiddly at the very
least. I don't want to make life that difficult for libfdt users. I
think what we'll end up with is GPL with a special exception allowing
fairly unrestricted use of libfdt. This is like the license on bison,
though the exception text will probably be different.
> I made some trivial changes to fdt.h and libfdt_env.h to allow libfdt to
> compiler both on linux and for u-boot. I've attached a patch since it
> _is_ trivial.
> Here is the thumbnail sketch of my current changes to use libfdt in u-boot:
>
> Makefile
> --------
> * Replaced with a u-boot version, unavoidable.
>
> fdt.h
> -----
> * See attached patchfile for trivial change to allow compiling under
> linux and u-boot.
I'm actually more inclined to just remove the #include from fdt.h
entirely and require users to provide the stdint types, by whatever
means, before they include fdt.h. It's a bit icky, but I think it's
the sanest way to allow building in multiple environment.
> libfdt_env.h
> ------------
Gah. Let me say this again:
libfdt_env.h is *supposed* to be replaced for the environment
into which you're building libfdt.
To be replaced is libfdt_env.h's entire purpose in existence.
The provided libfdt_env.h is an example for userspace builds
only.
[snip]
> fdt_rw.c
> --------
> * Nonessential improvements to fdt_open_into()
> * Validate the header (fdt_move() does the validation, but I skip
> the move if buf == fdt so I needed to add the validation)
> * Do the fdt_move() only if (buf != fdt) - I call this at times with
> a new (longer) length but don't want to actually move the blob,
> just want the longer length so I can modify the fdt in-place. The
> current code works, but it seemed silly to do a move if I'm not
> actually moving it.
If fdt == buf, the memmove() in fdt_move() will become a no-op in any
case. I don't see any point to conditionalizing the fdt_move().
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2007-03-22 0:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 0:08 libfdt: going forward for u-boot Jerry Van Baren
2007-03-22 0:49 ` David Gibson [this message]
2007-03-22 1:12 ` Jerry Van Baren
2007-03-22 1:25 ` David Gibson
2007-03-22 1:37 ` Jerry Van Baren
2007-03-22 1:49 ` David Gibson
2007-03-22 11:16 ` Segher Boessenkool
2007-03-22 16:42 ` Hollis Blanchard
2007-03-23 4:17 ` David Gibson
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=20070322004959.GE2295@localhost.localdomain \
--to=david@gibson.dropbear.id.au \
--cc=gerald.vanbaren@comcast.net \
--cc=linuxppc-dev@ozlabs.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).