[Kernel-janitors] LinuxCPD - New mini project

Arnd Bergmann arnd at arndb.de
Wed Sep 29 23:24:00 EST 2004


On Mittwoch, 29. September 2004 03:51, Jon Masters wrote:
> On Tue, 28 Sep 2004 18:05:32 -0700 (PDT), Aaron Grothe
> <ajgrothe at yahoo.com> wrote:
> 
> > I've put a small project up at Sourceforge http://linuxcpd.sf.net
> 
> > Looking at I'm happily surprised about
> > how much less duplicated code there appears to be in the 2.6 kernel series.

Much of the improvements can probably be attributed to merging the 64 bit
subarchitectures of mips and s390 into their respective 32 bit trees.

> Generally a good thing. It does reveal quite a few duplications
> between ppc and ppc64 trees which might be worth pursuing sometime.

It may not be a good idea to follow the same route as mips and s390
for ppc64 and completely get rid of the 64 bit tree, because the ppc64
tree already doesn't need much of the legacy code in ppc.
OTOH, it would be nice to share the include/asm tree in order to
simplify life for multilib build environments. For arch/ppc*/, we
could follow the approach of x86_64, where the files with identical
functionality are simply built in the arch/i386 tree. See the
patch below for a trivial example of this (these two files are
already identical on ppc and ppc64).
Unifying the xmon directory could be something more interesting.

	Arnd <><

diff -u -r1.2 Makefile
--- ./arch/ppc64/lib/Makefile	7 Sep 2004 10:32:45 -0000	1.2
+++ ./arch/ppc64/lib/Makefile	29 Sep 2004 13:06:00 -0000
@@ -2,8 +2,11 @@
 # Makefile for ppc64-specific library files..
 #
 
-lib-y := checksum.o dec_and_lock.o string.o strcase.o
+lib-y := checksum.o string.o 
 lib-y += copypage.o memcpy.o copyuser.o
+
+obj-y += ppclib.o
+ppclib-y := $(addprefix ../../ppc/lib/,dec_and_lock.o strcase.o)
 
 # Lock primitives are defined as no-ops in include/linux/spinlock.h
 # for non-SMP configs. Don't build the real versions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20040929/e8c6a439/attachment.pgp 


More information about the Linuxppc64-dev mailing list