From 624e87b673064ae228b79cde11b82f1ad7502bc3 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Sat, 7 Dec 2019 17:54:40 +0000 Subject: [PATCH] Add module build stuff for gpioths(4), a driver for DHT11/DHT22 sensors. --- sys/modules/gpio/Makefile | 2 +- sys/modules/gpio/gpioths/Makefile | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sys/modules/gpio/gpioths/Makefile diff --git a/sys/modules/gpio/Makefile b/sys/modules/gpio/Makefile index 709b468520c9..57db84b36143 100644 --- a/sys/modules/gpio/Makefile +++ b/sys/modules/gpio/Makefile @@ -25,7 +25,7 @@ # SUCH DAMAGE. # -SUBDIR = gpiobus gpioiic gpioled gpiospi +SUBDIR = gpiobus gpioiic gpioled gpiospi gpioths .if !empty(OPT_FDT) SUBDIR += gpiokeys gpiopps diff --git a/sys/modules/gpio/gpioths/Makefile b/sys/modules/gpio/gpioths/Makefile new file mode 100644 index 000000000000..d1311ed60154 --- /dev/null +++ b/sys/modules/gpio/gpioths/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ +# + +.PATH: ${SRCTOP}/sys/dev/gpio/ + +KMOD= gpioths +SRCS= gpioths.c + +SRCS+= \ + bus_if.h \ + device_if.h \ + gpio_if.h \ + gpiobus_if.h \ + ofw_bus_if.h \ + opt_platform.h \ + +CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ + +.include