# Copyright (c) 2019-2021, Sonos Inc.  All rights reserved.

KBUILD_CFLAGS_MODULE += -Werror

ccflags-y := -I$(src)/../include
ccflags-y += -I$(src)/../../common/ctl
ccflags-y += -I../../drivers/include

obj-$(CONFIG_SONOS_SENSORS) += sensors.o

sensors-y := sensors_dev.o
sensors-y += battery_temp.o
sensors-$(CONFIG_SONOS_THERMAL_MGMT) += thermal_mgmt.o
sensors-$(CONFIG_SONOS_S5851) += s5851.o
sensors-$(CONFIG_SONOS_NCU15) += ncu15.o
sensors-$(CONFIG_SENSORS_TMP102) += tmp102_shim.o
sensors-$(CONFIG_MTK_SOC_THERMAL) += mt8521_soc_tmp.o
sensors-$(CONFIG_SONOS_IMX7ULP_CPU_THERMAL) += imx7ulp_cpu_tmp.o
sensors-$(CONFIG_SONOS_RPMSG_THERMAL) += sensors_rpmsg.o
sensors-$(CONFIG_SONOS_RPMSG_THERMAL) += rpmsg_tmp.o
sensors-$(CONFIG_SONOS_MMA8453Q) += mma8453q.o
sensors-$(CONFIG_SONOS_TIOPT3001) += ti_opt3001_als.o
sensors-$(CONFIG_SONOS_LIS2HH12) += lis2hh12.o
sensors-$(CONFIG_SONOS_BMA420) += bma420_drv.o bma420.o bma4.o
sensors-$(CONFIG_SONOS_FXL6408) += gpio_fxl6408.o
sensors-$(CONFIG_SONOS_NXP3H2111_NFC) += nxp3h2111_nfc.o
sensors-$(CONFIG_SONOS_ORIENTATION) += orient.o
sensors-$(CONFIG_SONOS_WALL_MOUNT) += wall_mount.o
sensors-$(CONFIG_SONOS_BUTTONS) += gpio_buttons.o buttons_sim.o
sensors-$(CONFIG_SONOS_LINEIN_OVERVOLT) += linein_overvolt.o
sensors-$(CONFIG_SONOS_CABLE_GPIO_DETECT) += cable_gpio_detect.o
sensors-$(CONFIG_SONOS_SYMBOLIC_GPIO) += gpio_outs.o
sensors-$(CONFIG_SONOS_MTK_ADC_THERMISTOR) += thermistor.o
sensors-$(CONFIG_SONOS_LTR311) += ltr311_als.o
