From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 07:17:39 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 0C34F16A4CE for ; Tue, 2 Mar 2004 07:17:39 -0800 (PST) Received: from msgbas2x.cos.agilent.com (msgbas1tx.cos.agilent.com [192.25.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBF5A43D1F for ; Tue, 2 Mar 2004 07:17:38 -0800 (PST) (envelope-from chuck_tuffli@agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 67CE588FD; Tue, 2 Mar 2004 08:17:38 -0700 (MST) Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 150915BA; Tue, 2 Mar 2004 08:17:38 -0700 (MST) Received: from cre85086tuf.rose.agilent.com (cre85086tuf [130.30.174.150]) ESMTP id HAA11741; Tue, 2 Mar 2004 07:17:36 -0800 (PST) Received: by cre85086tuf.rose.agilent.com (Postfix, from userid 1001) id A8CB819E2AC; Tue, 2 Mar 2004 07:17:22 -0800 (PST) Date: Tue, 2 Mar 2004 07:17:22 -0800 From: Chuck Tuffli To: thefly@acaro.org Message-ID: <20040302151722.GA10533@cre85086tuf.rose.agilent.com> References: <20040302110343.20597.qmail@nexlab.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040302110343.20597.qmail@nexlab.it> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: [Driver WD1100] Compilation 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: Tue, 02 Mar 2004 15:17:39 -0000 On Tue, Mar 02, 2004 at 06:03:43AM -0500, thefly@acaro.org wrote: > hello, i've got a question about the driver compilation. I finally wrote > my driver, and i'm trying to compile it to test it. I tryed to use > /usr/share/examples/drivers/make_device_driver.sh to build the whole > stuff, but it doesn't work... Anyway I put the driver.c and the header i [snip] Try creating a Makefile similar to the other loadable modules. For example, MAINTAINER = you@yourdomain.whatever KMOD = mydriver .PATH: ${.CURDIR}/../../dev/wd SRCS = driver.c .include Then just type make. See src/sys/modules/*/Makefile for other examples. -- Chuck Tuffli Agilent Technologies, Storage Area Networking