From 834214a023b5eba2606d1e622842754c18c11904 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 9 Sep 2017 20:14:18 +0000 Subject: [PATCH] Don't build uart_dev_mvebu unless we're on arm64. This module is specific to a single Marvel board that we currently only support in 64-bit mode. Remove it from the build otherwise. It likely should be completely removed, but this unbreaks x86 building. Noticed by: sbruno@ --- sys/modules/uart/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile index 02ec3953d814..49c7d5a2451f 100644 --- a/sys/modules/uart/Makefile +++ b/sys/modules/uart/Makefile @@ -25,12 +25,16 @@ _uart_cpu=uart_cpu_${MACHINE}.c uart_cpu_machine= ${_uart_cpu} .endif +.if ${MACHINE} == "arm64" +uart_dev_mvebu=uart_dev_mvebu.c +.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_cpu_machine} uart_dbg.c \ ${uart_dev_lpc} uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \ - uart_dev_z8530.c uart_dev_mvebu.c \ + uart_dev_z8530.c ${uart_dev_mvebu} \ uart_if.c uart_if.h uart_subr.c uart_tty.c SRCS+= acpi_if.h bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} \