blob: 529bb246820114681ced60ea8b8ce103c1cd5f88 (
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
29
30
31
32
33
34
35
36
37
38
39
|
# 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"
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
${PLATFORM_EC_PROGRAM_DIR}/corsola/src/usb_pd_policy.c)
target_sources_ifdef(CONFIG_TEST_KRABBY
app PRIVATE
src/charger_workaround.c
src/main.c
src/power_seq.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/fake.c
src/ppc_tentacruel.c
src/temp_tentacruel.c
src/fwconfig_tentacruel.c
src/usb_mux_tentacruel.c
${PLATFORM_EC_PROGRAM_DIR}/corsola/tentacruel/src/ppc.c
${PLATFORM_EC_PROGRAM_DIR}/corsola/tentacruel/src/temp.c
${PLATFORM_EC_PROGRAM_DIR}/corsola/tentacruel/src/sensor.c)
|