1119816Smarcel# $FreeBSD: releng/10.2/sys/modules/uart/Makefile 249765 2013-04-22 13:02:41Z nyan $ 2119816Smarcel 3119816Smarcel.PATH: ${.CURDIR}/../../dev/uart 4119816Smarcel 5211690Simp.if ${MACHINE_CPUARCH} == "sparc64" 6120145Smarceluart_bus_ebus= uart_bus_ebus.c 7248411Sandrew.endif 8248411Sandrew 9249765Snyan.if ${MACHINE_CPUARCH} == "arm" 10249765Snyanuart_dev_lpc= uart_dev_lpc.c 11249765Snyan.endif 12249765Snyan 13248411Sandrew.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "sparc64" 14133589Smariusofw_bus_if= ofw_bus_if.h 15120145Smarcel.endif 16120145Smarcel 17234427Smarcel.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" 18234427Smarcel_uart_cpu=uart_cpu_x86.c 19234427Smarcel.else 20234427Smarcel_uart_cpu=uart_cpu_${MACHINE}.c 21234427Smarcel.endif 22234427Smarcel.if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu}) 23234427Smarceluart_cpu_machine= ${_uart_cpu} 24234427Smarcel.endif 25234427Smarcel 26119816SmarcelKMOD= uart 27120145SmarcelSRCS= uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \ 28157301Smarcel uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \ 29234427Smarcel uart_core.c ${uart_cpu_machine} uart_dbg.c \ 30249765Snyan ${uart_dev_lpc} uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \ 31185188Smarcel uart_dev_z8530.c \ 32157301Smarcel uart_if.c uart_if.h uart_subr.c uart_tty.c 33234427Smarcel 34137819SmariusSRCS+= bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \ 35157301Smarcel power_if.h pccarddevs.h serdev_if.h 36247891SuqsSRCS+= opt_platform.h 37119816Smarcel 38155966SmarcelMFILES= dev/pccard/card_if.m dev/pccard/power_if.m dev/pci/pci_if.m \ 39155966Smarcel dev/ofw/ofw_bus_if.m dev/uart/uart_if.m isa/isa_if.m kern/bus_if.m \ 40157301Smarcel kern/device_if.m kern/serdev_if.m 41155966Smarcel 42119816Smarcel.include <bsd.kmod.mk> 43