Author: ian
Date: Mon Feb 19 01:32:27 2018
New Revision: 329544
URL: https://svnweb.freebsd.org/changeset/base/329544

Log:
  Add modules/spi as a gathering point for SPI-related modules, analagous to
  modules/i2c for i2c/iicbus modules.  Build spibus as a module.

Added:
  head/sys/modules/spi/
  head/sys/modules/spi/Makefile   (contents, props changed)
  head/sys/modules/spi/spibus/
  head/sys/modules/spi/spibus/Makefile   (contents, props changed)
Modified:
  head/sys/modules/Makefile

Modified: head/sys/modules/Makefile
==============================================================================
--- head/sys/modules/Makefile   Mon Feb 19 01:25:52 2018        (r329543)
+++ head/sys/modules/Makefile   Mon Feb 19 01:32:27 2018        (r329544)
@@ -360,7 +360,7 @@ SUBDIR=     \
        snp \
        sound \
        ${_speaker} \
-       spigen \
+       spi \
        ${_splash} \
        ${_sppp} \
        ste \

Added: head/sys/modules/spi/Makefile
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/modules/spi/Makefile       Mon Feb 19 01:32:27 2018        
(r329544)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+SUBDIR = \
+       ../spigen \
+       spibus \
+       
+.include <bsd.subdir.mk>

Added: head/sys/modules/spi/spibus/Makefile
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/modules/spi/spibus/Makefile        Mon Feb 19 01:32:27 2018        
(r329544)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/spibus
+
+KMOD=  spibus
+SRCS=  spibus.c
+
+.if !empty(OPT_FDT)
+SRCS+= ofw_spibus.c
+.endif
+
+# Generated files...
+SRCS+= \
+       bus_if.h \
+       device_if.h \
+       spibus_if.c \
+       spibus_if.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"

Reply via email to