summaryrefslogtreecommitdiffstats
path: root/sys/modules/fdc
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-07-16 18:37:00 +0000
committernjl <njl@FreeBSD.org>2004-07-16 18:37:00 +0000
commit966f8768ba3c0ecd73d2a7478573560353010246 (patch)
tree1cc8040dd970eff06e4d094b0d7cf6890fd27de5 /sys/modules/fdc
parent6418d70e35468f4ffc9328d27c0aa7d2bca68255 (diff)
downloadFreeBSD-src-966f8768ba3c0ecd73d2a7478573560353010246.zip
FreeBSD-src-966f8768ba3c0ecd73d2a7478573560353010246.tar.gz
Fix the alpha (and others) module build by only building fdc_acpi.c on
i386 and amd64. The only other ACPI machine (ia64) doesn't support floppy drives. Tested by: make MACHINE={pc98,i386,amd64,alpha,sparc64}
Diffstat (limited to 'sys/modules/fdc')
-rw-r--r--sys/modules/fdc/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile
index 6e53002..a7f53ee 100644
--- a/sys/modules/fdc/Makefile
+++ b/sys/modules/fdc/Makefile
@@ -1,19 +1,21 @@
# $FreeBSD$
-.if ${MACHINE} == "pc98"
-.PATH: ${.CURDIR}/../../pc98/pc98
-.else
-.PATH: ${.CURDIR}/../../dev/fdc
-.endif
KMOD= fdc
WARNS?= 2
+
.if ${MACHINE} == "pc98"
+.PATH: ${.CURDIR}/../../pc98/pc98
SRCS= fd.c fdc_cbus.c
.else
+.PATH: ${.CURDIR}/../../dev/fdc
+SRCS= fdc.c fdc_isa.c fdc_pccard.c
+.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
-SRCS= fdc.c fdc_acpi.c fdc_isa.c fdc_pccard.c
+SRCS+= opt_acpi.h acpi_if.h fdc_acpi.c
.endif
-SRCS+= opt_acpi.h opt_fdc.h acpi_if.h bus_if.h card_if.h device_if.h \
+.endif
+
+SRCS+= opt_fdc.h bus_if.h card_if.h device_if.h \
isa_if.h pccarddevs.h
FDC_DEBUG?= 0 # 0/1
OpenPOWER on IntegriCloud