blob: cd6e142106b7da72b3a2bd806c2c3586fa42f477 [file]
# Copyright 2024 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.20.0)
set(BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR})
set(BOARD ec_aic_tester)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(ec-aic-tester)
zephyr_include_directories(include)
target_sources(app PRIVATE
src/ec.c
src/main.c
src/usbd.c
)
target_sources_ifdef(CONFIG_DT_HAS_ZEPHYR_UART_BRIDGE_ENABLED app PRIVATE src/uart-bridge.c)
target_sources_ifdef(CONFIG_DT_HAS_CROS_NPCX_BOOT_ENABLED app PRIVATE src/npcx_boot.c)
target_sources_ifdef(CONFIG_I2C_EEPROM_TARGET app PRIVATE src/i2c_target.c)
target_sources_ifdef(CONFIG_DT_HAS_CROS_I2C_MUX_ENABLED app PRIVATE src/i2c_mux.c)
zephyr_linker_sources(ROM_SECTIONS src/usb_request.ld)