Subject: Re: Cross-compiling kernels...
To: None <port-hp300@NetBSD.ORG>
From: Peter Maydell <pm215@cam.ac.uk>
List: port-hp300
Date: 05/01/1997 21:11:29
Jason Thorpe wrote:
>On Thu, 01 May 1997 14:15:33 +0100 
> Peter Maydell <pm215@cam.ac.uk> wrote:
> > I have just successfully cross-compiled a NetBSD kernel on Linux
>
>...I would imagine that you're not using NetBSD-current, then.
>NetBSD-current has several changes to support cross-compiling.

Yep, I'm still on 1.2.

>The src/usr.bin/make directory in NetBSD-current should compile
>out-of-the-box on just about any system these days.

...but not Linux :-> I had to edit util.c to put in an appropriate
#ifdef -- util.c tries to define versions of vsnprintf() and snprintf(),
and these collide with the ones in the GNU libc.

> > I shall probably eventually stick some details on my WWW site 
> > (http://mnementh.trin.cam.ac.uk/),
>
>....yah, that'd be cool.

Nice to be appreciated :->
http://mnementh.trin.cam.ac.uk/hp/cross.html  is now available.

While I'm here, can I ask a question or two about device drivers?
I'm still thinking about the HPIB driver, but getting a bit stuck
due to the lack of any documentation...

hpib.c gives driver entry points in a struct driver{}. match() [probe for
device in autoconfigure stage] and attach() [actually initialise the
device] I understand, but start(), go(), intr() and done() are less
obvious. Could somebody give me a quick guide to what they're all for?

Peter Maydell
{ There are exactly 12 comments in nhpib.c, including version info, 
  copyright details and one /* NOTREACHED */  :-> }