Only build the ebus driver on sparc64. It includes a header directly

from the sparc64 subtree, which breaks building non-sparc64 platforms
in the event the sparc64 subtree does not exist.
The problem is specific to the module, because non-module builds are
affected by the presence or absence of "device ebus" in the kernel
configuration.

PR: kern/56869
This commit is contained in:
Marcel Moolenaar 2003-09-17 03:00:08 +00:00
parent f704d34677
commit 8225548ebf

View File

@ -2,8 +2,12 @@
.PATH: ${.CURDIR}/../../dev/uart
.if ${MACHINE_ARCH} == "sparc64"
uart_bus_ebus= uart_bus_ebus.c
.endif
KMOD= uart
SRCS= uart_bus_acpi.c uart_bus_ebus.c uart_bus_isa.c uart_bus_pccard.c \
SRCS= uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
uart_bus_pci.c uart_bus_puc.c uart_core.c uart_cpu_${MACHINE}.c \
uart_dev_i8251.c uart_dev_ns8250.c uart_dev_sab82532.c \
uart_dev_z8530.c uart_if.c uart_tty.c