Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:
o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h
It is now possible to include <sys/socket.h> directly for example.
Generate one Makefile which builds everything including tests.
This is part of a larger patch where network command structure is being
ported. It was easier to move these files in than to carve it out of
the command code.
+ SED_PATTERN was broken when IPV6 enabled. The sed produced a
zero length rtems-bsd-config.h.
+ "make install" without all did not produce GENERATED_FILES
+ Install .h files in contrib/altq. Needed by new libc commands
being added shortly.
+ Do not copy <sys/uio.h> and <sys/_iovec.h> from FreeBSD. They
are provided by RTEMS now.
+ net/if_stf.c appears to be strictly IPV6 functionality. Make building
it conditional on IPV6.
If you define DISABLE_IPV6=yes to the config.inc, then the
rtems-bsd-config.h file will be modified accordingly and
the IPV6 kernel sources will not be built. This is easier
to manage and more correct than having a patch to do the same.
Each target has the option of reusing a file from another target.
To be able to get pieces from different architectures cleanly,
files are copied by the Makefile to a central directory named "copied".
This makes them easier to remove and keeps the source tree clean.
+ sparc did not really have a unique in_cksum.c and Makefile
needed to be adjusted to reflect this
+ some destination directories for copied files did not exist.
make the destination directory before copying.
This is really not a great thing to do as it messes with the source
tree but it works for now. It would be better to make a special
place to put generated source and integrate that into the build system.
The MIPS in_cksum.c method supports big and little endian targets. This
does not include any inline assembly and should be reasonable for most
targets.