Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2018 00:47:04 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329541 - in head/sys/modules/i2c: . ofw_iicbus
Message-ID:  <201802190047.w1J0l4tt095114@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802190047.w1J0l4tt095114>