From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 14:17:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FAA316A4CE for ; Thu, 5 Aug 2004 14:17:55 +0000 (GMT) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3096643D1F for ; Thu, 5 Aug 2004 14:17:55 +0000 (GMT) (envelope-from chuck_tuffli@agilent.com) Received: from enccos4.cos.agilent.com (enccos4.cos.agilent.com [130.29.152.93]) by msgbas1x.cos.agilent.com (Postfix) with SMTP id B58B72786F; Thu, 5 Aug 2004 08:17:54 -0600 (MDT) Received: from relcos1.cos.agilent.com (130.29.152.239) by enccos4.cos.agilent.com (Sigaba Gateway v3.83) with ESMTP id 20854819; Thu, 05 Aug 2004 08:18:22 -0600 Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 5DD5869A; Thu, 5 Aug 2004 08:17:54 -0600 (MDT) Received: from cre85086tuf.rose.agilent.com (cre85086tuf [130.30.174.150]) ESMTP id HAA27607; Thu, 5 Aug 2004 07:17:52 -0700 (PDT) Received: by cre85086tuf.rose.agilent.com (Postfix, from userid 1001) id C040919E2AF; Thu, 5 Aug 2004 07:21:11 -0700 (PDT) Date: Thu, 5 Aug 2004 07:21:11 -0700 From: Chuck Tuffli To: cd_freebsd Message-ID: <20040805142111.GA14648@cre85086tuf.rose.agilent.com> References: <200408041609.AA23724184@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408041609.AA23724184@gatorzone.com> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: Compiling Kernel Module with Current Kernel Options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:17:55 -0000 On Wed, Aug 04, 2004 at 04:09:22PM -0400, cd_freebsd wrote: > I have an SMP machine, so after installing the GENERIC version of > FreeBSD 4.7, I created my own version of the kernel that included > SMP support and DDB. > > Being a device driver writer, I created my Makefile just as > perscribed, but when I compiled my code, the SMP define was not set. > It appears that the build process did not include the options found > in opt_global.h. > > How do you build a driver that includes the proper options? Is there > something special I have to do to make these options available to my > driver? I'm not sure what the problem is here, but could it be that the build is picking up the wrong set of includes? After you built the SMP kernel, did you copy kernel to / or did you do a make install? I've built at least a SCSI driver for 4.7 for a SMP machine and don't remember having to do anything special. -- Chuck Tuffli Agilent Technologies, Storage Area Networking