From e108c3df043a58063a915e0c8c4c9a6d7f1cae80 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Sun, 16 Jun 2019 00:53:09 +0000 Subject: [PATCH] Add module makefiles for pwm. --- sys/modules/Makefile | 1 + sys/modules/pwm/Makefile | 9 +++++++++ sys/modules/pwm/pwmbus/Makefile | 20 ++++++++++++++++++++ sys/modules/pwm/pwmc/Makefile | 18 ++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 sys/modules/pwm/Makefile create mode 100644 sys/modules/pwm/pwmbus/Makefile create mode 100644 sys/modules/pwm/pwmc/Makefile 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 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 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