aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-01-02 07:32:30 +0000
committerWarner Losh <imp@FreeBSD.org>2022-01-02 07:41:28 +0000
commit4cc76d90ea259df205fec14d6bed1bfb7b0ef23e (patch)
tree5cb15b31832cf919a3cc1295d0d55672e8b9d74a
parente0281204cce3d309b9aa390c0bcb2b1ab7bf2606 (diff)
downloadsrc-4cc76d90ea259df205fec14d6bed1bfb7b0ef23e.tar.gz
src-4cc76d90ea259df205fec14d6bed1bfb7b0ef23e.zip
iicbb: Always build ofw_bus_if.h
Always make ofw_bus_if.h. While it's only used when option FDT is in the kernel, it can always be generated. In theory we could omit it if option FDT isn't present, but none of the rest of sys/modules does that. That fine-grained control likely won't be reliable w/o a redesign of the kernel/module config system. Sponsored by: Netflix
-rw-r--r--sys/modules/i2c/iicbb/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile
index 9b74a5da39d6..7da4c6acc3b3 100644
--- a/sys/modules/i2c/iicbb/Makefile
+++ b/sys/modules/i2c/iicbb/Makefile
@@ -1,14 +1,9 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/iicbus
-.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
- ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "powerpc" || \
- ${MACHINE_CPUARCH} == "riscv"
-ofw_bus_if= ofw_bus_if.h
-.endif
KMOD = iicbb
SRCS = device_if.h bus_if.h iicbus_if.h \
- iicbb_if.h iicbb_if.c iicbb.c ${ofw_bus_if} opt_platform.h
+ iicbb_if.h iicbb_if.c iicbb.c ofw_bus_if.h opt_platform.h
EXPORT_SYMS= YES