43 lines
976 B
Makefile
43 lines
976 B
Makefile
#
|
|
# Makefile for NVS (NVidia Sensor framework).
|
|
#
|
|
obj-$(CONFIG_NVS) += nvs.o
|
|
|
|
nvs-objs := nvs_vreg.o nvs_of_dt.o nvs_timestamp.o nvs_gte.o \
|
|
nvs_dsm.o nvs_auto.o
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_GTE),y m))
|
|
CFLAGS_nvs_gte.o += -DNVS_GTE=1
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_ON_CHANGE),y m))
|
|
nvs-objs += nvs_on_change.o
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_LIGHT),y m))
|
|
nvs-objs += nvs_light.o
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_PROXIMITY),y m))
|
|
nvs-objs += nvs_proximity.o
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_IIO),y m))
|
|
nvs-objs += nvs_iio.o
|
|
CFLAGS_nvs_dsm.o += -DNVS_CFG_KIF_IIO=1
|
|
CFLAGS_nvs_auto.o += -DNVS_CFG_KIF_IIO=1
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_RELAY),y m))
|
|
nvs-objs += nvs_relay.o nvs_sysfs.o
|
|
CFLAGS_nvs_dsm.o += -DNVS_CFG_KIF_RELAY=1
|
|
CFLAGS_nvs_auto.o += -DNVS_CFG_KIF_RELAY=1
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_NVS_INPUT),y m))
|
|
|
|
nvs-objs += nvs_input.o nvs_sysfs.o
|
|
CFLAGS_nvs_dsm.o += -DNVS_CFG_KIF_INPUT=1
|
|
CFLAGS_nvs_auto.o += -DNVS_CFG_KIF_INPUT=1
|
|
endif
|