svn commit: r327681 - head/sys/modules/gpio/gpiobus

Justin Hibbits jhibbits at FreeBSD.org
Sun Jan 7 20:28:19 UTC 2018


Author: jhibbits
Date: Sun Jan  7 20:28:17 2018
New Revision: 327681
URL: https://svnweb.freebsd.org/changeset/base/327681

Log:
  Add missing file to gpiobus module
  
  ofw_gpiobus.c is needed when FDT is used.
  
  MFC after:	2 weeks

Modified:
  head/sys/modules/gpio/gpiobus/Makefile

Modified: head/sys/modules/gpio/gpiobus/Makefile
==============================================================================
--- head/sys/modules/gpio/gpiobus/Makefile	Sun Jan  7 18:33:19 2018	(r327680)
+++ head/sys/modules/gpio/gpiobus/Makefile	Sun Jan  7 20:28:17 2018	(r327681)
@@ -36,6 +36,10 @@ SRCS=	gpiobus.c gpioc.c
 SRCS+=	gpio_if.c gpio_if.h gpiobus_if.c gpiobus_if.h ofw_bus_if.h
 SRCS+=	device_if.h bus_if.h opt_platform.h
 
+.if !empty(OPT_FDT)
+SRCS+=	ofw_gpiobus.c
+.endif
+
 CFLAGS+=  -I. -I${SRCTOP}/sys/dev/gpio/
 
 .include <bsd.kmod.mk>


More information about the svn-src-head mailing list