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