xref: /freebsd/sys/modules/i2c/iicbus/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.PATH:	${SRCTOP}/sys/dev/iicbus
2
3KMOD=	iicbus
4SRCS=	\
5	bus_if.h \
6	device_if.h \
7	iic_recover_bus.c \
8	iicbus.c \
9	iicbus.h \
10	iicbus_if.c \
11	iicbus_if.h \
12	iiconf.c \
13	iiconf.h \
14	opt_platform.h \
15
16.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
17    ${MACHINE_CPUARCH} == "i386"
18SRCS+=	acpi_iicbus.c opt_acpi.h acpi_if.h
19.endif
20
21.if !empty(OPT_FDT)
22SRCS+=	ofw_iicbus.c ofw_iicbus_if.h ofw_bus_if.h
23.endif
24
25EXPORT_SYMS=	YES
26
27.include <bsd.kmod.mk>
28