From 8da894031995815fa9e693cfadaf4ca2be987fc6 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Thu, 28 Jul 2016 13:21:45 +0000 Subject: [PATCH] Build ofw_bus_if.h for modules for RISC-V. --- sys/modules/i2c/iicbb/Makefile | 3 ++- sys/modules/uart/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile index b2263107e5f..1235debe1ea 100644 --- a/sys/modules/i2c/iicbb/Makefile +++ b/sys/modules/i2c/iicbb/Makefile @@ -2,7 +2,8 @@ .PATH: ${.CURDIR}/../../../dev/iicbus .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ - ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "powerpc" + ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "powerpc" || \ + ${MACHINE_CPUARCH} == "riscv" ofw_bus_if= ofw_bus_if.h .endif KMOD = iicbb diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile index 3caa61de8ae..b9e4a7ae469 100644 --- a/sys/modules/uart/Makefile +++ b/sys/modules/uart/Makefile @@ -11,7 +11,8 @@ uart_dev_lpc= uart_dev_lpc.c .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ - ${MACHINE_CPUARCH} == "sparc64" || ${MACHINE_CPUARCH} == "powerpc" + ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv" || \ + ${MACHINE_CPUARCH} == "sparc64" ofw_bus_if= ofw_bus_if.h .endif