Subject: Re: sgivol as host tool?
To: None <port-sgimips@netbsd.org>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sgimips
Date: 12/10/2003 09:07:23
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)

-- Chris
	GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5  938E 023E EEFB FEB9 DE7F)