This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Linux for the mips-elf target
- From: Shaun Jackman <sjackman at gmail dot com>
- To: Alexander Slack <alexslack at dsl dot pipex dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Sat, 30 Apr 2005 14:01:48 -0700
- Subject: Re: Linux for the mips-elf target
- References: <42738DCF.8010101@dsl.pipex.com>
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
On 4/30/05, Alexander Slack <alexslack@dsl.pipex.com> wrote:
> Hi all,
>
> I use newlib compiled for the target mips-elf, for a mips/unix emulator
> I am writing. However I am unable to compile any networking programs
> because socket.h and associated functions are not present for that
> target in newlib.
>
> The only implementation for them is in libc/sys/linux, and that seems to
> be i386 only.
>
> - I'm not very good with configure scripts or makefiles, so how do I get
> newlib to build the libc/sys/linux directory?
> - Am I right in thinking I have to implement my own
> libc/sys/linux/machine/mips syscall stuff? Are there any other changes I
> need make?
> - Does the linux stuff have any dependence on linux kernel files?
> Because I'd rather not use those, only newlib and what I can implement
> myself.
>
> Thanks for any help.
>
> Alex.
Hi Alex,
I've been doing something similar for arm-elf. The first step was
pulling all the header files into the right place so that I could at
least compile an application that uses sockets. I can send this glob
of header files your way, if you like.
Cheers,
Shaun