Porting newlib to a new os
Fri Jun 27 03:23:00 GMT 2008
> Hello everybody,
> I am trying to port newlib on top on an unsupported OS. I have already
> the system call stubs, the crt0.S file, but now I wonders how to build the
> I uses Linux as my development platform, meaning that I want to compile
> on Linux for my OS. I have seen that (I thinks the simplest way) this can
> done by replacing the *.c files in libgloss/ that implement the system calls
> with those for my OS.
> However, I would like to use the nice and portable architecture of newlib, so
> have created the directory $(NEWLIB_SRC)/newlib/libc/sys/k2, a configure.in,
> copied my system call and crt0.S files inside. Next I have added the
> in $(NEWLIB_SRC)/newlib/configure.host :
> and also the newlib/libc/sys/configure.in file.
> But now I don't known the next steps. In fact I have tried to add my OS in
> $(NEWLIB_SRC)/config.sub, but then of course it tries cross-compil with a
> i386-pc-k2-gcc etc ... which I haven't yet.
> So is there a way to compile/build the library for another OS (i.e. by
> the ld script etc ...)?
More information about the Newlib