diff options
author | marcel <marcel@FreeBSD.org> | 2003-09-17 03:00:08 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-09-17 03:00:08 +0000 |
commit | d07df62911128d99b66cd2768f1fbe4ae118b8a5 (patch) | |
tree | a90764806a313d646b3afd01883b13d81d1f7dc1 /sys/modules | |
parent | 54afaf4eff8d1cae7934a926237e7c9a102eadaa (diff) | |
download | FreeBSD-src-d07df62911128d99b66cd2768f1fbe4ae118b8a5.zip FreeBSD-src-d07df62911128d99b66cd2768f1fbe4ae118b8a5.tar.gz |
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
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/uart/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile index 0bff8ec..9fc15c0 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 |