This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to submit large patch for xtensa-linux?


On Tue, May 11, 2004 at 06:34:22PM -0700, Michael Eager wrote:
> I think that there has to be a better method of ensuring that
> architectures are supported rather than the kludge (IMO) of using
> add-on and separate files which are not distributed with the core
> sources.  My preference is to have sources integrated into the
> source tree.  An "add-on" would be my last choice.  If it were a
> choice between distributing a patch to glibc which had the same
> source file organization versus a patch which created an "add-on"
> with a different file organization, my preference would be for the
> former.

A glibc add-on file layout is not very much different from the layout in the
tree.
For xtensa, you could have xtensa, xtensa-linuxthreads and xtensa-nptl
add-ons.  The layout in each would be:
xtensa/
configure # Might be even dummy
Banner
ChangeLog
Makefile
sysdeps/xtensa/
sysdeps/unix/sysv/linux/xtensa/

The last two directories would contain almost exactly the same files as
what you have in your tree ATM (well, #include "../foo.c" like includes
would need to be changed, but that's about it).
All changes you'd probably need to propagate to glibc itself are elf/elf.h
additions.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]