1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/dev/uart 4 5.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 6 ${MACHINE_CPUARCH} == "i386" 7uart_bus_acpi=uart_bus_acpi.c 8uart_cpu_acpi=uart_cpu_acpi.c 9.endif 10 11.if ${MACHINE_CPUARCH} == "sparc64" 12uart_bus_ebus= uart_bus_ebus.c 13.endif 14 15.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ 16 ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv" || \ 17 ${MACHINE_CPUARCH} == "sparc64" 18ofw_bus_if= ofw_bus_if.h 19.endif 20 21.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" 22_uart_cpu=uart_cpu_x86.c 23.else 24_uart_cpu=uart_cpu_${MACHINE}.c 25.endif 26.if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu}) 27uart_cpu_machine= ${_uart_cpu} 28.endif 29 30.if ${MACHINE} == "arm64" 31uart_dev_mvebu=uart_dev_mvebu.c 32uart_dev_mu=uart_dev_mu.c 33.endif 34 35KMOD= uart 36SRCS= ${uart_bus_acpi} ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \ 37 uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \ 38 uart_core.c ${uart_cpu_acpi} ${uart_cpu_machine} uart_dbg.c \ 39 ${uart_dev_mvebu} uart_dev_ns8250.c ${uart_dev_mu} \ 40 uart_dev_quicc.c uart_dev_sab82532.c uart_dev_z8530.c \ 41 uart_if.c uart_if.h uart_subr.c uart_tty.c 42 43SRCS+= acpi_if.h bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} \ 44 pci_if.h \ 45 power_if.h pccarddevs.h serdev_if.h 46SRCS+= opt_acpi.h opt_platform.h opt_uart.h 47 48.include <bsd.kmod.mk> 49