| # -*- makefile -*- |
| # Copyright 2016 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| CFLAGS_CTS=-DCTS_MODULE=$(EMPTY) -DCTS_TASKFILE=cts.tasklist |
| |
| ifeq "$(CTS_MODULE)" "gpio" |
| CFLAGS_CTS+=-DCTS_MODULE_GPIO=$(EMPTY) |
| endif |
| |
| ifeq "$(CTS_MODULE)" "i2c" |
| CFLAGS_CTS+=-DCTS_MODULE_I2C=$(EMPTY) |
| CONFIG_I2C=y |
| ifneq ($(BOARD),stm32l476g-eval) |
| CONFIG_I2C_CONTROLLER=y |
| endif |
| endif |
| |
| cts-y+=common/cts_common.o |
| |
| ifeq ($(BOARD),stm32l476g-eval) |
| cts-y+=$(CTS_MODULE)/th.o |
| cts-y+=common/th_common.o |
| else |
| cts-y+=$(CTS_MODULE)/dut.o |
| cts-y+=common/dut_common.o |
| endif |