blob: bb96633d5b5a36fc69eaf2c98ad09c5e9ac2f479 (
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
|
# 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}/zephyr/projects/corsola/include")
target_sources(app PRIVATE
src/stubs.c
${PLATFORM_EC}/zephyr/projects/corsola/src/krabby/usbc_config.c)
target_sources_ifdef(CONFIG_TEST_KRABBY
app PRIVATE
src/charger_workaround.c
src/usb_mux_init.c
${PLATFORM_EC}/zephyr/projects/corsola/src/krabby/charger_workaround.c)
target_sources_ifdef(CONFIG_TEST_TENTACRUEL
app PRIVATE
src/temp_tentacruel.c
${PLATFORM_EC}/zephyr/projects/corsola/src/krabby/temp_tentacruel.c)
|