diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile index b2263107e5f7..1235debe1ea9 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 3caa61de8aef..b9e4a7ae469b 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