slim kernel source

3 messages, 3 authors, 2002-03-28 · open the first message on its own page

slim kernel source

From: Dan Bethe <hidden>
Date: 2002-03-27 18:30:28

Hi all.  Is there a utility or procedure which can remove a bunch of the code
from extraneous architectures from my kernel source tree?  I only want to build
kernels for my beloved Powermac 8500 and so I can do without code specific to
ia32, S390, Alpha, MIPS, and friends.

Even if you just know of a few directories I can remove and save a couple dozen
megs of space, that'd be good.

Thanks!


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: slim kernel source

From: Michel Lanners <hidden>
Date: 2002-03-28 07:27:05

On  27 Mar, this message from Dan Bethe echoed through cyberspace:
Hi all.  Is there a utility or procedure which can remove a bunch of the code
from extraneous architectures from my kernel source tree?  I only want to build
kernels for my beloved Powermac 8500 and so I can do without code specific to
ia32, S390, Alpha, MIPS, and friends.
Hmmm...
Even if you just know of a few directories I can remove and save a couple dozen
megs of space, that'd be good.
A random benh 2.4 kernel tree has 127 MB once de-tgz'ed. Of these, 69 MB
are drivers, for which it is difficult to know what you need and what
you don't need. Removing random stuff in there might break the kernel
Makefiles, too.

Which leaves arch/ (22 MB) and include/ (15 MB). In arch, 2.6 MB is ppc/
(not one of the leaner arch'es :-), but there have been cases of one
arch relying on code of some other arch.

In include/, the asm-* part is roughly 10 MB, of which asm-ppc eats
600K. Again, the caveat about dependencies between arch'es apply.

In general, the kernel sources are not meant to be cut in pieces. You
can certainly remove large parts, but you're on your own if anything
breaks.

Cheers

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: slim kernel source

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2002-03-28 09:19:27

On Wed, 27 Mar 2002, Dan Bethe wrote:
Hi all.  Is there a utility or procedure which can remove a bunch of the code
from extraneous architectures from my kernel source tree?  I only want to build
kernels for my beloved Powermac 8500 and so I can do without code specific to
ia32, S390, Alpha, MIPS, and friends.

Even if you just know of a few directories I can remove and save a couple dozen
megs of space, that'd be good.
You can remove everything under arch/ and include/ you don't need. But you'll
be very disappointed when you notice that you haven't saved a couple dozen megs
of space by doing that. The arch-specific code is _very_ small compared to all
the driver code, which is valid for most architectures.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help