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>
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to