From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: Jerry Van Baren <gerald.vanbaren@ge.com>,
Jon Loeliger <jdl@jdl.com>,
Kumar Gala <galak@kernel.crashing.org>
Cc: linux-ppc list <linuxppc-dev@ozlabs.org>,
u-boot-users <u-boot-users@lists.sourceforge.net>
Subject: Re: libfdt as its own repo and submodule of dtc?
Date: Wed, 31 Oct 2007 08:50:24 -0400 [thread overview]
Message-ID: <47287A10.2030304@ge.com> (raw)
In-Reply-To: <20071030234011.GE2784@localhost.localdomain>
David Gibson wrote:
> On Tue, Oct 30, 2007 at 01:14:06PM -0400, Jerry Van Baren wrote:
>> Jon Loeliger wrote:
>>> So, like, the other day Kumar Gala mumbled:
>>>> Jon,
>>>>
>>>> It seems like have libfdt as a unique git repo that is a submodule of
>>>> the things that need it (dtc, u-boot, etc.) might make some sense and it
>>>> easier for the projects that need to pull it in.
>>>>
>>>> Is this something you can take a look at? (or have other ideas on).
>>> I would be fine with making libfdt a git repository separate
>>> from the DTC repository if that makes it easier to integrate
>>> it with other projects.
>
> I don't think it's a good idea to make dtc and libfdt entirely
> seperate repositories (again). Being able to use both together in
> their combined testsuite is very useful (libfdt is used to check trees
> generated by dtc, dtc is used to generate example trees for libfdt
> testing).
>
> I'm not sure how submodules/subrepositories work so I don't know if
> that makes sense.
>
>> That sounds like a good idea to me. I would really prefer pulling patches
>> out of a libfdt repo into the u-boot repo rather than trying to kerchunk
>> upgrade lumps. While we can do this with a dtc repo, it potentially makes
>> it a lot more difficult.
>
> I don't think upgrading embedded copies by diff is a good way to go.
> The upgrade method I had in mind was to pull out a whole new copy of
> libfdt, drop that into the embedding project verbatim and generate a
> new diff there in whatever their source tracking system is. I set out
> the repository to make this easy.
I looked at this some more last night and thought about it a bit and
still am conflicted...
Pros for pulling/applying diffs/patches
----
* History is preserved, including "signed-off-by" lines. This is a
*major* positive.
* Individual patches are small, allowing better publishing and
reviewing. This is a double-edged sword (see Cons).
Cons
----
* Uninteresting files may be touched by the patches, causing patch
breakage. An example of this is the original libfdt had a test
subdirectory (subsequently promoted to the same level as ./libfdt and
generalized to be a dtc+libfdt test suite). When I grabbed the original
snapshot of libfdt, I did not pick up the test suite, so any patches
that include the test suite (many older ones) will have problems.
* Tracking patches in a different repository and applying them is a lot
of WORK.
* Publishing patches for review on the u-boot list has marginal benefit.
If someone on the u-boot list has a problem with a patch, *I'm* not at
all interested in being an intermediary carrying the flames across two
mail lists between David, who isn't on the u-boot list, and Joe Uboot,
who isn't on the linuxppc-dev list. Hoo boy, would that be an untenable
situation! <http://en.wikipedia.org/wiki/Prometheus> (I prefer to have
alcohol eat my liver, not an eagle, thankyouverymuch.)
----
At this point, I'm inclined to do a "big bang" update to the (nearly)
current state, thanks to Kumar, and see how it works to apply patches to
incrementally move it forward.
Hmmm, I need to get back to the topic... the bottom line is, at this
point I don't see any major benefit of having libfdt in a separate git
repo. I don't see it as making my task significantly easier and would
just add hassle to Jon and David's life.
Best regards,
gvb
next prev parent reply other threads:[~2007-10-31 13:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 15:23 libfdt as its own repo and submodule of dtc? Kumar Gala
2007-10-30 15:56 ` Jon Loeliger
2007-10-30 17:14 ` Jerry Van Baren
2007-10-30 23:40 ` David Gibson
2007-10-31 12:50 ` Jerry Van Baren [this message]
2007-11-01 6:55 ` Kumar Gala
2007-10-31 22:56 ` David Gibson
2007-11-01 14:04 ` Jon Loeliger
2007-11-02 0:34 ` 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=47287A10.2030304@ge.com \
--to=gerald.vanbaren@ge.com \
--cc=galak@kernel.crashing.org \
--cc=jdl@jdl.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=u-boot-users@lists.sourceforge.net \
/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).