tegrakernel/kernel/nvidia/drivers/iio/imu/nvs_bmi/Makefile

32 lines
919 B
Makefile
Raw Permalink Normal View History

2022-02-16 09:13:02 -06:00
obj-$(CONFIG_NVS_BMI160_IIO) += nvs_bmi160.o
obj-$(CONFIG_NVS_BMI160_INPUT) += nvs_bmi160.o
obj-$(CONFIG_NVS_BMI160_RELAY) += nvs_bmi160.o
obj-$(CONFIG_NVS_BMI08X_IIO) += nvs_bmi08x.o
obj-$(CONFIG_NVS_BMI08X_INPUT) += nvs_bmi08x.o
obj-$(CONFIG_NVS_BMI08X_RELAY) += nvs_bmi08x.o
ifneq (,$(filter $(CONFIG_NVS_BMI160_IIO),y m))
CFLAGS_nvs_bmi160.o += -DNVS_CFG_KIF=NVS_KIF_IIO
endif
ifneq (,$(filter $(CONFIG_NVS_BMI160_INPUT),y m))
CFLAGS_nvs_bmi160.o += -DNVS_CFG_KIF=NVS_KIF_INPUT
endif
ifneq (,$(filter $(CONFIG_NVS_BMI160_RELAY),y m))
CFLAGS_nvs_bmi160.o += -DNVS_CFG_KIF=NVS_KIF_RELAY
endif
ifneq (,$(filter $(CONFIG_NVS_BMI08X_IIO),y m))
CFLAGS_nvs_bmi08x.o += -DNVS_CFG_KIF=NVS_KIF_IIO
endif
ifneq (,$(filter $(CONFIG_NVS_BMI08X_INPUT),y m))
CFLAGS_nvs_bmi08x.o += -DNVS_CFG_KIF=NVS_KIF_INPUT
endif
ifneq (,$(filter $(CONFIG_NVS_BMI08X_RELAY),y m))
CFLAGS_nvs_bmi08x.o += -DNVS_CFG_KIF=NVS_KIF_RELAY
endif