summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/CMakeLists.txt
blob: 38955f65d45932408e25313c5d55f2111278291c (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
# Copyright 2020 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.

zephyr_sources(console.c)
zephyr_sources(crc.c)
zephyr_sources(gpio.c)
zephyr_sources(util.c)

if (DEFINED CONFIG_ARCH_POSIX)
  zephyr_sources(ztest_system.c)
else()
  zephyr_sources(system.c)
  zephyr_sources("${PLATFORM_EC}/common/system.c")
endif()
zephyr_sources_ifdef(no_libgcc                  libgcc_${ARCH}.S)

zephyr_sources_ifdef(CONFIG_PLATFORM_EC_ADC         adc.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_ESPI        espi.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_FLASH       flash.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_HOOKS       hooks.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_HOSTCMD     host_command.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_HOSTCMD_CONSOLE
                                                    console_buffer.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_MKBP_EVENT  mkbp_event.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_MPU         mpu.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_PANIC       panic.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_PWM         pwm.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_RTC         rtc.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_TEMP_SENSOR temp_sensors.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_TIMER       hwtimer.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_I2C         i2c.c)
zephyr_sources_ifdef(CONFIG_SHIMMED_TASKS           tasks.c)
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_WATCHDOG    watchdog.c)