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
This commit is contained in:
Warner Losh 2022-01-02 00:32:30 -07:00
parent e0281204cc
commit 4cc76d90ea

View File

@ -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