aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2019-06-16 00:53:09 +0000
committerIan Lepore <ian@FreeBSD.org>2019-06-16 00:53:09 +0000
commite108c3df043a58063a915e0c8c4c9a6d7f1cae80 (patch)
treede9883c9ef23f08f325236e589a4aef58f0f9ca5 /sys/modules
parente3384e8c4443bdb8d93f746009275685006da63b (diff)
Add module makefiles for pwm.
Notes
Notes: svn path=/head/; revision=349094
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile1
-rw-r--r--sys/modules/pwm/Makefile9
-rw-r--r--sys/modules/pwm/pwmbus/Makefile20
-rw-r--r--sys/modules/pwm/pwmc/Makefile18
4 files changed, 48 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index f63ad98b18c4..a9a5c5ed98ef 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -299,6 +299,7 @@ SUBDIR= \
${_pst} \
pty \
puc \
+ pwm \
${_qlxge} \
${_qlxgb} \
${_qlxgbe} \
diff --git a/sys/modules/pwm/Makefile b/sys/modules/pwm/Makefile
new file mode 100644
index 000000000000..6c17a2b5d8dc
--- /dev/null
+++ b/sys/modules/pwm/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+# Modules for dev/pwm drivers.
+
+SUBDIR = \
+ pwmbus \
+ pwmc \
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/pwm/pwmbus/Makefile b/sys/modules/pwm/pwmbus/Makefile
new file mode 100644
index 000000000000..db6a7d34794e
--- /dev/null
+++ b/sys/modules/pwm/pwmbus/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/pwm
+
+KMOD= pwmbus
+SRCS= pwmbus.c
+
+.if !empty(OPT_FDT)
+SRCS+= ofw_pwm.c ofw_bus_if.h
+.endif
+
+# Generated files...
+SRCS+= \
+ bus_if.h \
+ device_if.h \
+ opt_platform.h \
+ pwmbus_if.c \
+ pwmbus_if.h \
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/pwm/pwmc/Makefile b/sys/modules/pwm/pwmc/Makefile
new file mode 100644
index 000000000000..6e373e467a4a
--- /dev/null
+++ b/sys/modules/pwm/pwmc/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/pwm
+KMOD= pwmc
+SRCS= pwmc.c
+
+# Generated files...
+SRCS+= \
+ bus_if.h \
+ device_if.h \
+ opt_platform.h \
+ pwmbus_if.h \
+
+.if !empty(OPT_FDT)
+SRCS+= ofw_bus_if.h
+.endif
+
+.include <bsd.kmod.mk>