Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 2004 16:54:03 +0100
From:      thefly@acaro.org
To:        Chuck Tuffli <chuck_tuffli@agilent.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Compilation
Message-ID:  <20040302155403.6267.qmail@nexlab.it>
In-Reply-To: <20040302151722.GA10533@cre85086tuf.rose.agilent.com>
References:  <20040302110343.20597.qmail@nexlab.it> <20040302151722.GA10533@cre85086tuf.rose.agilent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.kmod.mk> 
> 
> Then just type make. See src/sys/modules/*/Makefile for other
> examples.
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040302155403.6267.qmail>