linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel source tree splitting
@ 2003-04-30 23:46 rmoser
  2003-05-01  0:21 ` Randy.Dunlap
  0 siblings, 1 reply; 24+ messages in thread
From: rmoser @ 2003-04-30 23:46 UTC (permalink / raw)
  To: linux-kernel

Eh, Linus won't be happy making a bunch of tarballs.
I've made it less work if you read the message here...

The message mirrored at:

http://marc.theaimsgroup.com/?l=linux-kernel&m=105173077417526&w=2

Shows my pre-thought on this subject.  I thought a bit more,
and began to come up with a simple sketch to lead the
way in case anyone becomes interested.

First off, the kernel tarballs would be built by a script
that splits the source tree apart appropriately and tar's it
up.  How this is done is explained.

Second off, there's always a script to download that runs
wget and gets the source tree from which it was downloaded.
The whole thing.  As in, every tarball is downloaded and
untar'd for the user, assembling the full kernel source
tree (as it would be if you untar'd it now).

Now, I explained LOD's in that message above in small
detail.  But, for clarity, LOD's are files which explain
which pieces of source in the kernel tree belong to the
LOD; what gets added to the config; where their makefiles
are; what config options depend on other linux options;
and what groups these LOD's are in.

A command such as `make disttree` should read the LOD's,
split apart each linux option, tar 'em together, and
then compress the tar's.  Then Linus could just scp the
new directory of tar's and a script up.

As for download, the script that goes up can be
downloaded (duh), and then run (... why do I bother?).
Now this script would run in "dumb mode" (unless the
user tells it not to maybe?) and rip down the whole
tree, untar it, and rebuild the original source tree.
I think.  I'm not sure, I really haven't tried yet.
I'll tell you how it works after it's implimented, if
ever that happens.  This would likely require wget.

Of course there's always the ftp method.  Go download
the pieces you want, untar 'em, copy 'em to the same
directory, and the build system adjusts.  but newbies
and developers, for completely opposite reasons, will
want to use the script in dumb mode.

For experienced users, this will make configuration
somewhat easier, as the user can avoid being prompted
for irrelavent drivers.  This is just a concept idea,
not a fully thought-out idea.  What do you think?

--Bluefox Icy



^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Kernel source tree splitting
@ 2003-05-01 11:54 Chuck Ebbert
  2003-05-01 14:06 ` Martin J. Bligh
  2003-05-01 17:22 ` Balram Adlakha
  0 siblings, 2 replies; 24+ messages in thread
From: Chuck Ebbert @ 2003-05-01 11:54 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel

Martin J. Bligh wrote:

>> So there are many edits that needed to be done in lots of
>> Kconfig and Makefiles if one selectively pulls or omits certain
>> sub-directories.
>
> Indeed, I ran across the same thing a while back. Would be *really* nice to
> fix, if only so some poor sod over a modem can download a smaller tarball,
> or save some diskspace.

 I have seven source trees on disk right now.  Getting rid off all
the archs but i386 would not only save tons of space, it would also
make 'grep -r' go faster and stop spewing irrelevant hits for archs
that I couldn't care less about.


------
 Chuck

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Kernel source tree splitting
@ 2003-05-01 16:00 Chuck Ebbert
  0 siblings, 0 replies; 24+ messages in thread
From: Chuck Ebbert @ 2003-05-01 16:00 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel

> But whilst you're waiting, hardlink everything together, and 
> patch the differences (patch knows how to break hardlinks).

  I don't trust that approach -- too easy to screw up.

> Make a script that cp -lR's the tree to another copy (normally
> takes < 1s), and then remove the other arches. grep that.

  That could work for the reference tree.

> cscope with prebuilt indeces on a filtered subset of the files may well do
> better than grep, depending on exactly what you're doing (does 99% of it
> for me).

  Have you tried lxr?  The website is cool but you really need a local
copy for speed.

------
 Chuck

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2003-05-02  0:31 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-30 23:46 Kernel source tree splitting rmoser
2003-05-01  0:21 ` Randy.Dunlap
2003-05-01  0:44   ` rmoser
2003-05-01  2:51     ` Randy.Dunlap
2003-05-01 10:13       ` rmoser
2003-05-01  0:52   ` Larry McVoy
2003-05-01  1:00     ` rmoser
2003-05-01 17:28     ` James H. Cloos Jr.
2003-05-01  4:10   ` Martin J. Bligh
2003-05-01  6:14     ` Ed Sweetman
2003-05-01  6:14       ` Peter Riocreux
2003-05-02  0:09   ` Randy.Dunlap
2003-05-02  0:41     ` rmoser
2003-05-01 11:54 Chuck Ebbert
2003-05-01 14:06 ` Martin J. Bligh
2003-05-01 14:20   ` Willy TARREAU
2003-05-01 14:35     ` Martin J. Bligh
2003-05-01 14:43       ` Willy TARREAU
2003-05-01 15:01       ` Larry McVoy
2003-05-01 15:11         ` Martin J. Bligh
2003-05-01 17:22 ` Balram Adlakha
2003-05-01 17:28   ` Ben Greear
2003-05-01 20:03     ` John Bradford
2003-05-01 16:00 Chuck Ebbert

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).