diff options
author | marcel <marcel@FreeBSD.org> | 2012-04-18 17:44:05 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2012-04-18 17:44:05 +0000 |
commit | eafad8f5033bd0ab8e9b4bdc18338aa6866bddeb (patch) | |
tree | 2f02527d5b039fd568d4fe42ce4c830da49cc867 | |
parent | c2311c85676be68b9c1a929964174e1fc8ea8a98 (diff) | |
download | FreeBSD-src-eafad8f5033bd0ab8e9b4bdc18338aa6866bddeb.zip FreeBSD-src-eafad8f5033bd0ab8e9b4bdc18338aa6866bddeb.tar.gz |
Compensate for the replacement of uart_cpu_{amd64|i386}.c with
uart_cpu_x86.c
Pointy hat: marcel
-rw-r--r-- | sys/modules/uart/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile index 9afb86c..61bcdec 100644 --- a/sys/modules/uart/Makefile +++ b/sys/modules/uart/Makefile @@ -7,16 +7,23 @@ uart_bus_ebus= uart_bus_ebus.c ofw_bus_if= ofw_bus_if.h .endif +.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" +_uart_cpu=uart_cpu_x86.c +.else +_uart_cpu=uart_cpu_${MACHINE}.c +.endif +.if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu}) +uart_cpu_machine= ${_uart_cpu} +.endif + KMOD= uart 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_bus_scc.c \ - uart_core.c uart_dbg.c \ + uart_core.c ${uart_cpu_machine} uart_dbg.c \ uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \ uart_dev_z8530.c \ uart_if.c uart_if.h uart_subr.c uart_tty.c -.if exists(${.CURDIR}/../../dev/uart/uart_cpu_${MACHINE}.c) -SRCS+= uart_cpu_${MACHINE}.c -.endif + SRCS+= bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \ power_if.h pccarddevs.h serdev_if.h |