diff options
author | Stephen Warren <swarren@nvidia.com> | 2017-09-14 12:51:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-29 14:00:42 -0400 |
commit | 20bb0324e532863cafc5dc41e8cd5a6ec28413d8 (patch) | |
tree | b1dffa63f11bb210bfc6b84ce0fc6f940428fa61 /drivers/misc/nvs/Makefile | |
parent | c04513ee6f787a70c9cc839117918e92e38ae9ff (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/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 | ||