blob: bb1bde51a86fb3b4a449f8be96a704815f6039ac (
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
40
41
42
43
|
# Copyright 2021 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}")
zephyr_library_sources("src/common.c")
zephyr_library_sources("src/power_signals.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC
"src/usb_pd_policy.c"
"src/usbc_config.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_LED_COMMON
"src/led.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_AMD_STT
"src/stt.c")
if(DEFINED CONFIG_BOARD_MORTHAL)
project(morthal)
add_subdirectory(morthal)
endif()
if(DEFINED CONFIG_BOARD_SKYRIM)
project(skyrim)
add_subdirectory(skyrim)
endif()
if(DEFINED CONFIG_BOARD_WINTERHOLD)
project(winterhold)
add_subdirectory(winterhold)
endif()
if(DEFINED CONFIG_BOARD_FROSTFLOW)
project(frostflow)
add_subdirectory(frostflow)
endif()
if(DEFINED CONFIG_BOARD_CRYSTALDRIFT)
project(crystaldrift)
add_subdirectory(crystaldrift)
endif()
|