summaryrefslogtreecommitdiffstats
path: root/drivers/misc/nvs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/nvs/Makefile')
-rw-r--r--drivers/misc/nvs/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/misc/nvs/Makefile b/drivers/misc/nvs/Makefile
new file mode 100644
index 000000000..19b17dfb5
--- /dev/null
+++ b/drivers/misc/nvs/Makefile
@@ -0,0 +1,34 @@
1#
2# Makefile for NVS (NVidia Sensor framework).
3#
4obj-$(CONFIG_NVS) += nvs.o
5
6nvs-objs := nvs_vreg.o nvs_of_dt.o nvs_timestamp.o nvs_dsm.o \
7 nvs_auto.o
8
9ifneq (,$(filter $(CONFIG_NVS_LIGHT),y m))
10nvs-objs += nvs_light.o
11endif
12
13ifneq (,$(filter $(CONFIG_NVS_PROXIMITY),y m))
14nvs-objs += nvs_proximity.o
15endif
16
17ifneq (,$(filter $(CONFIG_NVS_IIO),y m))
18nvs-objs += nvs_iio.o
19CFLAGS_nvs_dsm.o += -DNVS_KIF_IIO=1
20CFLAGS_nvs_auto.o += -DNVS_KIF_IIO=1
21endif
22
23ifneq (,$(filter $(CONFIG_NVS_RELAY),y m))
24nvs-objs += nvs_relay.o nvs_sysfs.o
25CFLAGS_nvs_dsm.o += -DNVS_KIF_RELAY=1
26CFLAGS_nvs_auto.o += -DNVS_KIF_RELAY=1
27endif
28
29ifneq (,$(filter $(CONFIG_NVS_INPUT),y m))
30
31nvs-objs += nvs_input.o nvs_sysfs.o
32CFLAGS_nvs_dsm.o += -DNVS_KIF_INPUT=1
33CFLAGS_nvs_auto.o += -DNVS_KIF_INPUT=1
34endif