diff options
Diffstat (limited to 'drivers/misc/nvs/Makefile')
-rw-r--r-- | drivers/misc/nvs/Makefile | 34 |
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 | # | ||
4 | obj-$(CONFIG_NVS) += nvs.o | ||
5 | |||
6 | nvs-objs := nvs_vreg.o nvs_of_dt.o nvs_timestamp.o nvs_dsm.o \ | ||
7 | nvs_auto.o | ||
8 | |||
9 | ifneq (,$(filter $(CONFIG_NVS_LIGHT),y m)) | ||
10 | nvs-objs += nvs_light.o | ||
11 | endif | ||
12 | |||
13 | ifneq (,$(filter $(CONFIG_NVS_PROXIMITY),y m)) | ||
14 | nvs-objs += nvs_proximity.o | ||
15 | endif | ||
16 | |||
17 | ifneq (,$(filter $(CONFIG_NVS_IIO),y m)) | ||
18 | nvs-objs += nvs_iio.o | ||
19 | CFLAGS_nvs_dsm.o += -DNVS_KIF_IIO=1 | ||
20 | CFLAGS_nvs_auto.o += -DNVS_KIF_IIO=1 | ||
21 | endif | ||
22 | |||
23 | ifneq (,$(filter $(CONFIG_NVS_RELAY),y m)) | ||
24 | nvs-objs += nvs_relay.o nvs_sysfs.o | ||
25 | CFLAGS_nvs_dsm.o += -DNVS_KIF_RELAY=1 | ||
26 | CFLAGS_nvs_auto.o += -DNVS_KIF_RELAY=1 | ||
27 | endif | ||
28 | |||
29 | ifneq (,$(filter $(CONFIG_NVS_INPUT),y m)) | ||
30 | |||
31 | nvs-objs += nvs_input.o nvs_sysfs.o | ||
32 | CFLAGS_nvs_dsm.o += -DNVS_KIF_INPUT=1 | ||
33 | CFLAGS_nvs_auto.o += -DNVS_KIF_INPUT=1 | ||
34 | endif | ||