Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2019 23:22:49 +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: r355738 - head/sys/modules/i2c/ads111x
Message-ID:  <201912132322.xBDNMnO2006996@repo.freebsd.org>

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



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