This is the mail archive of the
mailing list for the newlib project.
Re: how can I compile libc/sys/linux on other platform ?
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: 吴昊宇 <wulaishiwo at vip dot sina dot com>
- Cc: newlib <newlib at sources dot redhat dot com>
- Date: Wed, 23 Mar 2005 16:32:42 -0500
- Subject: Re: how can I compile libc/sys/linux on other platform ?
- References: <200503230852.j2N8qfJ9005665@mx1.redhat.com>
As you have noted, the current linux directory only support x86. To add arm
and mips support, you will have to start by adding new machine directories for
arm and mips in the machine directories that are under libc/sys/linux. In these
directories, you will have to create arm and mips versions of the files that are
currently under i386. You will find one machine directory in the linuxthreads
subdirectory and one directly off of the linux directory.
The machine code is partly taken from glibc so you might find it useful to
reference the glibc source for things such as how to do a spinlock or syscall in
-- Jeff J.
> I want to compile libc/sys/linux on other platform ,such as mips or arm .
> I got to know libc/sys/linux support only x86 , but if I want it to support mips or arm , what should I do ?
> I try to add some to Makefile.am and Makefile.in ,configure,configure.in , and it works , I can compile the directory libc/sys/linux , but it seems I can't go father becourse of compile error.
> is there some ways to make it work ? thanks !