Date: Tue, 2 Mar 2004 07:17:22 -0800 From: Chuck Tuffli <chuck_tuffli@agilent.com> To: thefly@acaro.org Cc: freebsd-hackers@freebsd.org Subject: Re: [Driver WD1100] Compilation Message-ID: <20040302151722.GA10533@cre85086tuf.rose.agilent.com> In-Reply-To: <20040302110343.20597.qmail@nexlab.it> References: <20040302110343.20597.qmail@nexlab.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.kmod.mk> Then just type make. See src/sys/modules/*/Makefile for other examples. -- Chuck Tuffli <chuck_tuffli AT NO_SPAM agilent DOT com> Agilent Technologies, Storage Area Networking
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040302151722.GA10533>