#
# Copyright (c) [2019~2020] SigmaStar Technology.
#
#
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License version 2 for more details.
#

subdir-ccflags-y := -DSSTAR_CODING_STYLE_SANITIZE_MODULE

obj-$(CONFIG_SS_LIGHT_SENSOR) += light_sensor.o

# sensor
light_sensor-$(CONFIG_SS_LIGHT_SENSOR_CHIP_CG5162LC) += light_sensor_cg5162lc.o

light_sensor-y +=  ./common/light_sensor_common.o  common/light_sensor_i2c.o ./linux/light_sensor_module.o

EXTRA_CFLAGS += -I$(srctree)/drivers/sstar/light_snr/linux
EXTRA_CFLAGS += -I$(srctree)/drivers/sstar/light_snr/common
EXTRA_CFLAGS +=  -I$(srctree)/drivers/sstar/include