[klibc] [PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory

Sam Ravnborg sam at ravnborg.org
Sun Jul 9 16:05:32 PDT 2006


On Sun, Jul 09, 2006 at 03:19:04PM -0700, H. Peter Anvin wrote:
> Sam Ravnborg wrote:
> >This fixes a long standing issue where it was not possible to
> >do "make usr/klibc/arch/x86_64/longjmp.o" in the kernel.
> >
> >The principle is that all .o files to be part of klibc are listed
> >with klib-y. For each directory a klib.list file is made that specify
> >all .o file and the final AR then adds all .o files to create libc.a.
> >
> >This patch introduce the infrastructure and converts x86_64 to use it.
> >And it breaks all other architectures...
> >
> 
> This looks like The Right Thing to me, for sure.  With two examples 
> (x86_64 and i386) it shouldn't be too hard to fix up the remaining 
> architectures.

I will give the rest a spin during the week and resubmit the patch
serie. alpha, sparc and cris looks the most difficult for now.
I will probarly submit somthing that is only compile tested on a few
architectures (what I have crosscompile support for atm) but fixing any
bugs should be trivial.

	Sam



More information about the klibc mailing list