diff options
author | Tai Kuo <taikuo@google.com> | 2021-04-06 18:08:03 +0800 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-04-19 13:30:06 +0000 |
commit | a30034f14127684b93c86efd0be4074f6107fced (patch) | |
tree | c4057d99dc2171de628d7839a99d13a8ad4f27a2 /cs40l26/Makefile | |
parent | ba22cd0fd14814528519f2e909319ce843791827 (diff) | |
download | amplifiers-a30034f14127684b93c86efd0be4074f6107fced.tar.gz |
cs40l26: bring up haptics modules
Bug: 184610991
Test: Built pass.
Test: Driver probed.
Test: Basic function.
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I82d0f37a74a73b2e0c23eee186a55c2823b9de34
Diffstat (limited to 'cs40l26/Makefile')
-rw-r--r-- | cs40l26/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cs40l26/Makefile b/cs40l26/Makefile new file mode 100644 index 0000000..502a0a3 --- /dev/null +++ b/cs40l26/Makefile @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for Cirrus Logic haptic driver. +# + +input-cs40l26-i2c-objs := cs40l26.o cs40l26-tables.o cs40l26-sysfs.o cs40l26-i2c.o +input-cs40l26-spi-objs := cs40l26.o cs40l26-tables.o cs40l26-sysfs.o cs40l26-spi.o +snd-soc-cs40l26-objs := cs40l26-codec.o + +obj-$(CONFIG_INPUT_CS40L26_I2C) += input-cs40l26-i2c.o +obj-$(CONFIG_INPUT_CS40L26_SPI) += input-cs40l26-spi.o +obj-$(CONFIG_CIRRUS_FIRMWARE_CL_DSP) += cl_dsp.o +obj-$(CONFIG_SND_SOC_CS40L26) += snd-soc-cs40l26.o + +KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build +M ?= $(shell pwd) + +KBUILD_OPTIONS += CONFIG_INPUT_CS40L26_I2C=m \ + CONFIG_CIRRUS_FIRMWARE_CL_DSP=m + +modules modules_install clean: + $(MAKE) -C $(KERNEL_SRC) M=$(M) $(KBUILD_OPTIONS) W=1 $(@) + |