This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


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

Re: Adding inbyte, outbyte to libgloss


russell wrote:

> Hi all,
>
> I'm trying to add serial-port stdin/stdout support for the
> hitachi H8/300H cpu.
>
> I read porting.texi in newlib-1.8.3/libgloss/doc, and
> configure.texi in newlib-1.8.3/etc, but things are still
> unclear.
>
> When i do "../newlib-1.8.3/configure --target=h8300-hms",
> i get:
>
> Configuring for a i686-pc-linux host.
> *** This configuration is not supported in the following subdirectories:
>      target-libgloss
>     (Any other directories should still work fine.)
> Created "Makefile" in /home/russell/newlib
>
> I can get rid of this by deleting target-libgloss from line 676
> (noconfigdirs) of newlib-1.8.3/configure.in. Should i do this so
> i can add stuff to libgloss?
>

Yes, that is correct.

>
> I assume next i should add a directory such as
> newlib-1.8.3/libgloss/h8300 with these files:
>
> CVS/         configure*    crt0.S    outbyte.c
> Makefile.in  configure.in  inbyte.c  syscalls.c
>
> Anything else to do?
>

You also have to change the libgloss/configure.in file to specify h8300 as a
configdir
and then regenerate the libgloss/configure.

>
> Do i need to redo inbyte/outbyte, or read/write as well?
>

I have no idea what is in your syscalls.c file.  In the newlib info docs
(source file: libc/sys.tex)
you will see the various syscalls required by newlib; two of which are read
and write.

-- Jeff Johnston (Red Hat Inc)



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