Build at45d and mx25l SPI flash drivers as modules.

This commit is contained in:
Ian Lepore 2018-02-19 01:49:19 +00:00
parent 63cdf4affb
commit eb69d1f144
3 changed files with 40 additions and 0 deletions

View File

@ -2,6 +2,8 @@
SUBDIR = \
../spigen \
at45d \
mx25l \
spibus \
.include <bsd.subdir.mk>

View File

@ -0,0 +1,19 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/flash
KMOD= at45d
SRCS= at45d.c
# Generated files...
SRCS+= \
bus_if.h \
device_if.h \
spibus_if.c \
spibus_if.h \
.if !empty(OPT_FDT)
SRCS+= ofw_bus_if.h
.endif
.include <bsd.kmod.mk>

View File

@ -0,0 +1,19 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/flash
KMOD= mx25l
SRCS= mx25l.c
# Generated files...
SRCS+= \
bus_if.h \
device_if.h \
spibus_if.c \
spibus_if.h \
.if !empty(OPT_FDT)
SRCS+= ofw_bus_if.h
.endif
.include <bsd.kmod.mk>