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