svn commit: r355738 - head/sys/modules/i2c/ads111x

Ian Lepore ian at FreeBSD.org
Fri Dec 13 23:22:50 UTC 2019


Author: ian
Date: Fri Dec 13 23:22:49 2019
New Revision: 355738
URL: https://svnweb.freebsd.org/changeset/base/355738

Log:
  Include ofw_bus_if.h in SRCS only on systems configured with the FDT option.

Modified:
  head/sys/modules/i2c/ads111x/Makefile

Modified: head/sys/modules/i2c/ads111x/Makefile
==============================================================================
--- head/sys/modules/i2c/ads111x/Makefile	Fri Dec 13 22:32:05 2019	(r355737)
+++ head/sys/modules/i2c/ads111x/Makefile	Fri Dec 13 23:22:49 2019	(r355738)
@@ -9,7 +9,10 @@ SRCS+=	\
 	bus_if.h \
 	device_if.h \
 	iicbus_if.h \
-	ofw_bus_if.h \
 	opt_platform.h \
+
+.if !empty(OPT_FDT)
+SRCS+=	ofw_bus_if.h
+.endif
 
 .include <bsd.kmod.mk>


More information about the svn-src-all mailing list