Compilation
thefly at acaro.org
thefly at acaro.org
Tue Mar 2 07:54:06 PST 2004
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 at 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.
More information about the freebsd-hackers
mailing list