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> _______________________________________________ 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"