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]
Other format: [Raw text]

Re: OS specific machine/*.h include files


"Joel Sherrill " wrote:
> 
> "J. Johnston" wrote:
> >
> > "Joel Sherrill " wrote:
> > >
> > > Sorry the patch wasn't attached. :(
> > >
> > > Now it is.
> > >
> >
> > Joel, this patch has a similar problem with the advertising clause.  The following
> > notice is relevant:
> >
> > ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
> 
> Any file with the notice is from the port of the FreeBSD TCP/IP
> stack to RTEMS.  Based upon my reading of that URL, we are free
> to delete the advertising noticing in them. Is that what you
> would believe as well?
> 

Yes.  That is how I read it.  

> > I do have a technical problem with the patch.  The header files copied from the sys/machine/$(machine_dir)/.. directories must occur after copying the
> > generic sys/machine
> > headers.
> 
> :(  Which stanza?  There seemed to be multiple ones which did
> the same thing to different places.
> 
> But I'm happy you aren't arguing with this on principle. :)
>

Look for sys/$(sys_dir)/machine/$(machine_dir)...  Those loops that copy
headers must appear after any of your added sys/$(sys_dir)/machine/*.h loops.
There are multiple stanzas because one target puts the header files in a build header 
file area.  The second installs the header files.  Not all build header files are
installed.  The restriction I mention applies in both places.  From
what I could see, you added one of your loops at the end of all other loops.

> > > "Joel Sherrill " wrote:
> > > >
> > > > This patch is a bit more involved than the others.  This
> > > > patch makes it possible for an OS (sysdir) to have include
> > > > files in a machine subdirectory.  We ran across this trying
> > > > to deal with some of the BSD-ish things in RTEMS.  Newlib
> > > > really needed to own the RTEMS specific machine/limits.h file
> > > > but without this patch, it can't.
> > > >
> > > > NOTE:  Neither this patch not the ARM submitted a few minutes
> > > >        includes the regenerated Makefile.in.
> > > >
> > > > OK to commit?
> > > >
> > > > 2002-10-07      Joel Sherrill <joel@OARcorp.com>
> > > >
> > > >         * libc/sys/rtems/machine: New directory.
> > > >         * libc/sys/rtems/machine/limits.h,
> > > > libc/sys/rtems/machine/param.h,
> > > >         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
> > > >         libc/sys/rtems/sys/utime.h: New files added to make *-rtems
> > > > newlib
> > > >         targets more BSD like when installed without requiring
> > > > additional
> > > >         build of RTEMS itself.
> > > >         * Makefile.am: Pick up system dependent machine files such as
> > > >         found on a BSD-ish system.
> > > >         * libc/include/machine/types.h: When on an RTEMS target, define
> > > > a
> > > >         few more.
> > > >
> > > > --
> > > > Joel Sherrill, Ph.D.             Director of Research & Development
> > > > joel@OARcorp.com                 On-Line Applications Research
> > > > Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> > > >    Support Available             (256) 722-9985
> > >
> > > --
> > > Joel Sherrill, Ph.D.             Director of Research & Development
> > > joel@OARcorp.com                 On-Line Applications Research
> > > Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> > >    Support Available             (256) 722-9985
> > >
> > >   ------------------------------------------------------------------------------------------------------------------------------------------------------
> > >                 Name: hdrs.diff
> > >    hdrs.diff    Type: Plain Text (text/plain)
> > >             Encoding: 7bit
> 
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel@OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>    Support Available             (256) 722-9985


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