From 8225548ebf2675ce79910d8e59e8aaae9e4cbf9e Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 17 Sep 2003 03:00:08 +0000 Subject: [PATCH] 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 --- sys/modules/uart/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile index 0bff8ecd58c..9fc15c098e0 100644 --- a/sys/modules/uart/Makefile +++ b/sys/modules/uart/Makefile @@ -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