svn commit: r329541 - in head/sys/modules/i2c: . ofw_iicbus
Ian Lepore
ian at FreeBSD.org
Mon Feb 19 00:47:05 UTC 2018
Author: ian
Date: Mon Feb 19 00:47:03 2018
New Revision: 329541
URL: https://svnweb.freebsd.org/changeset/base/329541
Log:
Build ofw_iicbus as a module if OPT_FDT is defined.
Added:
head/sys/modules/i2c/ofw_iicbus/
head/sys/modules/i2c/ofw_iicbus/Makefile (contents, props changed)
Modified:
head/sys/modules/i2c/Makefile
Modified: head/sys/modules/i2c/Makefile
==============================================================================
--- head/sys/modules/i2c/Makefile Mon Feb 19 00:38:14 2018 (r329540)
+++ head/sys/modules/i2c/Makefile Mon Feb 19 00:47:03 2018 (r329541)
@@ -20,4 +20,8 @@ SUBDIR = \
smb \
smbus \
+.if !empty(OPT_FDT)
+SUBDIR += ofw_iicbus
+.endif
+
.include <bsd.subdir.mk>
Added: head/sys/modules/i2c/ofw_iicbus/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/modules/i2c/ofw_iicbus/Makefile Mon Feb 19 00:47:03 2018 (r329541)
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/iicbus
+
+KMOD= ofw_iicbus
+SRCS= ofw_iicbus.c
+
+SRCS+= \
+ bus_if.h \
+ device_if.h \
+ iicbus_if.h \
+ ofw_bus_if.h \
+ opt_platform.h \
+
+.include <bsd.kmod.mk>
More information about the svn-src-all
mailing list