summaryrefslogtreecommitdiffstats
path: root/drivers/misc/nvs/Makefile
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2017-09-14 12:51:18 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-29 14:00:42 -0400
commit20bb0324e532863cafc5dc41e8cd5a6ec28413d8 (patch)
treeb1dffa63f11bb210bfc6b84ce0fc6f940428fa61 /drivers/misc/nvs/Makefile
parentc04513ee6f787a70c9cc839117918e92e38ae9ff (diff)
nvidia: use kernel overlay features
Update all Kconfig files and Makefiles to rely on the kernel overlay feature. In particular, don't include any Kconfig files or Makefiles from other overlays. -I directives in CFLAGS are not yet cleaned up. Bug 1978395 Change-Id: I425d37d55f8ea61fb3a082a1504f994ff30cec03 Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1561187 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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