blob: 3e11b75d1792cc16bd9daf50df2c91d0c55617e5 (
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
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# 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}")
cros_ec_library_include_directories(include)
# Board specific implementation
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC
"src/usbc_config.c"
"src/usb_pd_policy.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_I2C
"src/i2c.c")
if(DEFINED CONFIG_BOARD_EVOKER)
project(evoker)
elseif(DEFINED CONFIG_BOARD_HEROBRINE)
project(herobrine)
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC
"src/herobrine/alt_dev_replacement.c")
elseif(DEFINED CONFIG_BOARD_HOGLIN)
project(hoglin)
elseif(DEFINED CONFIG_BOARD_VILLAGER)
project(villager)
elseif(DEFINED CONFIG_BOARD_ZOGLIN)
project(zoglin)
endif()
|