Subject: Re: LKM Module Template for 1.6.2
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Sam Thigpen <sthigpen@sdf.lonestar.org>
List: tech-kern
Date: 03/05/2004 00:39:54
On Thu, 4 Mar 2004, Jaromir Dolecek wrote:
> Date: Thu, 4 Mar 2004 10:56:41 +0100 (CET)
> From: Jaromir Dolecek <jdolecek@NetBSD.org>
> To: Sam Thigpen <sthigpen@sdf.lonestar.org>
> Cc: tech-kern@NetBSD.org
> Subject: Re: LKM Module Template for 1.6.2
>
> Sam Thigpen wrote:
> > trap.h for -current and 1.6.2 just contains:
> > ---
> > /* $NetBSD: trap.h,v 1.7 2003/02/26 21:29:03 fvdl Exp $ */
> >
> > #include <x86/trap.h>
> > ---
>
> The one for 1.6.2 is:
>
> /* $NetBSD: trap.h,v 1.4 1994/10/27 04:16:30 cgd Exp $ */
>
> and is result of cvs co/up -r netbsd-1-6. What you pasted is -current
> include. I believe you need up-to-date toolchain to be able
> to compile -current kernels. LKMs for 1.6.2 should compile
> just fine on 1.6.2 of course, once you'd use correct source tree.
Right now I am just doing:
./build.sh tools
and for -current
./build.sh -O /usr/obj -D /usr/NetBSD-new-build -T /usr/tools build
Yes, I see the 1.6.2 trap.h from sourcecd.iso:syssrc.tgz is
correct.
Thanks,
Sam.
------------------------------------------------------
SA Thigpen * KL1FE * http://sthigpen.freeshell.org
------------------------------------------------------