From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 07:54:06 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 7341516A4CE for ; Tue, 2 Mar 2004 07:54:06 -0800 (PST) Received: from nexlab.it (unknown [213.198.155.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 773F443D31 for ; Tue, 2 Mar 2004 07:54:05 -0800 (PST) (envelope-from thefly@acaro.org) Received: (qmail 6268 invoked by uid 1220); 2 Mar 2004 15:54:03 -0000 Message-ID: <20040302155403.6267.qmail@nexlab.it> References: <20040302110343.20597.qmail@nexlab.it> <20040302151722.GA10533@cre85086tuf.rose.agilent.com> In-Reply-To: <20040302151722.GA10533@cre85086tuf.rose.agilent.com> From: thefly@acaro.org To: Chuck Tuffli Date: Tue, 02 Mar 2004 16:54:03 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 03 Mar 2004 04:53:47 -0800 cc: freebsd-hackers@freebsd.org Subject: Re: 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:54:06 -0000 I did that. I've got some #difine collisions with PCI and some system defines not finding files like: @/sys/bus.h:320: device_if.h: No such file or directory @/sys/bus.h:321: bus_if.h: No such file or directory In file included from wd1100-lkm.c:28: @/pci/pcivar.h:176: pci_if.h: No such file or directory In file included from wd1100-lkm.c:28: or problems with functions not found like: @/pci/pcivar.h: In function `pci_enable_io': @/pci/pcivar.h:274: warning: implicit declaration of function `PCI_ENABLE_IO' @/pci/pcivar.h: In function `pci_disable_io': @/pci/pcivar.h:280: warning: implicit declaration of function `PCI_DISABLE_IO' @/pci/pcivar.h: In function `pci_set_powerstate': @/pci/pcivar.h:307: warning: implicit declaration of function `PCI_SET_POWERSTATE' code is here: http://chiakotay.nexlab.it/acaro/wd1100/wd1100.c Chuck Tuffli writes: > 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.