Enable build of ppc(4) module on i386 and amd64 architectures.
Add proper module interdependencies. Reviewed by: marcel Approved by: pjd (mentor)
This commit is contained in:
parent
3dc41560f7
commit
a2993fcda6
@ -770,3 +770,4 @@ static driver_t lp_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(plip, ppbus, lp_driver, lp_devclass, 0, 0);
|
||||
MODULE_DEPEND(plip, ppbus, 1, 1, 1);
|
||||
|
@ -226,5 +226,6 @@ static driver_t lpbb_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(lpbb, ppbus, lpbb_driver, lpbb_devclass, 0, 0);
|
||||
MODULE_DEPEND(lpbb, ppbus, 1, 1, 1);
|
||||
MODULE_DEPEND(lpbb, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER);
|
||||
MODULE_VERSION(lpbb, 1);
|
||||
|
@ -965,3 +965,4 @@ static driver_t lpt_driver = {
|
||||
};
|
||||
|
||||
DRIVER_MODULE(lpt, ppbus, lpt_driver, lpt_devclass, 0, 0);
|
||||
MODULE_DEPEND(lpt, ppbus, 1, 1, 1);
|
||||
|
@ -575,3 +575,4 @@ static driver_t ppi_driver = {
|
||||
sizeof(struct ppi_data),
|
||||
};
|
||||
DRIVER_MODULE(ppi, ppbus, ppi_driver, ppi_devclass, 0, 0);
|
||||
MODULE_DEPEND(ppi, ppbus, 1, 1, 1);
|
||||
|
@ -321,3 +321,4 @@ static driver_t pps_driver = {
|
||||
sizeof(struct pps_data),
|
||||
};
|
||||
DRIVER_MODULE(pps, ppbus, pps_driver, pps_devclass, 0, 0);
|
||||
MODULE_DEPEND(pps, ppbus, 1, 1, 1);
|
||||
|
@ -2153,3 +2153,4 @@ ppc_teardown_intr(device_t bus, device_t child, struct resource *r, void *ih)
|
||||
|
||||
DRIVER_MODULE(ppc, isa, ppc_driver, ppc_devclass, 0, 0);
|
||||
DRIVER_MODULE(ppc, acpi, ppc_driver, ppc_devclass, 0, 0);
|
||||
MODULE_DEPEND(ppc, ppbus, 1, 1, 1);
|
||||
|
@ -193,6 +193,7 @@ SUBDIR= ${_3dfx} \
|
||||
${_pmc} \
|
||||
portalfs \
|
||||
ppbus \
|
||||
${_ppc} \
|
||||
ppi \
|
||||
pps \
|
||||
procfs \
|
||||
@ -416,6 +417,7 @@ _nve= nve
|
||||
_padlock= padlock
|
||||
.endif
|
||||
.endif
|
||||
_ppc= ppc
|
||||
_rr232x= rr232x
|
||||
_s3= s3
|
||||
_twa= twa
|
||||
@ -466,6 +468,7 @@ _ips= ips
|
||||
_mly= mly
|
||||
_ndis= ndis
|
||||
_nve= nve
|
||||
_ppc= ppc
|
||||
_rr232x= rr232x
|
||||
_safe= safe
|
||||
_scsi_low= scsi_low
|
||||
|
@ -1,24 +1,11 @@
|
||||
# $FreeBSD$
|
||||
|
||||
#.PATH: ${.CURDIR}/../../kern
|
||||
.PATH: ${.CURDIR}/../../dev/ppc
|
||||
.PATH: ${.CURDIR}/../../dev/ppbus
|
||||
|
||||
KMOD= ppc
|
||||
SRCS= bus_if.h device_if.h ppbus_if.h isa_if.h pci_if.h serdev_if.h \
|
||||
opt_ppc.h opt_isa.h \
|
||||
ppc.c ppc_pci.c ppc_puc.c
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
SRCS+= ppc_acpi.c ppc_isa.c
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
.if ${MACHINE} != "pc98"
|
||||
SRCS+= ppc_acpi.c
|
||||
.endif
|
||||
SRCS+= ppc_isa.c
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "ia64"
|
||||
SRCS+= ppc_acpi.c
|
||||
.endif
|
||||
SRCS= bus_if.h ppbus_if.h opt_ppc.h device_if.h isa_if.h \
|
||||
ppc.c ppc_puc.c
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user