In article <[EMAIL PROTECTED]>
Juli Mallett <[EMAIL PROTECTED]> writes:
> For example "platform sgimips" implies
> "options SGIMIPS". Below are patches to makefile glue and config(8)
> itself.
I think that using '#ifdef <machine>' (like #ifdef PC98) is not a good
idea. If it requires, the file should be splited into sys/<machine>.
I'll split some files in sys/i386 into sys/pc98.
> For clarity, this is used in cases where the platform may define its
> own values that a header needs, and as such, you might see something
> in <machine/endian.h> like:
> #include <platform/endian.h>
How about next way?
- Install sys/${MACHINE}/include into /usr/include/${MACHINE}
- Symlink /usr/include/machine -> /usr/include/${MACHINE}
- If ${MACHINE} != ${MACHINE_ARCH},
install sys/${MACHINE_ARCH}/include into /usr/include/${MACHINE_ARCH}
For example, sys/pc98/include/endian.h is '#include <i386/endian.h>'
only.
---
TAKAHASHI Yoshihiro <[EMAIL PROTECTED]>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message