summaryrefslogtreecommitdiff
path: root/zephyr/test/krabby/CMakeLists.txt
blob: 30cc709cad3fed9e83f6ee45e2833f5db38a2882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS "${ZEPHYR_BASE}")
project(krabby)

add_subdirectory(${PLATFORM_EC}/zephyr/test/test_utils test_utils)

zephyr_include_directories("${PLATFORM_EC_PROGRAM_DIR}/corsola/include")

target_sources(app PRIVATE
	src/stubs.c
	${PLATFORM_EC_PROGRAM_DIR}/corsola/src/ite_usbc.c
	${PLATFORM_EC_PROGRAM_DIR}/corsola/src/ite_usb_pd_policy.c)

target_sources_ifdef(CONFIG_TEST_KRABBY
	app PRIVATE
	src/charger_workaround.c
	src/usb_mux_init.c
	src/usbc_config.c
	${PLATFORM_EC_PROGRAM_DIR}/corsola/src/ite_charger_workaround.c)

target_sources_ifdef(CONFIG_TEST_TENTACRUEL
	app PRIVATE
	src/temp_tentacruel.c
	${PLATFORM_EC_PROGRAM_DIR}/corsola/tentacruel/src/temp.c)