This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Steps for porting Newlib to a new Target processor without any OS
- From: "Jon Beniston" <jon at beniston dot com>
- To: "'Sriharsha'" <sriharsha dot v at redpinesignals dot com>, <newlib at sources dot redhat dot com>
- Date: Wed, 4 Jan 2006 13:59:25 -0000
- Subject: RE: Steps for porting Newlib to a new Target processor without any OS
> 1. Our processor does'nt yet have an OS, so no system calls
> are available.
No probs, just port libgloss.
> 4. I also want some standard functions like printf use
> specific hardware (like serial port) for I/O. Where and how
> do I change this?
Libgloss. Implement _read and _write system calls to write to your UART.
> 5. Last but not the least, I tried adding my processor name
> to configure.host in newlib1.13.0/newlib/ directory, but it
> is not recognizing my processor.
Try hacking config.sub and configure.in in the root directory as well.
Cheers,
Jon