Subject: Re: sgivol as host tool?
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Ilpo Ruotsalainen <lonewolf@iki.fi>
List: port-sgimips
Date: 12/10/2003 02:13:46
On Wed Dec 10 2003 at 09:07:23 +0900, Christopher SEKIYA wrote:
> On Wed, Dec 10, 2003 at 01:38:37AM +0200, Ilpo Ruotsalainen wrote:
>
> > Why is sgivol compiled as host tool?
>
> So that bootable media can be generated during cross-compiles. Precedents are
> tools/sunlabel, tools/prep-mkbootimage, and so forth. See
> etc/etc.sgimips/Makefile.inc.
>
> > It isn't very portable piece of code
>
> Seeing as how it's essentially a wrapper for fseek()/fwrite() calls that
> makes heavy use of be*toh(), it should be sufficiently portable.
>
> > breaks cross-compiles from non-NetBSD hosts.
>
> Breaks how? (Admittedly, it's only been tested as a host tool from NetBSD
> hosts)
Linux doesn't have sys/disklabel.h nor the ioctl() used.
--
Ilpo Ruotsalainen - <lonewolf@iki.fi> - http://www.iki.fi/lonewolf/